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); }
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); }
partial void AfterCopyProperties(QnSBillShare.Contracts.Persistence.Account.IUser other);
partial void BeforeCopyProperties(QnSBillShare.Contracts.Persistence.Account.IUser other, ref bool handled);
partial void OnUserChanging(ref bool handled, ref QnSBillShare.Contracts.Persistence.Account.IUser _user);