Table of Contents

Class Role

Namespace
Tlabs.Data.Model
Assembly
Tlabs.Data.dll
public class Role
Inheritance
Role
Inherited Members
Extension Methods

Constructors

Role()

public Role()

Role(Role)

public Role(Role r)

Parameters

r Role

Fields

AllowedRoutes

public string[]? AllowedRoutes

Field Value

string[]

DeniedRoutes

public string[]? DeniedRoutes

Field Value

string[]

Description

public string? Description

Field Value

string

EnforcedFilters

public string[]? EnforcedFilters

Field Value

string[]

Key

public string? Key

Field Value

string

Modified

public DateTime Modified

Field Value

DateTime

Methods

AllowsAction(string, string)

Check if action is allowed

public bool AllowsAction(string method, string route)

Parameters

method string
route string

Returns

bool

AsEntity()

public Role AsEntity()

Returns

Role

CopyTo(Role)

public Role CopyTo(Role ent)

Parameters

ent Role

Returns

Role

ParamsForAction(string)

Returns the enforced parameters for an action

public Role.EnforcedParameter? ParamsForAction(string route)

Parameters

route string

Returns

Role.EnforcedParameter