Update unit test

This commit is contained in:
sunkaixuna
2021-11-21 13:25:08 +08:00
parent 7890fa327c
commit e87dfaba6c
2 changed files with 12 additions and 1 deletions

View File

@@ -72,9 +72,20 @@ namespace OrmTest
{
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 int Id { get; set; }