public ColumnAttribute(string colname, bool extend, Type coltype, TargetDbType dbType) { NameAs = colname; FollowClass = FollowClass.Yes; HasExtendies = extend; ColumnTypeAs = coltype; DbTypeAs = dbType; }
/* * 当数据类型为DateTime类型时,不同DB的日期格式化函数不一 */ public ColumnAttribute(string colname, string tablename, bool extend, Type coltype, TargetDbType dbType) { NameAs = colname; TableNameAs = tablename; FollowClass = FollowClass.No; ColumnTypeAs = coltype; DbTypeAs = dbType; HasExtendies = extend; }