示例#1
0
文件: UserDB.cs 项目: sunfom/DeXign
        public static void SetUser(DXUser user)
        {
            var user2 = new DXUser2(
                user.UID,
                user.UserName,
                user.Email);

            db.SetUserImpl(user2);
        }
示例#2
0
文件: UserDB.cs 项目: sunfom/DeXign
        private void SetUserImpl(DXUser2 user)
        {
            if (this.HasUserImpl())
            {
                var user2 = this.GetUserImpl();

                user.Id = user2.Id;

                collection.Update(user);
            }
            else
            {
                collection.Insert(user);
            }
        }