示例#1
0
        public void Clone <T>(T obj) where T : class, IModel
        {
            T_MstAccount objdata = obj as T_MstAccount;

            this.AccountId   = objdata.AccountId;
            this.AccountName = objdata.AccountName;
            this.Password    = objdata.Password;
            this.RoleId      = objdata.RoleId;
            this.LUT         = objdata.LUT;
            this.CompanyId   = objdata.CompanyId;
        }
示例#2
0
        public T Copy <T>() where T : class, IModel, new()
        {
            T            obj     = new T();
            T_MstAccount objdata = obj as T_MstAccount;

            objdata.AccountId   = this.AccountId;
            objdata.AccountName = this.AccountName;
            objdata.Password    = this.Password;
            objdata.RoleId      = this.RoleId;
            objdata.LUT         = this.LUT;
            objdata.CompanyId   = this.CompanyId;
            return(obj);
        }