Created
April 6, 2020 23:57
-
-
Save xuzhg/abe487a81d209655d8247471a29fdce3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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