OData Metadata Iteration

How to repeat OData metadata? I need to iterate all the objects, their properties with types, keys, and navigation properties (all the necessary information, to be precise), but I'm stuck as SchemaElements returns objects of internal types (Microsoft.OData.Edm.Csdl.CsdlSemantics.CsdlSemanticsEntityContainer) and I I can’t drop them to get all this information.

var metadata = expect _client.GetMetadataAsync ();

foreach (var element in .SchemaElements metadata)

where the client is declared this way:

Simple.OData.Client.ODataClient _client;

+4
source share

Source: https://habr.com/ru/post/1668223/


All Articles