Ejemplo n.º 1
0
        public void Clone <T>(T obj) where T : class, IModel
        {
            T_MstWeaver objdata = obj as T_MstWeaver;

            this.WeaverCode = objdata.WeaverCode;
            this.CompanyId  = objdata.CompanyId;
            this.WeaverName = objdata.WeaverName;
            this.LUT        = objdata.LUT;
        }
Ejemplo n.º 2
0
        public T Copy <T>() where T : class, IModel, new()
        {
            T           obj     = new T();
            T_MstWeaver objdata = obj as T_MstWeaver;

            objdata.WeaverCode = this.WeaverCode;
            objdata.CompanyId  = this.CompanyId;
            objdata.WeaverName = this.WeaverName;
            objdata.LUT        = this.LUT;
            return(obj);
        }