コード例 #1
0
     public bool Equals(AssociationUserGroupMember other)
     {
         if (ReferenceEquals(null, other)) return false;
         if (ReferenceEquals(this, other)) return true;
 		if (other.Id == 0 && Id == 0)
 			return false;
 		else
 			return other.Id == Id;
     }
コード例 #2
0
 public ValidateUserGroupMember(AssociationUserGroupMember member)
 {
     _member = member;
 }
コード例 #3
0
 public void RemoveUserGroupEmail(int id)
 {
     using (var db = new LomsContext())
     {
         var groupEmail = new AssociationUserGroupMember() { Id = id };
         db.AssociationUserGroupMembers.Attach(groupEmail);
         db.AssociationUserGroupMembers.DeleteObject(groupEmail);
         db.SaveChanges();
     }
 }