I am somewhat confused.
Well, the query that you just wrote would mean that you should pass "SinistrePSs" as the entity set name in the QECV constructor. Then we will append the Include clause on SinistrePS.
retval = _bdd.SinistrePSs
We take the string in yellow and look for such a query property on the ObjectContext with reflection. Then we append different clauses such as Where, OrderBy, Include, Skip and Take to the query property that we found.
You are correctly passing in the ObjectContext. Even if there was a ctor accepting a DbContext, we do exactly the same -- obtain the ObjectContext by using the IObjectContextAdapter adapter.
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>