Skip to content

DmAccessRules ​

Namespace: MJCZone.DapperMatic.Security

Assembly: MJCZone.DapperMatic

Summary ​

What the policies allow one caller to do to one resource.

sealed public

Contents ​

Constructors (1) | Methods (4) | Properties (8)

Constructors ​

DmAccessRules ​

csharp
DmAccessRules()

Methods ​

GetType ​

csharp
GetType()

ToString ​

csharp
ToString()

Equals ​

csharp
Equals()

GetHashCode ​

csharp
GetHashCode()

Properties ​

Allowed ​

Gets a value indicating whether a permissive policy grants the action and no fence forbids it.

Type: bool

Targeted ​

Gets a value indicating whether any policy covers the resource and action, for any caller.

Type: bool

Permissive ​

Gets the permissive policies that grant the action to the caller.

Type: IReadOnlyList<DmPolicy>

Restrictive ​

Gets the restrictive policies that apply to the caller.

Type: IReadOnlyList<DmPolicy>

Columns ​

Gets the columns the caller may read or write, or null for all: the permissive policies' columns together, less what any applying policy excludes.

Type: IReadOnlySet&lt;string&gt;?

Presets ​

Gets the values the policies write, by column; a restrictive policy's win over a permissive one's.

Type: IReadOnlyDictionary&lt;string, string?&gt;

Filter ​

Gets the condition limiting the rows, in the query syntax: the permissive filters ORed (none if any of them has none), ANDed with every restrictive filter. Null for every row.

Type: string?

Check ​

Gets the condition every row written must satisfy, combined as Filter is, each policy's check being its filter when it has none; null for none.

Type: string?