> ## Documentation Index
> Fetch the complete documentation index at: https://easyaf.nimbleapps.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# AuthorizationEntry

> Describes the methods of verifying various CRUD operations for a given EF Entity. Useful in code generation scenarios

## Definition

**Assembly:** Microsoft.Restier.Core.dll

**Namespace:** Microsoft.Restier.Core.Authorization

**Inheritance:** System.Object

## Syntax

```csharp theme={"dark"}
Microsoft.Restier.Core.Authorization.AuthorizationEntry
```

## Summary

Describes the methods of verifying various CRUD operations for a given EF Entity. Useful in code generation scenarios

## Constructors

### &#x20;.ctor

Creates a new instance of an [AuthorizationEntry](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/Authorization/AuthorizationEntry.md) for a given [AuthorizationEntry.Type](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/Authorization/AuthorizationEntry.md#type). Assumes all authorization checks will return false by default.

#### Syntax

```csharp theme={"dark"}
public AuthorizationEntry(System.Type t)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `t` | `System.Type` | The [AuthorizationEntry.Type](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/Authorization/AuthorizationEntry.md#type) to track authorization methods for. |

### &#x20;.ctor

Creates a new instance of an [AuthorizationEntry](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/Authorization/AuthorizationEntry.md) for a given [AuthorizationEntry.Type](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/Authorization/AuthorizationEntry.md#type) while allowing you to specify the action to run when authorizing Inserts.

#### Syntax

```csharp theme={"dark"}
public AuthorizationEntry(System.Type t, System.Func<bool> canInsertAction)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `t` | `System.Type` | The [AuthorizationEntry.Type](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/Authorization/AuthorizationEntry.md#type) to track authorization methods for. |
| `canInsertAction` | `System.Func<bool>` | A [Func\`1](https://learn.microsoft.com/dotnet/api/system.func-1) that evaluates to a [Boolean](https://learn.microsoft.com/dotnet/api/system.boolean) specifying whether or not a record can be inserted through the Restier API. |

### &#x20;.ctor

Creates a new instance of an [AuthorizationEntry](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/Authorization/AuthorizationEntry.md) for a given [AuthorizationEntry.Type](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/Authorization/AuthorizationEntry.md#type) while allowing you to specify the actions to run when authorizing Inserts and Updates.

#### Syntax

```csharp theme={"dark"}
public AuthorizationEntry(System.Type t, System.Func<bool> canInsertAction, System.Func<bool> canUpdateAction)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `t` | `System.Type` | The [AuthorizationEntry.Type](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/Authorization/AuthorizationEntry.md#type) to track authorization methods for. |
| `canInsertAction` | `System.Func<bool>` | A [Func\`1](https://learn.microsoft.com/dotnet/api/system.func-1) that evaluates to a [Boolean](https://learn.microsoft.com/dotnet/api/system.boolean) specifying whether or not a record can be inserted through the Restier API. |
| `canUpdateAction` | `System.Func<bool>` | A [Func\`1](https://learn.microsoft.com/dotnet/api/system.func-1) that evaluates to a [Boolean](https://learn.microsoft.com/dotnet/api/system.boolean) specifying whether or not a record can be updated through the Restier API. |

### &#x20;.ctor

Creates a new instance of an [AuthorizationEntry](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/Authorization/AuthorizationEntry.md) for a given [AuthorizationEntry.Type](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/Authorization/AuthorizationEntry.md#type) while allowing you to specify the actions to run when authorizing Inserts, Updates, and Deletes.

#### Syntax

```csharp theme={"dark"}
public AuthorizationEntry(System.Type t, System.Func<bool> canInsertAction, System.Func<bool> canUpdateAction, System.Func<bool> canDeleteAction)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `t` | `System.Type` | The [AuthorizationEntry.Type](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/Authorization/AuthorizationEntry.md#type) to track authorization methods for. |
| `canInsertAction` | `System.Func<bool>` | A [Func\`1](https://learn.microsoft.com/dotnet/api/system.func-1) that evaluates to a [Boolean](https://learn.microsoft.com/dotnet/api/system.boolean) specifying whether or not a record can be inserted through the Restier API. |
| `canUpdateAction` | `System.Func<bool>` | A [Func\`1](https://learn.microsoft.com/dotnet/api/system.func-1) that evaluates to a [Boolean](https://learn.microsoft.com/dotnet/api/system.boolean) specifying whether or not a record can be updated through the Restier API. |
| `canDeleteAction` | `System.Func<bool>` | A [Func\`1](https://learn.microsoft.com/dotnet/api/system.func-1) that evaluates to a [Boolean](https://learn.microsoft.com/dotnet/api/system.boolean) specifying whether or not a record can be deleted through the Restier API. |

### &#x20;.ctor Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public Object()
```

## Properties

### &#x20;CanDeleteAction

A [Func\`1](https://learn.microsoft.com/dotnet/api/system.func-1) that evaluates to a [Boolean](https://learn.microsoft.com/dotnet/api/system.boolean) specifying whether or not a record can be deleted through the Restier API. The default is false.

#### Syntax

```csharp theme={"dark"}
public System.Func<bool> CanDeleteAction { get; set; }
```

#### Property Value

Type: `System.Func<bool>`

### &#x20;CanInsertAction

A [Func\`1](https://learn.microsoft.com/dotnet/api/system.func-1) that evaluates to a [Boolean](https://learn.microsoft.com/dotnet/api/system.boolean) specifying whether or not a record can be inserted through the Restier API. The default is false.

#### Syntax

```csharp theme={"dark"}
public System.Func<bool> CanInsertAction { get; set; }
```

#### Property Value

Type: `System.Func<bool>`

### &#x20;CanUpdateAction

A [Func\`1](https://learn.microsoft.com/dotnet/api/system.func-1) that evaluates to a [Boolean](https://learn.microsoft.com/dotnet/api/system.boolean) specifying whether or not a record can be updated through the Restier API. The default is false.

#### Syntax

```csharp theme={"dark"}
public System.Func<bool> CanUpdateAction { get; set; }
```

#### Property Value

Type: `System.Func<bool>`

### &#x20;Type

The [AuthorizationEntry.Type](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/Authorization/AuthorizationEntry.md#type) to register this [AuthorizationEntry](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/Authorization/AuthorizationEntry.md) for in the [AuthorizationFactory](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/Authorization/AuthorizationFactory.md)AuthorizationFactory's\</see> backing Dictionary.

#### Syntax

```csharp theme={"dark"}
public System.Type Type { get; set; }
```

#### Property Value

Type: `System.Type`

## Methods

### &#x20;Equals Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual bool Equals(object obj)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `obj` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;Equals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public static bool Equals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;GetHashCode Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual int GetHashCode()
```

#### Returns

Type: `int`

### &#x20;GetType Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public System.Type GetType()
```

#### Returns

Type: `System.Type`

### &#x20;MemberwiseClone Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
protected internal object MemberwiseClone()
```

#### Returns

Type: `object`

### &#x20;ReferenceEquals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public static bool ReferenceEquals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;ToString Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual string ToString()
```

#### Returns

Type: `string?`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.