Odata Instance properties Error $select Dot net core 3.1 WebApi Project

Activated Odata Support for Dotnet core 3.1 web API project

Dot core OData packages are installed

In Configure Service added

services.AddOData();

In Configure Added

app.UseMvc(routeBuilder =>
{
routeBuilder.EnableDependencyInjection();
routeBuilder.Expand().Select().Filter().Count().OrderBy();
routeBuilder.MapODataServiceRoute(“odata”, “odata”, GetEdmModel());
});

Commented UseEndpoints

        //app.UseEndpoints(endpoints =>
        //{
        //    endpoints.MapControllers();
        //});

After running Odata Instance and querying using the $select model data not getting and getting attached screen error.

.NET Foundation Website | Blog | Projects | Code of Conduct