mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 04:18:16 +08:00
opt code #1477
This commit is contained in:
@ -97,7 +97,7 @@ namespace FreeSql.Xugu
|
||||
var tp = _orm.CodeFirst.GetDbInfo(type)?.type;
|
||||
if (col != null)
|
||||
{
|
||||
var dbtype = (XGDbType)_orm.DbFirst.GetDbType(new DatabaseModel.DbColumnInfo { DbTypeText = col.DbTypeText });
|
||||
var dbtype = (XGDbType?)_orm.DbFirst.GetDbType(new DatabaseModel.DbColumnInfo { DbTypeText = col.DbTypeText });
|
||||
if (dbtype != null)
|
||||
{
|
||||
if (col.DbPrecision != 0) ret.Precision = col.DbPrecision;
|
||||
|
Reference in New Issue
Block a user