public void CopyProperties(QuickNSmart.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);
        }
 protected bool Equals(QuickNSmart.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);
 }
示例#3
0
 protected bool Equals(QuickNSmart.Contracts.Persistence.Account.IUser other)
 {
     if (other == null)
     {
         return(false);
     }
     return(Id == other.Id && IsEqualsWith(RowVersion, other.RowVersion) && IdentityId == other.IdentityId && IsEqualsWith(Firstname, other.Firstname) && IsEqualsWith(Lastname, other.Lastname));
 }
示例#4
0
        public void CopyProperties(QuickNSmart.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;
                RowVersion = other.RowVersion;
                IdentityId = other.IdentityId;
                Firstname  = other.Firstname;
                Lastname   = other.Lastname;
            }
            AfterCopyProperties(other);
        }
 partial void AfterCopyProperties(QuickNSmart.Contracts.Persistence.Account.IUser other);
 partial void BeforeCopyProperties(QuickNSmart.Contracts.Persistence.Account.IUser other, ref bool handled);
 partial void OnUserChanging(ref bool handled, ref QuickNSmart.Contracts.Persistence.Account.IUser _user);