日期:2014-05-17 浏览次数:20890 次
[AttributeUsage(AttributeTargets.Class)]
public class PrimaryKeyAttribute : Attribute
{
public PrimaryKeyAttribute(string primaryKey)
{
Value = primaryKey;
autoIncrement = true;
}
public string Value { get; private set; }
public string sequenceName { get; set; }
public bool autoIncrement { get; set; }
}
//实例化
[TableName("tbCSW_HJCGLPlanning")]
[PrimaryKey("PID", autoIncrement = true)]
[ExplicitColumns]
public class tbCSW_HJCGLPlanning : Repo.Record<tbCSW_HJCGLPlanning>
{