Skip to main content

Definition

Assembly: Microsoft.OData.Mcp.Core.dll Namespace: Microsoft.OData.Mcp.Core.Models Inheritance: System.Object

Syntax

Microsoft.OData.Mcp.Core.Models.EdmFunction

Summary

Represents a function in the Entity Data Model.

Remarks

Functions are operations that can be called to retrieve data or perform calculations. They are side-effect free and can be composed with other query operations.

Constructors

.ctor

Initializes a new instance of the EdmFunction class.

Syntax

public EdmFunction()

.ctor

Initializes a new instance of the EdmFunction class with the specified name and namespace.

Syntax

public EdmFunction(string name, string namespaceName)

Parameters

NameTypeDescription
namestringThe function name.
namespaceNamestringThe namespace containing this function.

.ctor Inherited

Inherited from object

Syntax

public Object()

Properties

BindingParameterType

Gets or sets the type that this function is bound to.

Syntax

public string BindingParameterType { get; set; }

Property Value

Type: string? The type name that this function is bound to, if applicable.

FullName

Gets the fully qualified name of the function.

Syntax

public string FullName { get; }

Property Value

Type: string The namespace and name separated by a dot.

IsBound

Gets or sets a value indicating whether the function is bound.

Syntax

public bool IsBound { get; set; }

Property Value

Type: bool true if the function is bound to a type; otherwise, false.

Remarks

Bound functions are called on instances of a specific type.

IsComposable

Gets or sets a value indicating whether the function is composable.

Syntax

public bool IsComposable { get; set; }

Property Value

Type: bool true if the function is composable; otherwise, false.

Remarks

Composable functions can be used in query expressions and can be combined with other operations.

Name

Gets or sets the name of the function.

Syntax

public string Name { get; set; }

Property Value

Type: string The function name.

Namespace

Gets or sets the namespace of the function.

Syntax

public string Namespace { get; set; }

Property Value

Type: string The namespace containing this function.

Parameters

Gets or sets the parameters of the function.

Syntax

public System.Collections.Generic.List<Microsoft.OData.Mcp.Core.Models.EdmParameter> Parameters { get; set; }

Property Value

Type: System.Collections.Generic.List<Microsoft.OData.Mcp.Core.Models.EdmParameter> A collection of parameters that the function accepts.

ReturnType

Gets or sets the return type of the function.

Syntax

public string ReturnType { get; set; }

Property Value

Type: string? The type returned by the function.

Methods

Equals Inherited Virtual

Inherited from object

Syntax

public virtual bool Equals(object obj)

Parameters

NameTypeDescription
objobject?-

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

public static bool Equals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

public virtual int GetHashCode()

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

public System.Type GetType()

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

protected internal object MemberwiseClone()

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

public static bool ReferenceEquals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

public virtual string ToString()

Returns

Type: string?