Init
This commit is contained in:
17
Prefab/Domain/Common/EntityWithTenant.cs
Normal file
17
Prefab/Domain/Common/EntityWithTenant.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
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; }
|
||||
}
|
||||
Reference in New Issue
Block a user