This commit is contained in:
2881099
2023-03-31 19:38:09 +08:00
parent 4f921b4b0a
commit f9d6fcba4f
8 changed files with 8 additions and 1717 deletions

View File

@ -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;