Class DbTypeAttribute
- Namespace
- DevExpress.Xpo
- Assembly
- DevExpress.Xpo.v24.1.dll
Specifies the database type of the column that a property is mapped to.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, Inherited = true)]
public sealed class DbTypeAttribute : Attribute
- Inheritance
-
DbTypeAttribute
- Inherited Members
Constructors
DbTypeAttribute(string)
Initializes a new instance of the DbTypeAttribute class.
public DbTypeAttribute(string dbColumnTypeName)
Parameters
dbColumnTypeName
stringA string value that specifies the column’s database type. This value is assigned to the DbTypeAttribute.DbColumnTypeName property.
Properties
DbColumnTypeName
Gets or sets the database type of the column which a property marked with DbTypeAttribute is mapped to.
public string DbColumnTypeName { get; set; }