Files
prefab-page-detail/Prefab/Domain/Common/EntityWithTenant.cs
2025-10-27 17:39:18 -04:00

17 lines
537 B
C#

namespace Prefab.Domain.Common;
/// <summary>
/// All entities that require tenant information should use this. Use
/// <see cref="EntityWithAuditAndStatusAndTenant{T}" />
/// </summary>
/// <typeparam name="T">The type that will represent the entity's ID field.</typeparam>
public interface IEntityWithTenant<T> : IEntity<T>, ITenant
{
}
/// <inheritdoc cref="IEntityWithTenant{T}" />
public abstract class EntityWithTenant<T> : Entity<T>, IEntityWithTenant<T>
{
/// <inheritdoc />
public Guid TenantId { get; set; }
}