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

# EdmAction

> Represents an action in the Entity Data Model.

## Definition

**Assembly:** Microsoft.OData.Mcp.Core.dll

**Namespace:** Microsoft.OData.Mcp.Core.Models

**Inheritance:** System.Object

## Syntax

```csharp theme={null}
Microsoft.OData.Mcp.Core.Models.EdmAction
```

## Summary

Represents an action in the Entity Data Model.

## Remarks

Actions are operations that may have side effects and are used to modify
data or perform operations that cannot be expressed through standard CRUD operations.

## Constructors

### &#x20;.ctor

Initializes a new instance of the [EdmAction](https://ai.easyaf.dev/odata-mcp/api-reference/Microsoft/OData/Mcp/Core/Models/EdmAction.md) class.

#### Syntax

```csharp theme={null}
public EdmAction()
```

### &#x20;.ctor

Initializes a new instance of the [EdmAction](https://ai.easyaf.dev/odata-mcp/api-reference/Microsoft/OData/Mcp/Core/Models/EdmAction.md) class with the specified name and namespace.

#### Syntax

```csharp theme={null}
public EdmAction(string name, string namespaceName)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `name` | `string` | The action name. |
| `namespaceName` | `string` | The namespace containing this action. |

### &#x20;.ctor Inherited

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

#### Syntax

```csharp theme={null}
public Object()
```

## Properties

### &#x20;BindingParameterType

Gets or sets the type that this action is bound to.

#### Syntax

```csharp theme={null}
public string BindingParameterType { get; set; }
```

#### Property Value

Type: `string?`
The type name that this action is bound to, if applicable.

### &#x20;Description

Gets or sets the CSDL documentation summary or `Core.Description` for this action.

#### Syntax

```csharp theme={null}
public string Description { get; set; }
```

#### Property Value

Type: `string?`
A human-readable summary from metadata, or `null` when none is declared.

### &#x20;ElicitUrlProperties

Gets or sets JSON property names on the action result that are URLs to elicit.

#### Syntax

```csharp theme={null}
public System.Collections.Generic.List<string> ElicitUrlProperties { get; set; }
```

#### Property Value

Type: `System.Collections.Generic.List<string>?`
The declared `Microsoft.OData.Mcp.V1.ElicitUrlProperties` list, or `null` when the term is omitted.

### &#x20;FullName

Gets the fully qualified name of the action.

#### Syntax

```csharp theme={null}
public string FullName { get; }
```

#### Property Value

Type: `string`
The namespace and name separated by a dot.

### &#x20;IsBound

Gets or sets a value indicating whether the action is bound.

#### Syntax

```csharp theme={null}
public bool IsBound { get; set; }
```

#### Property Value

Type: `bool`
`true` if the action is bound to a type; otherwise, `false`.

#### Remarks

Bound actions are called on instances of a specific type.

### &#x20;IsTask

Gets or sets a value indicating whether the action runs as an MCP task when the client opts in.

#### Syntax

```csharp theme={null}
public bool IsTask { get; set; }
```

#### Property Value

Type: `bool`
`true` when `Microsoft.OData.Mcp.V1.Task` is true; otherwise, `false`.

### &#x20;LongDescription

Gets or sets the CSDL long description or `Core.LongDescription` for this action.

#### Syntax

```csharp theme={null}
public string LongDescription { get; set; }
```

#### Property Value

Type: `string?`
A longer documentation string from metadata, or `null` when none is declared.

### &#x20;Name

Gets or sets the name of the action.

#### Syntax

```csharp theme={null}
public string Name { get; set; }
```

#### Property Value

Type: `string`
The action name.

### &#x20;Namespace

Gets or sets the namespace of the action.

#### Syntax

```csharp theme={null}
public string Namespace { get; set; }
```

#### Property Value

Type: `string`
The namespace containing this action.

### &#x20;Parameters

Gets or sets the parameters of the action.

#### Syntax

```csharp theme={null}
public System.Collections.Generic.List<Microsoft.OData.Mcp.Core.Models.EdmParameter> Parameters { get; set; }
```

#### Property Value

Type: `System.Collections.Generic.List<Microsoft.OData.Mcp.Core.Models.EdmParameter>`
A collection of parameters that the action accepts.

### &#x20;ReturnType

Gets or sets the return type of the action.

#### Syntax

```csharp theme={null}
public string ReturnType { get; set; }
```

#### Property Value

Type: `string?`
The type returned by the action, if any.

## Methods

### &#x20;Equals Inherited Virtual

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

#### Syntax

```csharp theme={null}
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={null}
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={null}
public virtual int GetHashCode()
```

#### Returns

Type: `int`

### &#x20;GetType Inherited

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

#### Syntax

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

#### Returns

Type: `System.Type`

### &#x20;MemberwiseClone Inherited

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

#### Syntax

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

#### Returns

Type: `object`

### &#x20;ReferenceEquals Inherited

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

#### Syntax

```csharp theme={null}
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={null}
public virtual string ToString()
```

#### Returns

Type: `string?`


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