Share via


EdmOperation Class

Definition

Represents an EDM operation.

public abstract class EdmOperation : Microsoft.OData.Edm.EdmNamedElement, Microsoft.OData.Edm.IEdmFullNamedElement, Microsoft.OData.Edm.IEdmOperation
type EdmOperation = class
    inherit EdmNamedElement
    interface IEdmOperation
    interface IEdmSchemaElement
    interface IEdmNamedElement
    interface IEdmElement
    interface IEdmVocabularyAnnotatable
    interface IEdmFullNamedElement
Public MustInherit Class EdmOperation
Inherits EdmNamedElement
Implements IEdmFullNamedElement, IEdmOperation
Inheritance
Derived
Implements

Constructors

EdmOperation(String, String, IEdmTypeReference, Boolean, IEdmPathExpression)

Initializes a new instance of the EdmOperation class.

EdmOperation(String, String, IEdmTypeReference)

Initializes a new instance of the EdmOperation class.

Properties

EntitySetPath

Gets the entity set path expression.

FullName

Gets the full name of this schema element.

IsBound

Gets a value indicating whether this instance is bound.

Name

Gets the name of this element.

(Inherited from EdmNamedElement)
Namespace

Gets the namespace of this operation.

Parameters

Gets the parameters of this operation.

ReturnType

Gets the return type of this operation.

SchemaElementKind

Gets the element kind of this operation, which is always Operation. virtual will be removed in the near future, stop gap to enable testing for now.

Methods

AddOptionalParameter(String, IEdmTypeReference, String)

Creates and adds an optional parameter to this operation (as the last parameter).

AddOptionalParameter(String, IEdmTypeReference)

Creates and adds an optional parameter to this operation (as the last parameter).

AddParameter(IEdmOperationParameter)

Adds a parameter to this operation (as the last parameter).

AddParameter(String, IEdmTypeReference)

Creates and adds a parameter to this operation (as the last parameter).

FindParameter(String)

Searches for a parameter with the given name in this operation and returns null if no such parameter exists.

Extension Methods

GetSymbolicString(IEdmVocabularyAnnotatable)

Gets the symbolic string of an annotated element. In the next breaking change, it's better to add a property into IEdmVocabularyAnnotatable.

FullName(IEdmSchemaElement)

Gets the full name of the element.

GetReturn(IEdmOperation)

Gets the IEdmOperationReturn from the specified operation.

HasEquivalentBindingType(IEdmOperation, IEdmType)

Determines whether the bound operation's binding type is equivalent to the specified binding type.

IsAction(IEdmOperation)

Determines whether the specified operation is action.

IsFunction(IEdmOperation)

Determines whether the specified operation is function.

Location(IEdmElement)

Gets the location of this element.

ShortQualifiedName(IEdmSchemaElement)

Gets the Short Qualified name of the element.

TryGetRelativeEntitySetPath(IEdmOperation, IEdmModel, IEdmOperationParameter, Dictionary<IEdmNavigationProperty,IEdmPathExpression>, IEdmEntityType, IEnumerable<EdmError>)

Tries to get the relative entity set path.

VocabularyAnnotations(IEdmVocabularyAnnotatable, IEdmModel)

Gets an annotatable element's vocabulary annotations as seen from a particular model.

ToTraceString(IEdmSchemaElement)

Returns the text representation of the current object.

Errors(IEdmElement)

Gets the errors, if any, that belong to this element or elements that this element contains. For example errors for a structural type include the errors of the type itself and errors of its declared properties. The method does not analyze elements referenced by this element. For example errors of a property do not include errors from its type.

IsBad(IEdmElement)

Returns true if this element contains errors returned by the Errors(IEdmElement) method.

Applies to