mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 13:06:50 +08:00
-
This commit is contained in:
parent
e155259e78
commit
2b4ae48f4a
@ -332,7 +332,7 @@ namespace SqlSugar
|
||||
var data = dr.GetString(i);
|
||||
if (data.ToString() == "")
|
||||
{
|
||||
return UtilMethods.To<T>(null);
|
||||
return UtilMethods.To<T>(default(T));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -80,7 +80,7 @@ namespace OrmTest
|
||||
}, o => o.OrderSn == saleOrderInfo.OrderSn && o.OrderStatus != 1);
|
||||
|
||||
Db.CodeFirst.InitTables<UnitAbc121>();
|
||||
Db.Insertable(new UnitAbc121() { name="a" }).ExecuteCommand();
|
||||
Db.Insertable(new UnitAbc121() { name="a",uid=null }).ExecuteCommand();
|
||||
Db.Insertable(new UnitAbc121() { name = "a", uid=Guid.NewGuid() }).ExecuteCommand();
|
||||
var list10= Db.Queryable<UnitAbc121>().ToList();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user