mirror of https://github.com/abpframework/abp
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.
28 lines
619 B
28 lines
619 B
using System;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Volo.Abp.Domain.Entities;
|
|
|
|
namespace Volo.Abp.TestApp.Domain
|
|
{
|
|
[Table("AppPhones")]
|
|
public class Phone : Entity<long>
|
|
{
|
|
public virtual Guid PersonId { get; set; }
|
|
|
|
public virtual string Number { get; set; }
|
|
|
|
public virtual PhoneType Type { get; set; }
|
|
|
|
private Phone()
|
|
{
|
|
|
|
}
|
|
|
|
public Phone(Guid personId, string number, PhoneType type = PhoneType.Mobile)
|
|
{
|
|
PersonId = personId;
|
|
Number = number;
|
|
Type = type;
|
|
}
|
|
}
|
|
} |