16 lines
537 B
C#
16 lines
537 B
C#
namespace Prefab.Domain.Common;
|
|
|
|
/// <summary>
|
|
/// All entities that require auditing, statuses and tenant information should use this.
|
|
/// </summary>
|
|
/// <typeparam name="T">The type that will represent the entity's ID field.</typeparam>
|
|
public interface IEntityWithAuditAndTenant<T> : IEntityWithAudit<T>, ITenant
|
|
{
|
|
}
|
|
|
|
/// <inheritdoc cref="IEntityWithAuditAndTenant{T}" />
|
|
public class EntityWithAuditAndTenant<T> : EntityWithAudit<T>, IEntityWithAuditAndTenant<T>
|
|
{
|
|
/// <inheritdoc />
|
|
public Guid TenantId { get; set; }
|
|
} |