using Volo.Abp.Domain.Values; namespace NPin.Framework.Upms.Domain.Entities.ValueObjects; public class EncryptPasswordValueObject : ValueObject { /// /// 密码 /// public string Password { get; set; } = string.Empty; /// /// 加密盐值 /// public string Salt { get; set; } = string.Empty; public EncryptPasswordValueObject() { } public EncryptPasswordValueObject(string password) { this.Password = password; } protected override IEnumerable GetAtomicValues() { yield return Password; yield return Salt; } }