Definition
Assembly: Microsoft.Restier.Core.dll Namespace: Microsoft.Restier.Core.Authorization Inheritance: System.ObjectSyntax
Summary
Describes the methods of verifying various CRUD operations for a given EF Entity. Useful in code generation scenariosConstructors
.ctor
Creates a new instance of an AuthorizationEntry for a given AuthorizationEntry.Type. Assumes all authorization checks will return false by default.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
t | System.Type | The AuthorizationEntry.Type to track authorization methods for. |
.ctor
Creates a new instance of an AuthorizationEntry for a given AuthorizationEntry.Type while allowing you to specify the action to run when authorizing Inserts.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
t | System.Type | The AuthorizationEntry.Type to track authorization methods for. |
canInsertAction | System.Func<bool> | A Func`1 that evaluates to a Boolean specifying whether or not a record can be inserted through the Restier API. |
.ctor
Creates a new instance of an AuthorizationEntry for a given AuthorizationEntry.Type while allowing you to specify the actions to run when authorizing Inserts and Updates.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
t | System.Type | The AuthorizationEntry.Type to track authorization methods for. |
canInsertAction | System.Func<bool> | A Func`1 that evaluates to a Boolean specifying whether or not a record can be inserted through the Restier API. |
canUpdateAction | System.Func<bool> | A Func`1 that evaluates to a Boolean specifying whether or not a record can be updated through the Restier API. |
.ctor
Creates a new instance of an AuthorizationEntry for a given AuthorizationEntry.Type while allowing you to specify the actions to run when authorizing Inserts, Updates, and Deletes.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
t | System.Type | The AuthorizationEntry.Type to track authorization methods for. |
canInsertAction | System.Func<bool> | A Func`1 that evaluates to a Boolean specifying whether or not a record can be inserted through the Restier API. |
canUpdateAction | System.Func<bool> | A Func`1 that evaluates to a Boolean specifying whether or not a record can be updated through the Restier API. |
canDeleteAction | System.Func<bool> | A Func`1 that evaluates to a Boolean specifying whether or not a record can be deleted through the Restier API. |
.ctor Inherited
Inherited from
objectSyntax
Properties
CanDeleteAction
A Func`1 that evaluates to a Boolean specifying whether or not a record can be deleted through the Restier API. The default is false.Syntax
Property Value
Type:System.Func<bool>
CanInsertAction
A Func`1 that evaluates to a Boolean specifying whether or not a record can be inserted through the Restier API. The default is false.Syntax
Property Value
Type:System.Func<bool>
CanUpdateAction
A Func`1 that evaluates to a Boolean specifying whether or not a record can be updated through the Restier API. The default is false.Syntax
Property Value
Type:System.Func<bool>
Type
The AuthorizationEntry.Type to register this AuthorizationEntry for in the AuthorizationFactoryAuthorizationFactory’s</see> backing Dictionary.Syntax
Property Value
Type:System.Type
Methods
Equals Inherited Virtual
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
obj | object? | - |
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?