222
schangxiang@126.com
2025-05-09 13f8c1efe9aaf7b7d1e4e77107de61a56d6f9646
Weben_CMS专用代码生成器/Code/DataBaseFactory/Default/SqlServerDataBaseServiceHandle.cs
@@ -28,7 +28,7 @@
    where ic.object_id=obj.object_id
    and ic.column_id=col.column_id
) as IsPrimaryKey,
col.Precision,
col.Precision as MyPrecision,
col.Scale 
from sys.objects obj
inner join sys.columns col
@@ -72,7 +72,7 @@
                        model = new ColumnModel();
                        if (dt.Rows[n]["Precision"].ToString() != "")
                        {
                            model.Precision = int.Parse(dt.Rows[n]["Precision"].ToString());
                            model.MyPrecision = int.Parse(dt.Rows[n]["Precision"].ToString());
                        }
                        if (dt.Rows[n]["Scale"].ToString() != "")
                        {