Search code examples
entity-frameworkentity-framework-ctp5

Exposing interface types from EntityFramework's DbContext


I was having a look at CTP5 of EntityFramework and the code first fluent interface. It looks very nice, but is there a way to make the DbContext expose only interface types and the in the fluent interface's model binder define a concrete implementation to use?


Solution

  • No, as of CTP5, EF Code First does not support interfaces and this feature is unlikely to be supported in the RTM that is targeted to be released this year.