Tenantry CoreAPI reference
ITenantDescriptor<TKey> interface
Namespace: Tenantry.Core · Package: Tenantry.Core · API reference
Represents a resolved tenant.
public interface ITenantDescriptor<out TKey> where TKey : IEquatable<out TKey>, IParsable<out TKey>Type parameters
TKey: The type used for tenant identifiers (e.g.Guid, string, int). Must implementIEquatable<T>so EF Core can translate equality checks to SQL, andIParsable<TSelf>so middleware can parse the raw string value from HTTP headers/routes.
Derived types: TenantDescriptor<TKey>.
Properties
Name
Human-readable display name for the tenant.
string Name { get; }Value: string
TenantId
Unique tenant identifier used for data isolation.
TKey TenantId { get; }Value: TKey