PgSql Insert useparameter bug

This commit is contained in:
sunkaixuna
2022-02-08 11:15:43 +08:00
parent bcf1a0bb97
commit 8bc9b88425
2 changed files with 13 additions and 4 deletions

View File

@@ -33,8 +33,16 @@ namespace OrmTest
Db.CodeFirst.InitTables<UnitTestPk>();
Db.CodeFirst.InitTables<UnitTestPk>();
Db.CodeFirst.InitTables<UnitTestPk>();
}
Db.CodeFirst.InitTables<UnitLong1>();
Db.Insertable(new List<UnitLong1>() { new UnitLong1() { Num = null }, new UnitLong1() { Num = null } })
.UseParameter().ExecuteCommand();
}
public class UnitLong1
{
[SqlSugar.SugarColumn(IsNullable =true)]
public long? Num { get; set; }
}
public class UnitTestPk
{
[SqlSugar.SugarColumn(IsPrimaryKey =true,IsIdentity =true)]