示例#1
0
 public void AddUserToGroup(User user, Group group)
 {
     group.AddUser(user);
     _container.Ext().Store(user, 2);
     _container.Ext().Store(group, 2);
     _container.Commit();
 }
示例#2
0
文件: User.cs 项目: Galigator/db4o
		public void AddUser(User user)
		{
			if (_users.Contains(user))
			{
				return;
			}
			user.AddedToGroup(this);
			_users.Add(user);
		}
示例#3
0
 public void AddUser(User user)
 {
     _container.Store(user);
     _container.Commit();
 }