Exemplo n.º 1
0
        public void addToGroup(UserModel u, GroupModel g)
        {
            GroupMapModel junctionModel = new GroupMapModel(g.GroupName, u.ID);
            //JunctionTable.InsertOnSubmit(junctionModel);

            g.addJunction(junctionModel);
            udc.SubmitChanges();
        }
Exemplo n.º 2
0
 public void detachUserGroup(GroupMapModel gmm)
 {
     NotifyPropertyChanging("GroupMapModel");
     gmm.Group = null;
     //NotifyOfPropertyChange("GroupMapModel");
 }
Exemplo n.º 3
0
 public void remJunction(GroupMapModel gmm)
 {
     NotifyPropertyChanging("UserGroups");
     this.UserGroups.Remove(gmm);
     NotifyOfPropertyChange("UserGroups");
 }
Exemplo n.º 4
0
 public void addJunction(GroupMapModel gmm)
 {
     NotifyPropertyChanging("UserGroups");
     this.UserGroups.Add(gmm);
     NotifyOfPropertyChange("UserGroups");
 }