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.
 
 
 
 
 

44 lines
897 B

using Easy.Auditing.Contracts;
using Easy.DDD.Domain.Entities;
namespace Identity.Api.Clean.Domain.Entites;
public class Tenant : AggregateRoot<Guid>
{
/// <summary>
/// 租户名称/公司名称
/// </summary>
public virtual string TenantName { get; protected set; }
/// <summary>
/// 邮箱
/// </summary>
public string Mailbox { get; set; }
/// <summary>
/// 姓名
/// </summary>
public string FullName { get; set; }
/// <summary>
/// 电话
/// </summary>
public string Telephone { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remarks { get; set; }
protected Tenant()
{
}
public Tenant(Guid id, string tenantName)
: base(id)
{
SetName(tenantName);
}
protected internal void SetName(string value)
{
TenantName = value;
}
}