예제 #1
0
        internal static FieldBase Create(DDLColumn c)
        {
            FieldBase fieldBase = new FieldBase();

            fieldBase.Name               = CodeUtil.GetFieldName(c);
            fieldBase.Desc               = c.Desc;
            fieldBase.Remark             = c.Remark;
            fieldBase.DDLColumn          = c;
            fieldBase.FieldType          = DDLUtil.AnalysisFieldType(c);
            fieldBase.JDBCType           = DBUtil.AnalysisJDBCType(fieldBase.FieldType);
            fieldBase.IsKeyField         = c.IsKeyColumn();
            fieldBase.IsPrimaryKeyColumn = c.IsPrimaryKeyColumn();
            fieldBase.IsUniqueKeyColumn  = c.IsUniqueKeyColumn();
            fieldBase.IsParentKey        = c.IsParentKey;
            return(fieldBase);
        }
예제 #2
0
 protected static string GetFildTypeStr(FieldBase filedBase)
 {
     throw new NotImplementedException();
 }