- 增加 DbFirst DbColumnInfo Position 属性,字段默认位置;

This commit is contained in:
28810
2020-04-21 16:29:16 +08:00
parent d29a6f596b
commit c09173e8a3
14 changed files with 205 additions and 145 deletions

View File

@ -330,6 +330,7 @@ where a.owner in ({1}) and {0}
ds2item[8] = string.Concat(row[10]);
ds2.Add(ds2item);
}
var position = 0;
foreach (var row in ds2)
{
string table_id = string.Concat(row[0]);
@ -359,7 +360,8 @@ where a.owner in ({1}) and {0}
DbTypeTextFull = sqlType,
Table = loc2[table_id],
Coment = comment,
DefaultValue = defaultValue
DefaultValue = defaultValue,
Position = ++position
});
loc3[table_id][column].DbType = this.GetDbType(loc3[table_id][column]);
loc3[table_id][column].CsType = this.GetCsTypeInfo(loc3[table_id][column]);