You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The metadata model for the odata endpoints only contains a single namespace. (your assembly namespace as name)
And this namespace don't include a EntityContainer.
For me for example it looks like that:
The problem is that other software that tries to read the odata metadata model, will always say you API is empty. (for example Excel or PowerBi to call two by the name)
To fix this you must build your OData model with the following code:
Typemodel=// type of the model that should be added to your EDM model.var method =typeof(ODataConventionModelBuilder).GetMethod("EntitySet");method= method.MakeGenericMethod(model);
method.Invoke(odataBuilder,newobject[]{ model.Name });
after you run the above code for each modeltype you must run the following to publish the EdmModel:
Describe the bug
The metadata model for the odata endpoints only contains a single namespace. (your assembly namespace as name)
And this namespace don't include a EntityContainer.
For me for example it looks like that:
The problem is that other software that tries to read the odata metadata model, will always say you API is empty. (for example Excel or PowerBi to call two by the name)
To fix this you must build your OData model with the following code:
after you run the above code for each modeltype you must run the following to publish the EdmModel:
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: