예제 #1
0
 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));
 }
예제 #2
0
        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);
        }
예제 #3
0
 partial void AfterCopyProperties(QuickNSmart.Contracts.Business.TestOneToMany.IInvoiceDetails other);
예제 #4
0
 partial void BeforeCopyProperties(QuickNSmart.Contracts.Business.TestOneToMany.IInvoiceDetails other, ref bool handled);