TenantNotResolvedException class
Namespace: Tenantry.Core.Exceptions · Package: Tenantry.Core · API reference
Thrown when a tenant could not be resolved from the current request context and the operation requires a resolved tenant.
public sealed class TenantNotResolvedException : InvalidOperationException, ISerializableInherits Exception → SystemException → InvalidOperationException.
Implements ISerializable.
Constructors
TenantNotResolvedException()
Initialises a new instance with a default message.
public TenantNotResolvedException()TenantNotResolvedException(string)
Initialises a new instance with a custom message.
public TenantNotResolvedException(string message)Parameters:
messagestring: The message that describes the error.
TenantNotResolvedException(string, Exception)
Initialises a new instance with a custom message and inner exception.
public TenantNotResolvedException(string message, Exception innerException)Parameters:
messagestring: The message that describes the error.innerExceptionException: The exception that caused this one.
TenantIsolationViolationException class
Thrown when a cross-tenant data isolation violation is detected during a SaveChanges or SaveChangesAsync call, or when a bulk update would set TenantId.
ConnectionStringExtensions class
Registers per-tenant connection strings: TenantConnectionStringOptions<TKey>tenantry-core-tenantconnectionstringoptions.md and ITenantConnectionStringResolver<TKey>tenantry-core-itenantconnectionstringresolver.md.