Jaa


EdmFunction Class

Definition

Represents an EDM function.

public class EdmFunction : Microsoft.OData.Edm.EdmOperation, Microsoft.OData.Edm.IEdmFunction
type EdmFunction = class
    inherit EdmOperation
    interface IEdmFunction
    interface IEdmOperation
    interface IEdmSchemaElement
    interface IEdmNamedElement
    interface IEdmElement
    interface IEdmVocabularyAnnotatable
Public Class EdmFunction
Inherits EdmOperation
Implements IEdmFunction
Inheritance
Implements

Constructors

EdmFunction(String, String, IEdmTypeReference, Boolean, IEdmPathExpression, Boolean)

Initializes a new instance of the EdmFunction class.

EdmFunction(String, String, IEdmTypeReference)

Initializes a new instance of the EdmFunction class.

Properties

EntitySetPath

Gets the entity set path expression.

(Inherited from EdmOperation)
FullName

Gets the full name of this schema element.

(Inherited from EdmOperation)
IsBound

Gets a value indicating whether this instance is bound.

(Inherited from EdmOperation)
IsComposable

Gets a value indicating whether this instance is composable.

Name

Gets the name of this element.

(Inherited from EdmNamedElement)
Namespace

Gets the namespace of this operation.

(Inherited from EdmOperation)
Parameters

Gets the parameters of this operation.

(Inherited from EdmOperation)
ReturnType

Gets the return type of this operation.

(Inherited from EdmOperation)
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).

(Inherited from EdmOperation)
AddOptionalParameter(String, IEdmTypeReference)

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

(Inherited from EdmOperation)
AddParameter(IEdmOperationParameter)

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

(Inherited from EdmOperation)
AddParameter(String, IEdmTypeReference)

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

(Inherited from EdmOperation)
FindParameter(String)

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

(Inherited from EdmOperation)

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