We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I try to build OData service with asp.net core 3.1. It has very similar requirements as Dynamic EDM model creation sample (https://github.com/OData/ODataSamples/tree/master/WebApiCore/DynamicEdmModelCreation)
Below is my code in Configure in Startup.cs,
` app.UseEndpoints(endpoints =>
{ endpoints.EnableDependencyInjection(); endpoints.Expand().Select().Count().Filter().OrderBy(); endpoints.MapControllers(); //endpoints.MapODataRoute() endpoints.MapODataRoute("odata", "odata/{tenant}", GetEdmModel(app.ApplicationServices)); });`
GetEdmModel shall be able to read {tenant} in order to provide EDM models base on the given tenant. Any suggestion is highly appreciated.
Thanks, Michael
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I try to build OData service with asp.net core 3.1. It has very similar requirements as Dynamic EDM model creation sample (https://github.com/OData/ODataSamples/tree/master/WebApiCore/DynamicEdmModelCreation)
Below is my code in Configure in Startup.cs,
` app.UseEndpoints(endpoints =>
{
endpoints.EnableDependencyInjection();
endpoints.Expand().Select().Count().Filter().OrderBy();
endpoints.MapControllers();
//endpoints.MapODataRoute()
endpoints.MapODataRoute("odata", "odata/{tenant}", GetEdmModel(app.ApplicationServices));
});`
GetEdmModel shall be able to read {tenant} in order to provide EDM models base on the given tenant. Any suggestion is highly appreciated.
Thanks,
Michael
The text was updated successfully, but these errors were encountered: