> ## 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.

# ConventionBasedMethodNameFactory

> A set of string factory methods than generate Restier names for various possible operations.

## Definition

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

**Namespace:** Microsoft.Restier.Core

**Inheritance:** System.Object

## Syntax

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

## Summary

A set of string factory methods than generate Restier names for various possible operations.

## Methods

### &#x20;GetEntitySetMethodName

Generates the complete MethodName for a given [IEdmOperationImport](https://learn.microsoft.com/dotnet/api/microsoft.odata.edm.iedmoperationimport), [RestierPipelineState](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/RestierPipelineState.md), and [RestierEntitySetOperation](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/RestierEntitySetOperation.md).

#### Syntax

```csharp theme={"dark"}
public static string GetEntitySetMethodName(Microsoft.OData.Edm.IEdmEntitySet entitySet, Microsoft.Restier.Core.RestierPipelineState restierPipelineState, Microsoft.Restier.Core.RestierEntitySetOperation operation)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `entitySet` | `Microsoft.OData.Edm.IEdmEntitySet` | The [IEdmEntitySet](https://learn.microsoft.com/dotnet/api/microsoft.odata.edm.iedmentityset) that contains the details for the EntitySet and the Entities it holds. |
| `restierPipelineState` | `Microsoft.Restier.Core.RestierPipelineState` | The part of the Restier pipeline currently executing. |
| `operation` | `Microsoft.Restier.Core.RestierEntitySetOperation` | The [RestierEntitySetOperation](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/RestierEntitySetOperation.md) currently being executed. |

#### Returns

Type: `string`
A string representing the fully-realized MethodName.

### &#x20;GetEntitySetMethodName

Generates the complete MethodName for a given [IEdmOperationImport](https://learn.microsoft.com/dotnet/api/microsoft.odata.edm.iedmoperationimport), [RestierPipelineState](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/RestierPipelineState.md), and [RestierEntitySetOperation](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/RestierEntitySetOperation.md).

#### Syntax

```csharp theme={"dark"}
public static string GetEntitySetMethodName(Microsoft.Restier.Core.Submit.DataModificationItem item, Microsoft.Restier.Core.RestierPipelineState restierPipelineState)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `item` | `Microsoft.Restier.Core.Submit.DataModificationItem` | The [DataModificationItem](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/Submit/DataModificationItem.md) that contains the details for the EntitySet and the Entities it holds. |
| `restierPipelineState` | `Microsoft.Restier.Core.RestierPipelineState` | The part of the Restier pipeline currently executing. |

#### Returns

Type: `string`
A string representing the fully-realized MethodName.

### &#x20;GetFunctionMethodName

Generates the complete MethodName for a given [IEdmOperationImport](https://learn.microsoft.com/dotnet/api/microsoft.odata.edm.iedmoperationimport), [RestierPipelineState](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/RestierPipelineState.md), and [RestierEntitySetOperation](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/RestierEntitySetOperation.md).

#### Syntax

```csharp theme={"dark"}
public static string GetFunctionMethodName(Microsoft.OData.Edm.IEdmOperationImport operationImport, Microsoft.Restier.Core.RestierPipelineState restierPipelineState, Microsoft.Restier.Core.RestierOperationMethod restierOperation)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `operationImport` | `Microsoft.OData.Edm.IEdmOperationImport` | The [IEdmOperationImport](https://learn.microsoft.com/dotnet/api/microsoft.odata.edm.iedmoperationimport) to generate a name for. |
| `restierPipelineState` | `Microsoft.Restier.Core.RestierPipelineState` | The part of the Restier pipeline currently executing. |
| `restierOperation` | `Microsoft.Restier.Core.RestierOperationMethod` | The [RestierOperationMethod](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/RestierOperationMethod.md) currently being executed. |

#### Returns

Type: `string`
A string representing the fully-realized MethodName.

### &#x20;GetFunctionMethodName

Generates the complete MethodName for a given [OperationContext](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/Operation/OperationContext.md), [RestierPipelineState](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/RestierPipelineState.md), and [RestierEntitySetOperation](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/RestierEntitySetOperation.md).

#### Syntax

```csharp theme={"dark"}
public static string GetFunctionMethodName(Microsoft.Restier.Core.Operation.OperationContext operationImport, Microsoft.Restier.Core.RestierPipelineState restierPipelineState, Microsoft.Restier.Core.RestierOperationMethod restierOperation)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `operationImport` | `Microsoft.Restier.Core.Operation.OperationContext` | The [OperationContext](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/Operation/OperationContext.md) to generate a name for. |
| `restierPipelineState` | `Microsoft.Restier.Core.RestierPipelineState` | The part of the Restier pipeline currently executing. |
| `restierOperation` | `Microsoft.Restier.Core.RestierOperationMethod` | The [RestierOperationMethod](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/RestierOperationMethod.md) currently being executed. |

#### Returns

Type: `string`
A string representing the fully-realized MethodName.


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