Class PropertyDefaultAttribute
Data object property default value attribute
Inherited Members
Namespace: XData.Mapping
Assembly: XData.docfx.dll
Syntax
[AttributeUsage(AttributeTargets.Property)]
public sealed class PropertyDefaultAttribute : Attribute
Remarks
Used to declare default value rule for property
Constructors
| Improve this Doc View SourcePropertyDefaultAttribute(DefaultType, Object)
Data object property default value attribute
Declaration
public PropertyDefaultAttribute(DefaultType source, object val = null)
Parameters
| Type | Name | Description |
|---|---|---|
| DefaultType | source | Default value source |
| Object | val | Default value |
Properties
| Improve this Doc View SourceDefaultFeature
Default extended features
Declaration
public DefaultFeature DefaultFeature { get; set; }
Property Value
| Type | Description |
|---|---|
| DefaultFeature |
DefaultSource
Default value source
Declaration
public DefaultType DefaultSource { get; }
Property Value
| Type | Description |
|---|---|
| DefaultType |
See Also
| Improve this Doc View SourceDefaultValue
Default value
Declaration
public object DefaultValue { get; }
Property Value
| Type | Description |
|---|---|
| Object |
Extension Methods
SqlBlockExtensions.SetExpression<TTag, TResult>(TTag, Expression<Func<IBlockQueryAdapter, TResult>>)