Browse Source

5.0.6.5

pull/15/head
sunkaixuan 3 years ago
parent
commit
d6d96076cb
  1. 5
      Src/Asp.NetCore2/SqlSugar/Realization/Sqlite/SqliteProvider.cs
  2. 2
      Src/Asp.NetCore2/SqlSugar/SqlSugarForCore.nuspec
  3. 2
      Src/Asp.NetCore2/SqlSugar/SqlSugarForCoreNoDrive.nuspec
  4. 13
      Src/Asp.NetCore2/SqliteTest/UnitTest/UCodeFirst.cs

5
Src/Asp.NetCore2/SqlSugar/Realization/Sqlite/SqliteProvider.cs

@ -106,7 +106,10 @@ namespace SqlSugar
}
if (sqlParameter.DbType == System.Data.DbType.Guid) {
sqlParameter.DbType = System.Data.DbType.String;
sqlParameter.Value = sqlParameter.Value.ObjToString();
if (sqlParameter.Value != DBNull.Value)
{
sqlParameter.Value = sqlParameter.Value.ObjToString();
}
}
if (isVarchar && sqlParameter.DbType == System.Data.DbType.String)
{

2
Src/Asp.NetCore2/SqlSugar/SqlSugarForCore.nuspec

@ -2,7 +2,7 @@
<package >
<metadata>
<id>SqlSugarCore</id>
<version>5.0.6.4</version>
<version>5.0.6.5</version>
<authors>sunkaixuan</authors>
<owners>果糖大数据科技</owners>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>

2
Src/Asp.NetCore2/SqlSugar/SqlSugarForCoreNoDrive.nuspec

@ -2,7 +2,7 @@
<package >
<metadata>
<id>SqlSugarCoreNoDrive</id>
<version>5.0.6.4</version>
<version>5.0.6.5</version>
<authors>sunkaixuan</authors>
<owners>Landa</owners>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>

13
Src/Asp.NetCore2/SqliteTest/UnitTest/UCodeFirst.cs

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
namespace OrmTest
{
public partial class NewUnitTest
@ -13,6 +13,17 @@ namespace OrmTest
if (Db.DbMaintenance.IsAnyTable("UnitCodeTest1", false))
Db.DbMaintenance.DropTable("UnitCodeTest1");
Db.CodeFirst.InitTables<UnitCodeTest1>();
Db.CodeFirst.InitTables<Test00111>();
Db.DbMaintenance.TruncateTable<Test00111>();
Db.Insertable(new Test00111()).ExecuteCommand();
var list = Db.Queryable<Test00111>().ToList();
}
public class Test00111
{
public int id { get; set; }
[SugarColumn(ColumnDataType = "guid",IsNullable =true)]
public Guid? creater { get; set; }
}
public class UnitCodeTest1
{

Loading…
Cancel
Save