mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-15 14:04:44 +08:00
Update unit test
This commit is contained in:
parent
6aa268f305
commit
cbd448d8e1
@ -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");
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user