using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
namespace Ant.ORM
{
///
/// 属性元数据类
///
public class DataFieldMetaData
{
private string propertyName;
///
///
///
public string PropertyName
{
get { return propertyName; }
set { propertyName = value; }
}
private Type propertyType;
///
///
///
public Type PropertyType
{
get { return propertyType; }
set { propertyType = value; }
}
private string columnName;
///
/// 列名
///
public string ColumnName
{
get { return columnName; }
set { columnName = value; }
}
private DbType columnType;
///
/// 列名类型
///
public DbType ColumnType
{
get { return columnType; }
set { columnType = value; }
}
private object defaultValue;
///
/// 默认值
///
public object DefaultValue
{
get { return defaultValue; }
set { defaultValue = value; }
}
private bool isPrimaryKey;
///
/// 是否为主键
///
public bool IsPrimaryKey
{
get { return isPrimaryKey; }
set { isPrimaryKey = value; }
}
private bool isForeignKey = false;
///
/// 是否为外键
///
public bool IsForeignKey
{
get { return isForeignKey; }
set { isForeignKey = value; }
}
private bool isNullable;
///
/// 是否为空
///
public bool IsNullable
{
get { return isNullable; }
set { isNullable = value; }
}
private bool isAutoincrement;
///
/// 是否是自增长
///
public bool IsAutoincrement
{
get { return isAutoincrement; }
set { isAutoincrement = value; }
}
}
}