BcfColumnDefaultValueFunctionT Class |
Namespace: CalculationWorks.BusinessModel.Behaviors
The BcfColumnDefaultValueFunctionT type exposes the following members.
Name | Description | |
---|---|---|
BcfColumnDefaultValueFunctionT | Initializes a new instance of the BcfColumnDefaultValueFunctionT class |
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
Column |
Gets the BcfColumn the item belongs to.
(Inherited from BcfColumnBehaviorItemBase.) | |
DefaultValueFunction |
Gets or sets the default value function.
|
The property DefaultValueFunction can be updated at runtime.
To apply a IBcfColumnDefaultValueSource instance to a BcfColumnBehavior add it to the BcfColumnSetup.BehaviorItems.
Only one IBcfColumnDefaultValueSource instance per BcfColumnBehavior allowed.
In this example a column will be provided with an unique default value generator.
BcfColumnSetup columnSetup = myTableSetup.Columns["myColumnName"];