mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-15 05:13:27 +08:00
Add unit test
This commit is contained in:
parent
d8b16696c2
commit
2502913410
@ -105,8 +105,34 @@ namespace OrmTest
|
|||||||
{
|
{
|
||||||
throw new Exception("unit error");
|
throw new Exception("unit error");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
db.UpdateNav(new OperatorInfo()
|
||||||
|
{
|
||||||
|
id = "1113",
|
||||||
|
createTime = DateTime.Now,
|
||||||
|
isDel = 1,
|
||||||
|
isDisabled = 1,
|
||||||
|
openid = "",
|
||||||
|
phone = "",
|
||||||
|
pwd = "",
|
||||||
|
realname = "a01",
|
||||||
|
remark = "a",
|
||||||
|
sno = "a",
|
||||||
|
username = "admin",
|
||||||
|
Roles = new List<Role>() { new Role() { id = 2 } }
|
||||||
|
}).Include(z => z.Roles,
|
||||||
|
new UpdateNavOptions()
|
||||||
|
{
|
||||||
|
ManyToManySaveMappingTemplate = new OptRole()
|
||||||
|
{
|
||||||
|
CreateTime = "1010",
|
||||||
|
OrgId = "1x"
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.ExecuteCommand();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 描述:
|
/// 描述:
|
||||||
|
Loading…
Reference in New Issue
Block a user