Skip to main content

Definition

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

Syntax

Summary

Represents a parameter in the Entity Data Model.

Remarks

Parameters are used to define inputs to functions and actions in the OData model.

Constructors

.ctor

Initializes a new instance of the EdmParameter class.

Syntax

.ctor

Initializes a new instance of the EdmParameter class with the specified name and type.

Syntax

Parameters

.ctor Inherited

Inherited from object

Syntax

Properties

MaxLength

Gets or sets the maximum length for string parameters.

Syntax

Property Value

Type: System.Nullable<int> The maximum length, or null if not specified.

Name

Gets or sets the name of the parameter.

Syntax

Property Value

Type: string The parameter name.

Nullable

Gets or sets a value indicating whether the parameter is nullable.

Syntax

Property Value

Type: bool true if the parameter accepts null values; otherwise, false.

Precision

Gets or sets the precision for numeric parameters.

Syntax

Property Value

Type: System.Nullable<int> The precision, or null if not specified.

Scale

Gets or sets the scale for decimal parameters.

Syntax

Property Value

Type: System.Nullable<int> The scale, or null if not specified.

Type

Gets or sets the type of the parameter.

Syntax

Property Value

Type: string The parameter type.

Methods

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?