diff --git a/Src/Asp.Net/SqlServerTest/UnitTest/UnitManyToMany3.cs b/Src/Asp.Net/SqlServerTest/UnitTest/UnitManyToMany3.cs index 9c84e7f16..d1385aa37 100644 --- a/Src/Asp.Net/SqlServerTest/UnitTest/UnitManyToMany3.cs +++ b/Src/Asp.Net/SqlServerTest/UnitTest/UnitManyToMany3.cs @@ -105,8 +105,34 @@ namespace OrmTest { 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() { new Role() { id = 2 } } + }).Include(z => z.Roles, + new UpdateNavOptions() + { + ManyToManySaveMappingTemplate = new OptRole() + { + CreateTime = "1010", + OrgId = "1x" + + } + }) + .ExecuteCommand(); + + } /// /// 描述: