![]() | |
BcfColumnDefaultValueSourceBaseT Class |
Namespace: CalculationWorks.BusinessModel.Behaviors
public abstract class BcfColumnDefaultValueSourceBase<T> : BcfColumnBehaviorItemBase, IBcfColumnDefaultValueSource
The BcfColumnDefaultValueSourceBaseT type exposes the following members.
Name | Description | |
---|---|---|
![]() | BcfColumnDefaultValueSourceBaseT | Initializes a new instance of the BcfColumnDefaultValueSourceBaseT class |
Name | Description | |
---|---|---|
![]() | Column |
Gets the BcfColumn the item belongs to.
(Inherited from BcfColumnBehaviorItemBase.) |
Name | Description | |
---|---|---|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetDefaultValue |
Gets the default value.
|
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OnDiscard | (Inherited from BcfColumnBehaviorItemBase.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
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 class will be created. The class return always a new Guid and cannot be changed at runtime.
public class GuidSequencer : BcfColumnDefaultValueSourceBase<Guid> {