[This is preliminary documentation and is subject to change.]
Column behavior item to provide default values for an individual column. This class cannot be inherited.
Inheritance Hierarchy
CalculationWorks.BusinessModel.BehaviorsBcfColumnBehaviorItemBase
CalculationWorks.BusinessModel.BehaviorsBcfColumnDefaultValueSourceBaseT
CalculationWorks.BusinessModel.BehaviorsBcfColumnDefaultValueSourceT
Namespace: CalculationWorks.BusinessModel.Behaviors
Assembly: CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 1.1.0.0
Syntax
Type Parameters
- T
- The value type.
The BcfColumnDefaultValueSourceT type exposes the following members.
Constructors
Name | Description | |
---|---|---|
BcfColumnDefaultValueSourceT | Initializes a new instance of the BcfColumnDefaultValueSourceT class |
Methods
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.) |
Properties
Name | Description | |
---|---|---|
Column |
Gets the BcfColumn the item belongs to.
(Inherited from BcfColumnBehaviorItemBase.) | |
Value |
Gets or sets the value.
|
Remarks
The Value can be changed at runtime.
To apply a IBcfColumnDefaultValueSource instance to a BcfColumnBehavior add it to the BcfColumnSetup.BehaviorItems.
Only one IBcfColumnDefaultValueSource instance per BcfColumnBehavior allowed.
Examples
In this example a default value source will be added to a column. The default value source will always return the same empty ReadOnlyCollectionT of string.
BcfColumnSetup columnSetup = myTableSetup.Columns["myColumnName"];columnSetup.BehaviorItems.Add(new BcfColumnDefaultValueSource<Guid>() { Value = new ReadOnlyCollection<string>(new string[] { }) });
See Also