Skip to main content

Definition

Assembly: Microsoft.OData.Mcp.AspNetCore.dll Namespace: Microsoft.OData.Mcp.AspNetCore.Vocabularies Inheritance: System.Object

Syntax

Summary

Attaches Microsoft.OData.Mcp.V1 to an EdmModel and stamps Task annotations.

Methods

EnsureReferenced

Adds the MCP vocabulary as a referenced model and an edmx:Reference Include when the service model does not already have it.

Syntax

Parameters

Examples

Remarks

FindTerm only sees terms on referenced models. SetEdmReferences is merged so ModelBuilder’s Core/Capabilities references stay on the model.

StampTask

Stamps Microsoft.OData.Mcp.V1.Task on an action, attaching the vocabulary if needed.

Syntax

Parameters

Examples

Remarks

Used after OData routes are mapped, when the finished model is already in hand. The annotation is serialized inline on target so it appears in the schema that already declares the action.