public void AddMemberToGroup(int groupId, int memberId, int Level, GroupMemberStatus Status) { GroupsMember g = new GroupsMember { GroupID = groupId, MemberID = memberId, MemberLevel = Level, Status = (int)Status, DateJoined = DateTime.Now }; DataContext.GroupsMembers.InsertOnSubmit(g); DataContext.SubmitChanges(); }
partial void DeleteGroupsMember(GroupsMember instance);
partial void UpdateGroupsMember(GroupsMember instance);
partial void InsertGroupsMember(GroupsMember instance);