Exemplo n.º 1
0
 protected bool Equals(QuickNSmart.Contracts.Business.Account.IAppAccess other)
 {
     if (other == null)
     {
         return(false);
     }
     return(Id == other.Id && IsEqualsWith(RowVersion, other.RowVersion) && IsEqualsWith(FirstItem, other.FirstItem) && IsEqualsWith(SecondItems, other.SecondItems));
 }
Exemplo n.º 2
0
        public void CopyProperties(QuickNSmart.Contracts.Business.Account.IAppAccess 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;
                FirstItem.CopyProperties(other.FirstItem);
                ClearSecondItems();
                foreach (var item in other.SecondItems)
                {
                    AddSecondItem(item);
                }
            }
            AfterCopyProperties(other);
        }
Exemplo n.º 3
0
 partial void AfterCopyProperties(QuickNSmart.Contracts.Business.Account.IAppAccess other);
Exemplo n.º 4
0
 partial void BeforeCopyProperties(QuickNSmart.Contracts.Business.Account.IAppAccess other, ref bool handled);