Ejemplo n.º 1
0
 public void Assign(UserInfoBase user)
 {
     Name      = user.Name;
     Password  = user.Password;
     Nickname  = user.Nickname;
     AreaName  = user.AreaName;
     AreaValue = user.AreaValue;
     RoleIndex = user.RoleIndex;
 }
Ejemplo n.º 2
0
 public UserInfoBase(UserInfoBase user)
 {
     ID        = new Random().Next() + "";
     Name      = user.Name;
     Nickname  = user.Nickname;
     Password  = user.Password;
     AreaName  = user.AreaName;
     AreaValue = user.AreaValue;
     RoleIndex = user.RoleIndex;
 }
Ejemplo n.º 3
0
        public static T FromUserBase <T>(UserInfoBase user) where T : UserInfoBase
        {
            var t = System.Activator.CreateInstance <T>();

            t.ID        = user.ID;
            t.Name      = user.Name;
            t.Nickname  = user.Nickname;
            t.Password  = user.Password;
            t.AreaName  = user.AreaName;
            t.AreaValue = user.AreaValue;
            t.RoleIndex = user.RoleIndex;
            return(t);
        }