Skip to content

DapperMaticMembership ​

Namespace: MJCZone.DapperMatic.AspNetCore.Accounts

Assembly: MJCZone.DapperMatic.AspNetCore

Summary ​

A built-in account's place in a tenant: a member's, or a platform user's grant (which expires, and which the audit names). Its roles are the account's roles there.

sealed public

Contents ​

Constructors (1) | Methods (5) | Properties (9)

Constructors ​

DapperMaticMembership ​

csharp
DapperMaticMembership()

Methods ​

IsLive ​

Tells whether the membership holds now.

csharp
bool IsLive(DateTimeOffset now)

Parameters ​

  • now (DateTimeOffset) - The time.

Returns ​

Type: bool

True unless it has ended.

GetType ​

csharp
GetType()

ToString ​

csharp
ToString()

Equals ​

csharp
Equals()

GetHashCode ​

csharp
GetHashCode()

Properties ​

Id ​

Gets or sets the membership's id.

Type: string

UserId ​

Gets or sets the account's id.

Type: string

TenantId ​

Gets or sets the tenant.

Type: string

Roles ​

Gets or sets the roles there, as a JSON array.

Type: string

IsGrant ​

Gets or sets a value indicating whether this is a grant: a platform user's, for a while.

Type: bool

GrantedBy ​

Gets or sets who made it.

Type: string?

Reason ​

Gets or sets why (a grant's reason).

Type: string?

ExpiresAt ​

Gets or sets when it ends, or null for never (a grant always ends).

Type: DateTimeOffset?

CreatedAt ​

Gets or sets when it was made.

Type: DateTimeOffset