diff --git a/samples/aspnetcore/SwaggerODataSample/Startup.cs b/samples/aspnetcore/SwaggerODataSample/Startup.cs index ad121fc7..2d0b3b37 100644 --- a/samples/aspnetcore/SwaggerODataSample/Startup.cs +++ b/samples/aspnetcore/SwaggerODataSample/Startup.cs @@ -85,6 +85,7 @@ public void Configure( IApplicationBuilder app, IHostingEnvironment env, Version // routeBuilder.SetDefaultODataOptions( new ODataOptions() { UrlKeyDelimiter = Parentheses } ); routeBuilder.ServiceProvider.GetRequiredService().UrlKeyDelimiter = Parentheses; routeBuilder.MapVersionedODataRoutes( "odata", "api", modelBuilder.GetEdmModels() ); + routeBuilder.Count(); } ); app.UseSwagger(); app.UseSwaggerUI( @@ -108,4 +109,4 @@ static string XmlCommentsFilePath } } } -} \ No newline at end of file +}