This commit is contained in:
Thanakarn Klangkasame
2025-09-30 11:01:02 +07:00
commit 92e614674c
182 changed files with 9596 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
namespace AMREZ.EOP.Abstractions.Applications.Tenancy;
public interface ITenantContext
{
string TenantKey { get; }
string Id { get; }
string? Schema { get; }
string? ConnectionString { get; }
}

View File

@@ -0,0 +1,6 @@
namespace AMREZ.EOP.Abstractions.Applications.Tenancy;
public interface ITenantDbContextFactory
{
TContext Create<TContext>(ITenantContext tenant) where TContext : class;
}

View File

@@ -0,0 +1,8 @@
using Microsoft.AspNetCore.Http;
namespace AMREZ.EOP.Abstractions.Applications.Tenancy;
public interface ITenantResolver
{
ITenantContext? Resolve(HttpContext http, object? hint = null);
}