/// <summary> /// /// </summary> public void UpsertUserRoleMenu(UserRoleSettingModel model) { Db((db, tran) => { db.DeleteList <UserRoleMenu>(new { model.UserRoleId }, tran); model.UserMenuIds?.ForEach(id => { db.Insert <Guid, UserRoleMenu>(new UserRoleMenu() { UserRoleMenuId = SeqGuid.NewGuid(), UserRoleId = model.UserRoleId, UserMenuId = id }, tran); }); }); }
/// <summary> /// /// </summary> public void UpsertUserRoleMenu(UserRoleSettingModel model) { Da.UpsertUserRoleMenu(model); }