ObjectContextManager with Entity FrameworkObjectContextManager with Entity Framework
Old forum URL: forums.lhotka.net/forums/t/7683.aspx
russelle posted on Saturday, September 26, 2009
I'm trying to use the ObjectContextManager with the Entity Framework. When I declare the context normally like this:
using (var ctx = new FBAEntities())
everything works fine. When I try to do this:
using (var ctx = ObjectContextManager<FoodBankAdmin.DAL.EntityFramework.FBAEntities>
.GetManager(FoodBankAdmin.DAL.EntityFramework.Database.FoodBankAdmin))
the statement
var listTypes = from lt in ctx.GetListType(_criteria.LanguageID,
_criteria.ListType) select lt;
gives me the following error:
‘Csla.Data.ObjectContextManager' does not contain a definition for 'GetListType' and no extension method 'GetListType' accepting a first argument of type 'Csla.Data.ObjectContextManager' could be found (are you missing a using directive or an assembly reference?)
I don't see any missing reference or USING statement. Any idea what is going on?
Thanks,
RussellCopyright (c) Marimer LLC