{"action":"opened","issue":{"url":"https://api.github.com/repos/MarimerLLC/cslaforum/issues/170","repository_url":"https://api.github.com/repos/MarimerLLC/cslaforum","labels_url":"https://api.github.com/repos/MarimerLLC/cslaforum/issues/170/labels{/name}","comments_url":"https://api.github.com/repos/MarimerLLC/cslaforum/issues/170/comments","events_url":"https://api.github.com/repos/MarimerLLC/cslaforum/issues/170/events","html_url":"https://github.com/MarimerLLC/cslaforum/issues/170","id":150273735,"number":170,"title":"CSLA ProjectTracker Sample Missing DbContext Example","user":{"login":"jonnybee","id":3512406,"avatar_url":"https://avatars.githubusercontent.com/u/3512406?v=3","gravatar_id":"","url":"https://api.github.com/users/jonnybee","html_url":"https://github.com/jonnybee","followers_url":"https://api.github.com/users/jonnybee/followers","following_url":"https://api.github.com/users/jonnybee/following{/other_user}","gists_url":"https://api.github.com/users/jonnybee/gists{/gist_id}","starred_url":"https://api.github.com/users/jonnybee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonnybee/subscriptions","organizations_url":"https://api.github.com/users/jonnybee/orgs","repos_url":"https://api.github.com/users/jonnybee/repos","events_url":"https://api.github.com/users/jonnybee/events{/privacy}","received_events_url":"https://api.github.com/users/jonnybee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-22T05:40:23Z","updated_at":"2016-04-22T05:40:23Z","closed_at":null,"body":"I've recently started a new project that is going to target CSLA 4.6.3 (was going to use 4.5.701 but decided to use latest). Using the CSLA 4 eBooks, I've been able to take my previous knowledge using 3.8 and 4.1 and move the version up. \r\n\r\nHowever, in previous projects we used LINQ to SQL so EF is completely new to me. Having said that, the eBook is built off of 4.1 using what appears to be an older EF since its using  ObjectContextManager . I've been able to use  ObjectContextManager with my current EF implementation using the  DalManager  described in the eBook BUT the  IDispose interface was not implemented. It was just there and empty.\r\n\r\nI tried to implement it today using the example in the book and the differences between  ObjectContextManager  and  DbContextManager  seem to be breaking for me. By this I mean I can replace  ObjectContextManager  with  DbContextManager  usring  Csla.Data.EF6  but when my \r\n DalManager hits the  return Activator.CreateInstance(type) as T;  line the code throws the following error:  System.MissingMethodException: Constructor on type 'OLTP.DalEf.OltDbEntities' not found. \r\n\r\nIs there an updated sample project someone can point me to that implements the  DalManager  using  DbContextManager  instead? I've been stuck here all day so any help is appreciated. Code available if needed.\r\n\r\nSome info that might help:\r\n1.EF Code Generation Strategy is T4 \r\n2.This was Database First since we already had the tables\r\n3.Looking at the code that is generated by my templates, I do not have any constructors. There is only  OnModelCreating  which is used to throw an  UnintentionalCodeFirstException  \r\n"}}