protected bool Equals(QnSBillShare.Contracts.Persistence.App.IExpense other)
 {
     if (other == null)
     {
         return(false);
     }
     return(Id == other.Id && IsEqualsWith(Timestamp, other.Timestamp) && BillId == other.BillId && IsEqualsWith(Designation, other.Designation) && Amount == other.Amount && IsEqualsWith(Friend, other.Friend));
 }
Beispiel #2
0
        public void CopyProperties(QnSBillShare.Contracts.Persistence.App.IExpense other)
        {
            base.CopyProperties(other);

            BillId      = other.BillId;
            Designation = other.Designation;
            Amount      = other.Amount;
            Friend      = other.Friend;
        }
        public void CopyProperties(QnSBillShare.Contracts.Persistence.App.IExpense other)
        {
            if (other == null)
            {
                throw new System.ArgumentNullException(nameof(other));
            }
            bool handled = false;

            BeforeCopyProperties(other, ref handled);
            if (handled == false)
            {
                Id          = other.Id;
                Timestamp   = other.Timestamp;
                BillId      = other.BillId;
                Designation = other.Designation;
                Amount      = other.Amount;
                Friend      = other.Friend;
            }
            AfterCopyProperties(other);
        }
 partial void AfterCopyProperties(QnSBillShare.Contracts.Persistence.App.IExpense other);
 partial void BeforeCopyProperties(QnSBillShare.Contracts.Persistence.App.IExpense other, ref bool handled);