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.EdmParameter

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

public EdmParameter()

.ctor

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

Syntax

public EdmParameter(string name, string type)

Parameters

NameTypeDescription
namestringThe parameter name.
typestringThe parameter type.

.ctor Inherited

Inherited from object

Syntax

public Object()

Properties

MaxLength

Gets or sets the maximum length for string parameters.

Syntax

public System.Nullable<int> MaxLength { get; set; }

Property Value

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

Name

Gets or sets the name of the parameter.

Syntax

public string Name { get; set; }

Property Value

Type: string The parameter name.

Nullable

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

Syntax

public bool Nullable { get; set; }

Property Value

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

Precision

Gets or sets the precision for numeric parameters.

Syntax

public System.Nullable<int> Precision { get; set; }

Property Value

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

Scale

Gets or sets the scale for decimal parameters.

Syntax

public System.Nullable<int> Scale { get; set; }

Property Value

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

Type

Gets or sets the type of the parameter.

Syntax

public string Type { get; set; }

Property Value

Type: string The parameter type.

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?