mirror of https://github.com/abpframework/abp
parent
e105079311
commit
5bc7862095
@ -0,0 +1,22 @@
|
||||
using Volo.Abp.Domain.Entities;
|
||||
|
||||
namespace Volo.Abp.TestApp.Domain
|
||||
{
|
||||
public class Phone : Entity<long>
|
||||
{
|
||||
public virtual string Number { get; set; }
|
||||
|
||||
public virtual PhoneType Type { get; set; }
|
||||
|
||||
private Phone()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public Phone(string number, PhoneType type = PhoneType.Mobile)
|
||||
{
|
||||
Number = number;
|
||||
Type = type;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace Volo.Abp.TestApp.Domain
|
||||
{
|
||||
public enum PhoneType
|
||||
{
|
||||
Mobile,
|
||||
Home,
|
||||
Office
|
||||
}
|
||||
}
|
Loading…
Reference in new issue