// Returns categories stored in the database. using(NorthwindEntities context = new NorthwindEntities()) { return context.Categories.ToList(); } // Returns categories from in-memory database. using(NorthwindEntities context = Effort.ObjectContextFactory .CreateTransient<NorthwindEntities>()) { return context.Categories.ToList(); }
Effort stands for Entity Framework Fake ObjectContext Realization Tool. It is a powerful tool that enables a convenient way to create automated tests for Entity Framework based applications.
Whenever you need to create a fake or mock database. So you can test your Business Logic Layer (BLL) without worrying about your Data Access Layer (DAL).
You can use Entity Framework Effort with EF5 and EF6.
No, this library doesn't support EF Core yet. There is no planned date yet.
Find out how to dramatically improve EF performances with
Entity Framework Extensions
Entity Framework Effort is FREE and always will be.
However, last year alone, we spent over 3000 hours maintaining our free projects! We need resources to keep developing our open-source projects.
We highly appreciate any contribution!