On our WCF project, classes take a "repository" inteface injected by a dependency injector.
public class MyNiceService
{
public MyNiceService(IRepository myDBorFakeOne)
{
_DB = myDBorFakeOne;
}
This allows us to send in a fake repository to test our code without database connnections.
When I generate an Entity framework project, the data context is a concrete class:
public partial class IMyDataContext : DbContext
Is there a way to have LLBL create and add an Interface based on the public calls to the IMyDataContext?