FieldKernelDefaultValue Property |
The default
Value for the field to use when moving to a new record.
-
The DefaultValue may take the form of an embedded function such as !fnUserID() or
!fnNow() to be evaluated when the default is set.
See EmbeddedParser for more information on embedded functions.
-
A field initialized from its DefaultValue will not be made Dirty unless
DefaultMakesDirty is set.
-
You can handle the RowSetDefaults event to set a field's DefaultValue
programmatically just prior to its being applied to a new record.
-
If DefaultFromParent is set, the mapper will attempt to default
the field's value from the corresponding field in any parent IMapper.
-
Set UseDefaultOnUpdate to use the field's DefaultValue to
set the field's Value (if field is not Dirty) on every update. This is commonly
used to maintain updated_dt and updated_by fields.
Namespace:
NetQuarry.Data
Assembly:
EAP.Mapper (in EAP.Mapper.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public Object DefaultValue { get; set; }
Public Property DefaultValue As Object
Get
Set
Property Value
Type:
ObjectThe field's default value or an expression that can be resolved to a default value.
Implements
IFieldDefaultValueSee Also