type Conversion properties of the data object to the storage type

Properties of data classes can have the different type as standard .Net framework (such as System.Int32 — int in C#, System.String — string in C#) and custom (any user, not .Net-type).

Standard types is converted to the data services to store types some predefined way, for example, System.Int32 in LONG, System.String in VARCHAR. However, data services does not knows» qmo, how to evaluate the value of some custom type (in other words, what type the value in storage). Therefore, the value of the user-defined type must be the value of the standard type .Net and back, and with the value of a standard type data service already» «will understand.

How exactly such a cast must be performed by a specific data service, specified user-defined type attribute StoreInstancesInTypeAttribute. The details include: type of service data and a standard type to be cast.

From a user-defined type requires the following:

Support for explicit (explicit) or implicit (implicit) conversion to standard types.

Support for explicit (explicit) or implicit (implicit) the inverse transformation from the standard type.

Method overloading ToString().

Of course, if different data services require a cast to different types, it is necessary to repeatedly specify an attribute for each data service, and a user-defined type must support conversion for all types.