Hi Guys,
Using EF 6 on SQL Server 2012 I get this error:
An exception of type 'System.InvalidOperationException' occurred in EntityFramework.dll but was not handled in user code
Additional information: The entity type PersonGridTypedViewRow is not part of the model for the current context.
Based on
return _db.Set<PersonGridTypedViewRow>()
.Where(p => p.NationId == User.NationId && p.IsBahai && p.DOD == null && p.LocalId == localId)
.OrderBy(p => p.LastName);
where _db is the MYDataContext(); that LLBL generates.
This typed view is based on a table (Right click Reverse engineer to Typed View) There is no _db.GetPersonGridTypedView().
Strangely, there is no reference to the PersonGridTypedViewRow anywhere in the edmx or the code generated by LLBL
How do I get the TYpedViews to be queryable?