Documentation Index Fetch the complete documentation index at: https://easyaf.dev/llms.txt
Use this file to discover all available pages before exploring further.
Definition
Assembly: Microsoft.OData.Mcp.Core.dll
Namespace: Microsoft.OData.Mcp.Core.Parsing
Syntax
Microsoft . OData . Mcp . Core . Parsing . ICsdlMetadataParser
Summary
Interface for parsing OData CSDL (Conceptual Schema Definition Language) XML documents into EDM models.
This interface abstracts the parsing of CSDL XML documents that describe the structure of OData services,
including entity types, complex types, entity containers, and their relationships.
It supports OData specification versions 4.0 and later.
Methods
ParseFromFile Abstract
Parses a CSDL XML document from a file.
Syntax
Microsoft . OData . Mcp . Core . Models . EdmModel ParseFromFile ( string filePath )
Parameters
Name Type Description
filePathstringThe path to the file containing the CSDL XML content.
Returns
Type: Microsoft.OData.Mcp.Core.Models.EdmModel
The parsed EDM model.
Exceptions
Exception Description
ArgumentExceptionThrown when filePath is null or whitespace. FileNotFoundExceptionThrown when the file does not exist. XmlExceptionThrown when the XML is malformed. InvalidOperationExceptionThrown when the CSDL structure is invalid.
ParseFromStream Abstract
Parses a CSDL XML document from a stream.
Syntax
Microsoft . OData . Mcp . Core . Models . EdmModel ParseFromStream ( System . IO . Stream stream )
Parameters
Name Type Description
streamSystem.IO.StreamThe stream containing the CSDL XML content.
Returns
Type: Microsoft.OData.Mcp.Core.Models.EdmModel
The parsed EDM model.
Exceptions
Exception Description
ArgumentNullExceptionThrown when stream is null. XmlExceptionThrown when the XML is malformed. InvalidOperationExceptionThrown when the CSDL structure is invalid.
ParseFromString Abstract
Parses a CSDL XML document from a string.
Syntax
Microsoft . OData . Mcp . Core . Models . EdmModel ParseFromString ( string csdlXml )
Parameters
Name Type Description
csdlXmlstringThe CSDL XML content as a string.
Returns
Type: Microsoft.OData.Mcp.Core.Models.EdmModel
The parsed EDM model.
Exceptions
Exception Description
ArgumentExceptionThrown when csdlXml is null or whitespace. XmlExceptionThrown when the XML is malformed. InvalidOperationExceptionThrown when the CSDL structure is invalid.