public T Copy <T>() where T : class, IModel, new() { T obj = new T(); OtherAdd objdata = obj as OtherAdd; objdata.RecNo = this.RecNo; objdata.AddName = this.AddName; objdata.KeyPerson = this.KeyPerson; objdata.Address1 = this.Address1; objdata.Address2 = this.Address2; objdata.Address3 = this.Address3; objdata.City = this.City; objdata.Mobile = this.Mobile; objdata.Phone1 = this.Phone1; objdata.Phone2 = this.Phone2; objdata.PhoneR = this.PhoneR; objdata.Fax = this.Fax; objdata.Email = this.Email; objdata.Category = this.Category; objdata.AddNote = this.AddNote; objdata.ImageName = this.ImageName; objdata.CUser = this.CUser; objdata.CDateTime = this.CDateTime; objdata.EUser = this.EUser; objdata.EDateTime = this.EDateTime; objdata.DLock = this.DLock; 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 { OtherAdd objdata = obj as OtherAdd; this.RecNo = objdata.RecNo; this.AddName = objdata.AddName; this.KeyPerson = objdata.KeyPerson; this.Address1 = objdata.Address1; this.Address2 = objdata.Address2; this.Address3 = objdata.Address3; this.City = objdata.City; this.Mobile = objdata.Mobile; this.Phone1 = objdata.Phone1; this.Phone2 = objdata.Phone2; this.PhoneR = objdata.PhoneR; this.Fax = objdata.Fax; this.Email = objdata.Email; this.Category = objdata.Category; this.AddNote = objdata.AddNote; this.ImageName = objdata.ImageName; this.CUser = objdata.CUser; this.CDateTime = objdata.CDateTime; this.EUser = objdata.EUser; this.EDateTime = objdata.EDateTime; this.DLock = objdata.DLock; this.CreatedBy = objdata.CreatedBy; this.CreatedDate = objdata.CreatedDate; this.UpdateddBy = objdata.UpdateddBy; this.UpdatedDate = objdata.UpdatedDate; this.UpdatedCount = objdata.UpdatedCount; this.LUT = objdata.LUT; }