コード例 #1
0
 protected bool Equals(QnSTravelCount.Contracts.Persistence.App.IExpense other)
 {
     if (other == null)
     {
         return(false);
     }
     return(Id == other.Id && IsEqualsWith(Timestamp, other.Timestamp) && TravelId == other.TravelId && Date == other.Date && IsEqualsWith(Description, other.Description) && Amount == other.Amount && IsEqualsWith(Friend, other.Friend));
 }
コード例 #2
0
        public void CopyProperties(QnSTravelCount.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;
                TravelId    = other.TravelId;
                Date        = other.Date;
                Description = other.Description;
                Amount      = other.Amount;
                Friend      = other.Friend;
            }
            AfterCopyProperties(other);
        }
コード例 #3
0
 partial void AfterCopyProperties(QnSTravelCount.Contracts.Persistence.App.IExpense other);
コード例 #4
0
 partial void BeforeCopyProperties(QnSTravelCount.Contracts.Persistence.App.IExpense other, ref bool handled);