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
461 B
25 lines
461 B
using Easy.Auditing.Contracts;
|
|
using Easy.DDD.Domain.Entities;
|
|
|
|
namespace TenantManagement.Api.DDD.Domain.Entites;
|
|
|
|
public class Tenant : AggregateRoot<Guid>
|
|
{
|
|
public virtual string TenantName { get; protected set; }
|
|
|
|
protected Tenant()
|
|
{
|
|
|
|
}
|
|
|
|
public Tenant(Guid id, string tenantName)
|
|
: base(id)
|
|
{
|
|
SetName(tenantName);
|
|
}
|
|
|
|
protected internal void SetName(string value)
|
|
{
|
|
TenantName = value;
|
|
}
|
|
}
|
|
|