Skip to main content

Definition

Assembly: Microsoft.Restier.Core.dll Namespace: Microsoft.Restier.Core Inheritance: System.Object

Syntax

Microsoft.Restier.Core.ConventionBasedMethodNameFactory

Summary

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

Methods

GetEntitySetMethodName

Generates the complete MethodName for a given IEdmOperationImport, RestierPipelineState, and RestierEntitySetOperation.

Syntax

public static string GetEntitySetMethodName(Microsoft.OData.Edm.IEdmEntitySet entitySet, Microsoft.Restier.Core.RestierPipelineState restierPipelineState, Microsoft.Restier.Core.RestierEntitySetOperation operation)

Parameters

NameTypeDescription
entitySetMicrosoft.OData.Edm.IEdmEntitySetThe IEdmEntitySet that contains the details for the EntitySet and the Entities it holds.
restierPipelineStateMicrosoft.Restier.Core.RestierPipelineStateThe part of the Restier pipeline currently executing.
operationMicrosoft.Restier.Core.RestierEntitySetOperationThe RestierEntitySetOperation currently being executed.

Returns

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

GetEntitySetMethodName

Generates the complete MethodName for a given IEdmOperationImport, RestierPipelineState, and RestierEntitySetOperation.

Syntax

public static string GetEntitySetMethodName(Microsoft.Restier.Core.Submit.DataModificationItem item, Microsoft.Restier.Core.RestierPipelineState restierPipelineState)

Parameters

NameTypeDescription
itemMicrosoft.Restier.Core.Submit.DataModificationItemThe DataModificationItem that contains the details for the EntitySet and the Entities it holds.
restierPipelineStateMicrosoft.Restier.Core.RestierPipelineStateThe part of the Restier pipeline currently executing.

Returns

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

GetFunctionMethodName

Generates the complete MethodName for a given IEdmOperationImport, RestierPipelineState, and RestierEntitySetOperation.

Syntax

public static string GetFunctionMethodName(Microsoft.OData.Edm.IEdmOperationImport operationImport, Microsoft.Restier.Core.RestierPipelineState restierPipelineState, Microsoft.Restier.Core.RestierOperationMethod restierOperation)

Parameters

NameTypeDescription
operationImportMicrosoft.OData.Edm.IEdmOperationImportThe IEdmOperationImport to generate a name for.
restierPipelineStateMicrosoft.Restier.Core.RestierPipelineStateThe part of the Restier pipeline currently executing.
restierOperationMicrosoft.Restier.Core.RestierOperationMethodThe RestierOperationMethod currently being executed.

Returns

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

GetFunctionMethodName

Generates the complete MethodName for a given OperationContext, RestierPipelineState, and RestierEntitySetOperation.

Syntax

public static string GetFunctionMethodName(Microsoft.Restier.Core.Operation.OperationContext operationImport, Microsoft.Restier.Core.RestierPipelineState restierPipelineState, Microsoft.Restier.Core.RestierOperationMethod restierOperation)

Parameters

NameTypeDescription
operationImportMicrosoft.Restier.Core.Operation.OperationContextThe OperationContext to generate a name for.
restierPipelineStateMicrosoft.Restier.Core.RestierPipelineStateThe part of the Restier pipeline currently executing.
restierOperationMicrosoft.Restier.Core.RestierOperationMethodThe RestierOperationMethod currently being executed.

Returns

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