public void addGroupMember(GroupMember groupMember, Group group) { try { db.GroupMembers.InsertOnSubmit(RepositoryUtility.createDALGroupMemberFromGroupMember(groupMember, group)); db.SubmitChanges(); } catch (Exception) { //TODO saznaj koje su iznimke //iznimka se generira ako se narusi bilo koje pravilo vezano uz primary key ili foreign key. Znači, iznimka se //generira ako se pokuša dodati osoba koja ima JMBAG koji koristi neka druga osoba, zatim ako se pod osoba.sifUloga //stavi neki broj kojeg nema u tablici Uloga, itd.. //return false; } //return true; }
private void detach_GroupMembers(GroupMember entity) { this.SendPropertyChanging(); entity.Client = null; }
partial void DeleteGroupMember(GroupMember instance);
partial void UpdateGroupMember(GroupMember instance);
partial void InsertGroupMember(GroupMember instance);
private void attach_GroupMembers(GroupMember entity) { this.SendPropertyChanging(); entity.Resource1 = this; }