Update unit test

This commit is contained in:
sunkaixuan 2022-10-01 02:36:56 +08:00
parent 6aa268f305
commit cbd448d8e1
2 changed files with 4 additions and 4 deletions

View File

@ -166,7 +166,7 @@ namespace OrmTest
var fdt2 = GetBitTable(true);
db.Fastest<System.Data.DataTable>().AS("UnitBulk2313111").BulkUpdate(fdt2,new string[] {"id" });
var listdt2 = db.Queryable<UnitBulk2313111>().ToList();
if (listdt.First().table != null || listdt2.First().table != true)
if (listdt.First().table != false || listdt2.First().table != true)
{
throw new Exception("unit error");
}

View File

@ -208,11 +208,11 @@ namespace OrmTest
{
[SqlSugar.SugarColumn(IsPrimaryKey = true)]
public int id { get; set; }
[SqlSugar.SugarColumn(IsNullable = true)]
[SqlSugar.SugarColumn(IsNullable = true, ColumnDataType = "bit")]
public bool? false1 { get; set; }
[SqlSugar.SugarColumn(IsNullable = true)]
[SqlSugar.SugarColumn(IsNullable = true, ColumnDataType = "bit")]
public bool? true1 { get; set; }
[SqlSugar.SugarColumn(IsNullable = true)]
[SqlSugar.SugarColumn(IsNullable = true, ColumnDataType = "bit")]
public bool? null1 { get; set; }
}
public class unitBools