Пример #1
0
        public void Clone <T>(T obj) where T : class, IModel
        {
            T_MstRole objdata = obj as T_MstRole;

            this.RoleId   = objdata.RoleId;
            this.RoleName = objdata.RoleName;
            this.LUT      = objdata.LUT;
        }
Пример #2
0
        public T Copy <T>() where T : class, IModel, new()
        {
            T         obj     = new T();
            T_MstRole objdata = obj as T_MstRole;

            objdata.RoleId   = this.RoleId;
            objdata.RoleName = this.RoleName;
            objdata.LUT      = this.LUT;
            return(obj);
        }