Class TenantView
- Namespace
- Stratara.Projections.Multitenancy.Models
- Assembly
- Stratara.Projections.dll
Read-model entity for the tenant aggregate. Maintained by TenantProjection from the
Stratara.Domain tenant lifecycle events.
[ExcludeFromCodeCoverage]
public sealed class TenantView : IEntity
- Inheritance
-
TenantView
- Implements
- Inherited Members
- Extension Methods
Properties
CreatedAt
Timestamp at which the tenant was created.
public DateTimeOffset CreatedAt { get; set; }
Property Value
CustomerId
Identifier of the customer that owns the tenant.
public Guid CustomerId { get; set; }
Property Value
DefaultLocale
Default locale (IETF language tag) used by the tenant when no per-user override is set. Empty by default — the projected value comes from the TenantCreated event.
public string DefaultLocale { get; set; }
Property Value
Id
The entity's primary-key identifier.
public Guid Id { get; set; }
Property Value
IsActive
Whether the tenant is active. Inactive tenants are blocked from sign-in but retained for history.
public bool IsActive { get; set; }
Property Value
LastModifiedAt
Timestamp of the most recent modification, or null if the tenant has not been modified since creation.
public DateTimeOffset? LastModifiedAt { get; set; }
Property Value
Name
Display name of the tenant.
public string Name { get; set; }
Property Value
SourceVersion
The aggregate version this view was last updated from. Used to make projection updates idempotent.
public long SourceVersion { get; set; }