Browse Source

-

pull/2/head
skx 4 years ago
parent
commit
2b4ae48f4a
  1. 2
      Src/Asp.Net/SqlSugar/Abstract/DbBindProvider/IDataRecordExtensions.cs
  2. 2
      Src/Asp.Net/SqliteTest/UnitTest/UQueryable.cs

2
Src/Asp.Net/SqlSugar/Abstract/DbBindProvider/IDataRecordExtensions.cs

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

2
Src/Asp.Net/SqliteTest/UnitTest/UQueryable.cs

@ -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…
Cancel
Save