namespace ZeroFramework.IdentityServer.API.IdentityStores { /// /// Represents a tenant in the identity system /// /// The type used for the primary key for the tenant. public class IdentityTenant { /// /// Initializes a new instance of . /// public IdentityTenant() { } /// /// Initializes a new instance of . /// /// The tenant name. public IdentityTenant(string tenantName) : this() { Name = tenantName; } /// /// Gets or sets the primary key for this tenant. /// public virtual Guid Id { get; set; } /// /// Gets or sets the name for this tenant. /// public virtual string Name { get; set; } = string.Empty; /// /// Gets or sets the normalized name for this tenant. /// public virtual string NormalizedName { get; set; } = string.Empty; /// /// A random value that should change whenever a tenant is persisted to the store /// public virtual string ConcurrencyStamp { get; set; } = Guid.NewGuid().ToString(); /// /// Gets or sets the display name for this tenant. /// public string? DisplayName { get; set; } /// /// Gets or sets the creation time for this tenant. /// public DateTimeOffset CreationTime { get; set; } = DateTimeOffset.Now; /// /// Returns the name of the tenant. /// /// The name of the tenant. public override string ToString() => Name; } }