Update unit test

This commit is contained in:
sunkaixuna 2021-11-21 13:18:54 +08:00
parent 5a6fb11531
commit 7890fa327c

View File

@ -83,9 +83,20 @@ namespace OrmTest
{ {
throw new Exception("unit Bulk"); throw new Exception("unit Bulk");
} }
Db.CodeFirst.InitTables<UnitTable001>();
Db.Fastest<UnitTable001>().BulkUpdate(new List<UnitTable001> {
new UnitTable001(){ Id=1, table="a" }
});
} }
} }
public class UnitTable001
{
[SqlSugar.SugarColumn(IsPrimaryKey = true)]
public int Id { get; set; }
public string table { get; set; }
}
public class UnitIdentity111 public class UnitIdentity111
{ {
public int Id { get; set; } public int Id { get; set; }