Comments (1)
The customer has the following logic:
var builder = new ODataConventionModelBuilder();
builder.OnModelCreating += ApplyLowerCamelCase;
Where 'ApplyLowerCamelCase' is used to change the type and property name (camel case).
It looks like OnModelCreating
is misused here, since 'This action is invoked after the ODataConventionModelBuilder has run all the conventions.`
It means model builder runs all conventions before calling 'OnModelCreating'.
There's conventions to build action/function links, the link builder takes the type name before 'OnModelCreating' logic change it. So, the link builder uses the 'original' type name (it's 'Plan'). Meanwhile, 'OnModelCreating' changes the type name using camel case (it's 'plan'). So, the link builder can not find the edm type using the 'original' type name since the edm model only contains camel case type name.
Customers should understand the usage of 'OnModelCreating' (avoid changing the type name within it, etc). On our side,
We can resolve it by simply using 'ignoreCase' to look up the type.
from webapi.
Related Issues (20)
- NU1608: Detected package version outside of dependency constraint: Microsoft.AspNet.WebApi.OData 5.7.0 requires Microsoft.AspNet.WebApi.Core (>= 5.2.2 && < 5.3.0) but version Microsoft.AspNet.WebApi.Core 5.3.0 was resolved. HOT 2
- The property '{propertyname}' cannot be used in the $expand query option HOT 6
- OData-prefix missing in delta responses
- Make the query validator thread-safe since the validator is singleton
- 'Microsoft.AspNet.WebApi.Core 5.3.0' is not compatible with 'Microsoft.AspNet.OData 7.7.2 constraint: Microsoft.AspNet.WebApi.Core (>= 5.2.2 && < 5.3.0)' HOT 2
- Odata MongoDb lt filtering HOT 3
- JsonIgnore with condition incorrectly ignoring property when using OData $select query with [EnableQuery] endpoint HOT 2
- [Microsoft.AspNet.OData v7.7.3] Request.ODataProperties().NextLink is always null
- InvalidOperationException thrown from CreateRequestContainer cause performance issue HOT 9
- IHttpContextAccessor.HttpContext.User is not always authenticated (when it should) when invoked by IModelCacheKeyFactory HOT 5
- Group by a property of a derived type is not supported HOT 1
- Perf: OData performance regressions found between 6.0.0 and 7.7.4
- Invalid JSON when using List<List<?>> property HOT 2
- Faulty link generation when creating entities with string key and slashes HOT 1
- OData response with custom ODataOutputFormatter HOT 2
- WebApi v7 doesn't support property Instance annotation without property value
- Filtering on `DateTime` without timezone information. HOT 2
- $select on sub property works on ASP.NET OData but throw exception on Core OData HOT 1
- FromODataUriAttribute binds string property as number HOT 2
- WebApi v7 throws `ResourceTypeAnnotationNotFirst` error when payload has both @removed and @odata.type HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webapi.