protected bool Equals(QuickNSmart.Contracts.Business.TestOneToMany.IInvoiceDetails other) { if (other == null) { return(false); } return(Id == other.Id && IsEqualsWith(RowVersion, other.RowVersion) && IsEqualsWith(FirstItem, other.FirstItem) && IsEqualsWith(SecondItems, other.SecondItems)); }
public void CopyProperties(QuickNSmart.Contracts.Business.TestOneToMany.IInvoiceDetails other) { if (other == null) { throw new System.ArgumentNullException(nameof(other)); } bool handled = false; BeforeCopyProperties(other, ref handled); if (handled == false) { Id = other.Id; RowVersion = other.RowVersion; FirstItem.CopyProperties(other.FirstItem); ClearSecondItems(); foreach (var item in other.SecondItems) { AddSecondItem(item); } } AfterCopyProperties(other); }
partial void AfterCopyProperties(QuickNSmart.Contracts.Business.TestOneToMany.IInvoiceDetails other);
partial void BeforeCopyProperties(QuickNSmart.Contracts.Business.TestOneToMany.IInvoiceDetails other, ref bool handled);