Пример #1
0
		public void AddUserToGroup(User user, Group group)
		{
			List<object> affected = UnitOfWork.Run(delegate { group.AddUser(user); });
			foreach (object o in affected)
			{
				_container.Store(o);
			}
			_container.Commit();
		}
Пример #2
0
		internal void AddedToGroup(Group g)
		{
			_groups.Add(g);
			UnitOfWork.Affected(_groups);
		}
Пример #3
0
		public void AddGroup(Group group)
		{
			_container.Store(group);
			_container.Commit();
		}
Пример #4
0
 internal void AddedToGroup(Group g)
 {
     _groups.Add(g);
     UnitOfWork.Affected(_groups);
 }