public T Copy <T>() where T : class, IModel, new() { T obj = new T(); MapProduct objdata = obj as MapProduct; objdata.RecNo = this.RecNo; objdata.AccountCode = this.AccountCode; objdata.PartyProdCode = this.PartyProdCode; objdata.PartyProdName = this.PartyProdName; objdata.PartyProdPacking = this.PartyProdPacking; objdata.ProductCode = this.ProductCode; objdata.ProductName = this.ProductName; objdata.Packing = this.Packing; objdata.CUser = this.CUser; objdata.CDateTime = this.CDateTime; objdata.EUser = this.EUser; objdata.EDateTime = this.EDateTime; objdata.CreatedBy = this.CreatedBy; objdata.CreatedDate = this.CreatedDate; objdata.UpdateddBy = this.UpdateddBy; objdata.UpdatedDate = this.UpdatedDate; objdata.UpdatedCount = this.UpdatedCount; objdata.LUT = this.LUT; return(obj); }
public void Clone <T>(T obj) where T : class, IModel { MapProduct objdata = obj as MapProduct; this.RecNo = objdata.RecNo; this.AccountCode = objdata.AccountCode; this.PartyProdCode = objdata.PartyProdCode; this.PartyProdName = objdata.PartyProdName; this.PartyProdPacking = objdata.PartyProdPacking; this.ProductCode = objdata.ProductCode; this.ProductName = objdata.ProductName; this.Packing = objdata.Packing; this.CUser = objdata.CUser; this.CDateTime = objdata.CDateTime; this.EUser = objdata.EUser; this.EDateTime = objdata.EDateTime; this.CreatedBy = objdata.CreatedBy; this.CreatedDate = objdata.CreatedDate; this.UpdateddBy = objdata.UpdateddBy; this.UpdatedDate = objdata.UpdatedDate; this.UpdatedCount = objdata.UpdatedCount; this.LUT = objdata.LUT; }