ColumnAttribute 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.
Specifies the database column that a property is mapped to.
[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false)]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1813:AvoidUnsealedAttributes")]
public class ColumnAttribute : Attribute
type ColumnAttribute = class
inherit Attribute
Public Class ColumnAttribute
Inherits Attribute
- Inheritance
-
ColumnAttribute
- Attributes
Constructors
ColumnAttribute() |
Initializes a new instance of the ColumnAttribute class. |
ColumnAttribute(String) |
Initializes a new instance of the ColumnAttribute class. |
Properties
Name |
The name of the column the property is mapped to. |
Order |
The zero-based order of the column the property is mapped to. |
TypeName |
The database provider specific data type of the column the property is mapped to. |
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework