![]() | |
BcfColumnDefaultValueSourceT Class |
Namespace: CalculationWorks.BusinessModel.Behaviors
public sealed class BcfColumnDefaultValueSource<T> : BcfColumnDefaultValueSourceBase<T>
The BcfColumnDefaultValueSourceT type exposes the following members.
Name | Description | |
---|---|---|
![]() | BcfColumnDefaultValueSourceT | Initializes a new instance of the BcfColumnDefaultValueSourceT class |
Name | Description | |
---|---|---|
![]() | Column |
Gets the BcfColumn the item belongs to.
(Inherited from BcfColumnBehaviorItemBase.) |
![]() | Value |
Gets or sets the value.
|
Name | Description | |
---|---|---|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | GetHashCode | Serves as the default hash function. (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.) |
The property Value 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 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"];