Table of Contents

Class TenantInfo

Namespace
Compendium.Multitenancy
Assembly
Compendium.Multitenancy.dll

Represents information about a tenant in a multi-tenant application. Contains all necessary data to identify and configure tenant-specific behavior.

public sealed record TenantInfo : IEquatable<TenantInfo>
Inheritance
TenantInfo
Implements
Inherited Members

Properties

ConnectionString

Gets or initializes the tenant-specific database connection string.

public string? ConnectionString { get; init; }

Property Value

string

CreatedAt

Gets or initializes the timestamp when the tenant was created.

public DateTime CreatedAt { get; init; }

Property Value

DateTime

Id

Gets or initializes the unique identifier of the tenant.

public string Id { get; init; }

Property Value

string

IsActive

Gets or initializes a value indicating whether the tenant is active.

public bool IsActive { get; init; }

Property Value

bool

Name

Gets or initializes the display name of the tenant.

public string Name { get; init; }

Property Value

string

Properties

Gets or initializes additional custom properties for the tenant.

public Dictionary<string, object?> Properties { get; init; }

Property Value

Dictionary<string, object>

UpdatedAt

Gets or initializes the timestamp when the tenant was last updated.

public DateTime? UpdatedAt { get; init; }

Property Value

DateTime?