> ## Documentation Index
> Fetch the complete documentation index at: https://easyaf.dev/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

### <Icon icon="thumbtack" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> GetEntitySetMethodName

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

#### 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](/restier/api-reference/Microsoft/Restier/Core/RestierEntitySetOperation) currently being executed.                                   |

#### Returns

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

### <Icon icon="thumbtack" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> GetEntitySetMethodName

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

#### 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](/restier/api-reference/Microsoft/Restier/Core/Submit/DataModificationItem) 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.

### <Icon icon="thumbtack" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> GetFunctionMethodName

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

#### 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](/restier/api-reference/Microsoft/Restier/Core/RestierOperationMethod) currently being executed.      |

#### Returns

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

### <Icon icon="thumbtack" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> GetFunctionMethodName

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

#### 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](/restier/api-reference/Microsoft/Restier/Core/Operation/OperationContext) 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](/restier/api-reference/Microsoft/Restier/Core/RestierOperationMethod) currently being executed. |

#### Returns

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