Example #1
0
 protected bool Equals(QnSTravelCount.Contracts.Business.App.ITravelExpenses other)
 {
     if (other == null)
     {
         return(false);
     }
     return(Id == other.Id && IsEqualsWith(Timestamp, other.Timestamp) && IsEqualsWith(Travel, other.Travel) && IsEqualsWith(Expenses, other.Expenses) && TotalExpense == other.TotalExpense && FriendPortion == other.FriendPortion && NumberOfFriends == other.NumberOfFriends && IsEqualsWith(Friends, other.Friends) && IsEqualsWith(FriendAmounts, other.FriendAmounts) && IsEqualsWith(Balances, other.Balances));
 }
        public void CopyProperties(QnSTravelCount.Contracts.Business.App.ITravelExpenses 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;
                Travel          = other.Travel;
                Expenses        = other.Expenses;
                TotalExpense    = other.TotalExpense;
                FriendPortion   = other.FriendPortion;
                NumberOfFriends = other.NumberOfFriends;
                Friends         = other.Friends;
                FriendAmounts   = other.FriendAmounts;
                Balances        = other.Balances;
            }
            AfterCopyProperties(other);
        }
 partial void AfterCopyProperties(QnSTravelCount.Contracts.Business.App.ITravelExpenses other);
 partial void BeforeCopyProperties(QnSTravelCount.Contracts.Business.App.ITravelExpenses other, ref bool handled);