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

            this.GroupId     = objdata.GroupId;
            this.GroupCode   = objdata.GroupCode;
            this.Description = objdata.Description;
            this.LUT         = objdata.LUT;
        }
Beispiel #2
0
        public T Copy <T>() where T : class, IModel, new()
        {
            T          obj     = new T();
            T_MstGroup objdata = obj as T_MstGroup;

            objdata.GroupId     = this.GroupId;
            objdata.GroupCode   = this.GroupCode;
            objdata.Description = this.Description;
            objdata.LUT         = this.LUT;
            return(obj);
        }