Beispiel #1
0
 public void AddPermission(Account account, Permission permission)
 {
     using (SPKTDataContext spktDC = conn.GetContext())
     {
         AccountPermission ap = new AccountPermission();
         ap.AccountID = account.AccountID;
         ap.PermissionID = permission.PermissionID;
         spktDC.AccountPermissions.InsertOnSubmit(ap);
         spktDC.SubmitChanges();
     }
 }
Beispiel #2
0
		private void detach_AccountPermissions(AccountPermission entity)
		{
			this.SendPropertyChanging();
			entity.Account = null;
		}
Beispiel #3
0
 partial void DeleteAccountPermission(AccountPermission instance);
Beispiel #4
0
 partial void UpdateAccountPermission(AccountPermission instance);
Beispiel #5
0
 partial void InsertAccountPermission(AccountPermission instance);
Beispiel #6
0
		private void attach_AccountPermissions(AccountPermission entity)
		{
			this.SendPropertyChanging();
			entity.Permission = this;
		}