Class NSFieldInfoTime
Time custom database field. Date value is ignored.
Syntax
Constructors
NSFieldInfoTime()
Initializes a new instance of the NSFieldInfoTime class.
Declaration
NSFieldInfoTime
Methods
GetDefaultValue()
Time custom database field. Date value is ignored.
Declaration
DateTime GetDefaultValue()
Returns
Type | Description |
---|---|
DateTime | Default Time value. |
Examples
NSFieldInfoTime thing;
DateTime defaultValue = thing.GetDefaultValue();
GetIsDefaultNow()
Time custom database field. Date value is ignored.
Declaration
Bool GetIsDefaultNow()
Returns
Type | Description |
---|---|
Bool | Should the current date + time be the default? |
Examples
NSFieldInfoTime thing;
Bool isDefaultNow = thing.GetIsDefaultNow();
SetDefaultValue(DateTime)
Time custom database field. Date value is ignored.
Declaration
Void SetDefaultValue(DateTime defaultValue)
Parameters
Type | Name | Description |
---|---|---|
defaultValue | Default Time value. |
Returns
Type | Description |
---|---|
Void |
Examples
NSFieldInfoTime thing;
DateTime defaultValue;
thing.SetDefaultValue(defaultValue);
SetIsDefaultNow(Bool)
Time custom database field. Date value is ignored.
Declaration
Void SetIsDefaultNow(Bool isDefaultNow)
Parameters
Type | Name | Description |
---|---|---|
Bool | isDefaultNow | Should the current date + time be the default? |
Returns
Type | Description |
---|---|
Void |
Examples
NSFieldInfoTime thing;
Bool isDefaultNow;
thing.SetIsDefaultNow(isDefaultNow);