public void DeleteMemberWebsiteRelation(int memberid, int websiteid) { MemberWebsiteRelation m = context.MemberWebsiteRelations.SingleOrDefault(t => t.Member.ID == memberid && t.Website.ID == websiteid); if (m != null) { context.MemberWebsiteRelations.Remove(m); } }
public void UpdateMemberWebsiteRelation(MemberWebsiteRelation m) { context.Entry(m).State = EntityState.Modified; }
public void InsertMemberWebsiteRelation(MemberWebsiteRelation m) { context.MemberWebsiteRelations.Add(m); }