1
Vote

add model validation pass in odata model builder

description

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.

comments

HongmeiG wrote Sep 20, 2012 at 10:18 PM

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

danroth27 wrote Oct 3, 2013 at 10:49 PM

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