ColumnAttribute Class

Associates a property with a column in a database table.

Inheritance Hierarchy

System.Object
  System.Attribute
    DbExtensions.ColumnAttribute

Namespace:  DbExtensions
Assembly: DbExtensions.dll

Syntax

public sealed class ColumnAttribute : Attribute

The ColumnAttribute type exposes the following members.

Constructors

  Name Description
Public method ColumnAttribute Initializes a new instance of the ColumnAttribute class

Properties

  Name Description
Public property AutoSync Gets or sets the AutoSync enumeration.
Public property ConvertTo Gets or sets the type to convert this member to before sending to the database.
Public property IsDbGenerated Gets or sets whether a column contains values that the database auto-generates.
Public property IsPrimaryKey Gets or sets whether this class member represents a column that is part or all of the primary key of the table.
Public property IsVersion Gets or sets whether the column type of the member is a database timestamp or version number.
Public property Name Gets or sets the name of a column.

See Also

Reference

DbExtensions Namespace

© Max Toro Q.