Skip to content

Instantly share code, notes, and snippets.

@xuzhg
Created April 6, 2020 23:57
Show Gist options
  • Select an option

  • Save xuzhg/abe487a81d209655d8247471a29fdce3 to your computer and use it in GitHub Desktop.

Select an option

Save xuzhg/abe487a81d209655d8247471a29fdce3 to your computer and use it in GitHub Desktop.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
app.UseRouting();
app.UseEndpoints(endpoints =>
{
endpoints.Select().Expand().Filter().OrderBy().MaxTop(100).Count();
endpoints.MapODataRoute("odata", "odata", GetEdmModel());
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment