Esempio n. 1
0
        public void CopyProperties(QnSBillShare.Contracts.Persistence.Account.IUser 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;
                UserName       = other.UserName;
                Password       = other.Password;
                Email          = other.Email;
                FirstName      = other.FirstName;
                LastName       = other.LastName;
                PhoneNumber    = other.PhoneNumber;
                Avatar         = other.Avatar;
                AvatarMimeType = other.AvatarMimeType;
                State          = other.State;
            }
            AfterCopyProperties(other);
        }
Esempio n. 2
0
 protected bool Equals(QnSBillShare.Contracts.Persistence.Account.IUser other)
 {
     if (other == null)
     {
         return(false);
     }
     return(Id == other.Id && IsEqualsWith(Timestamp, other.Timestamp) && IsEqualsWith(UserName, other.UserName) && IsEqualsWith(Password, other.Password) && IsEqualsWith(Email, other.Email) && IsEqualsWith(FirstName, other.FirstName) && IsEqualsWith(LastName, other.LastName) && IsEqualsWith(PhoneNumber, other.PhoneNumber) && IsEqualsWith(Avatar, other.Avatar) && IsEqualsWith(AvatarMimeType, other.AvatarMimeType) && State == other.State);
 }
Esempio n. 3
0
 partial void AfterCopyProperties(QnSBillShare.Contracts.Persistence.Account.IUser other);
Esempio n. 4
0
 partial void BeforeCopyProperties(QnSBillShare.Contracts.Persistence.Account.IUser other, ref bool handled);
Esempio n. 5
0
 partial void OnUserChanging(ref bool handled, ref QnSBillShare.Contracts.Persistence.Account.IUser _user);