Пример #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));
 }
Пример #2
0
        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);
        }
Пример #3
0
 partial void AfterCopyProperties(QnSTravelCount.Contracts.Business.App.ITravelExpenses other);
Пример #4
0
 partial void BeforeCopyProperties(QnSTravelCount.Contracts.Business.App.ITravelExpenses other, ref bool handled);