This project is read-only.


add model validation pass in odata model builder


we should validate things like when users build edm models explicitly (not for the implicit model we build in query composition)
1) an entity type has key(s).
2) an entity type has a corresponding entity set.
3) all navigation properties are bound to an entity set.
4) a non-abstract entity type is bound to a non-abstract clr type.
5) all properties in an edm type have public setters and public getters in the backing clr type.
Closed Jan 15, 2015 at 9:12 AM by lianw
Closed here and moved the issue to GitHub (


HongmeiG wrote Sep 20, 2012 at 11:18 PM

We can validate the model when someone calls builder.GetEdmModel().

danroth27 wrote Oct 3, 2013 at 11:49 PM

We should do this by default (with option to disable) as part of our OData v4.0 work.