TableColumnAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The TableColumnAttribute can be used to annotate data model properties that represent system properties used by the TableController<TData>. By indicating which columns are the id, version, createdAt, etc. columns, the various domain managers can leverage that information to provide the best possible mapping to any particular backend store.
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public sealed class TableColumnAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type TableColumnAttribute = class
inherit Attribute
Public NotInheritable Class TableColumnAttribute
Inherits Attribute
- Inheritance
-
TableColumnAttribute
- Attributes
Constructors
TableColumnAttribute(TableColumnType) |
Initializes a new instance of the TableColumnAttribute with a given |
Properties
ColumnType |
The TableColumnType for property this attribute is applied to. |
TableColumnAnnotation |
When registering the TableColumnAttribute with Entity Framework using a model builder
code first convention, use this name as the table column annotation name. See
|