Ger*_*hes 5 c# odata asp.net-core
我正在使用AspNetCore 2.0.0,我正在尝试集成OData.
我找到了一个nuget包https://www.nuget.org/packages/microsoft.aspnetcore.odata以及关于SO"如何用ASP.NET 5注册OData"的这个问题 - > 如何用ASP注册OData. NET 5
我已经添加services.AddOData();的ConfigureServices装饰与API EnableQuery.
一旦我编译代码并尝试访问api,我就会收到此错误: A model is required for querying. Consider implementing the EnableQueryAttribute.GetModel method never to return a null value.
此外,我必须提到IApplicationBuilder由于某种原因不包含defdoition UseOData.
有人能用吗?
| 归档时间: |
|
| 查看次数: |
151 次 |
| 最近记录: |