mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
417 B
25 lines
417 B
using System.Collections.Generic;
|
|
|
|
namespace Volo.Abp.Domain.Values;
|
|
|
|
public class EmailAddress : ValueObject
|
|
{
|
|
public string Email { get; }
|
|
|
|
private EmailAddress()
|
|
{
|
|
}
|
|
|
|
public EmailAddress(string email)
|
|
{
|
|
Email = email;
|
|
}
|
|
|
|
protected override IEnumerable<object> GetAtomicValues()
|
|
{
|
|
if (Email != null)
|
|
{
|
|
yield return Email;
|
|
}
|
|
}
|
|
}
|
|
|