protected bool Equals(QuickNSmart.Contracts.Persistence.TestOneToMany.IInvoiceDetail other)
 {
     if (other == null)
     {
         return(false);
     }
     return(Id == other.Id && IsEqualsWith(RowVersion, other.RowVersion) && InvoiceId == other.InvoiceId && Order == other.Order && IsEqualsWith(Text, other.Text) && Quantity == other.Quantity && Tax == other.Tax && Price == other.Price);
 }
        public void CopyProperties(QuickNSmart.Contracts.Persistence.TestOneToMany.IInvoiceDetail 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;
                InvoiceId  = other.InvoiceId;
                Order      = other.Order;
                Text       = other.Text;
                Quantity   = other.Quantity;
                Tax        = other.Tax;
                Price      = other.Price;
            }
            AfterCopyProperties(other);
        }
 partial void AfterCopyProperties(QuickNSmart.Contracts.Persistence.TestOneToMany.IInvoiceDetail other);
 partial void BeforeCopyProperties(QuickNSmart.Contracts.Persistence.TestOneToMany.IInvoiceDetail other, ref bool handled);