Support nullable-types Flexberry ORM and .NET
Nullable types are an extension to the usual types that can store the value null
(that is unlike the standard types, Nullable types allow the user to store any value in a field of scalar type).
Note: When designing information systems it is necessary to consider the difference between scalar and nullable types, choosing the more suitable for a particular situation type.
Standard Nullable-types in ORM Flexberry
Flexberry ORM provides the following Nullable-types (located in the Assembly ICSSoft.STORMNET.UserDataTypes.dll):
NullableInt
- integernull
. Accepts all values, which takesint
and can also be null.NullableDateTime
- type for storing date and timenull
. Can store all of the values that keepsDateTime
and null.NullableDecimal
- type to store fractional numbersnull
Note: Implemented in Flexberry ORM Nullable types have now become obsolete. It is preferable to use the Nullable types provided .Net.</msg>
Nullable types .Net
.NET Framework supports Nullable-types. Flexberry ORM supports Nullable types .Net.
If code generation was used types System.Nullable<esc><T></esc>
(or T?
, which is equivalent according to msdn), it is necessary to produce the custom setting.