// 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
What we achieved over the last 5 years has grown beyond our hopes. That motivates us to continue to grow and improve all our projects. Every day, we are committed to listening to our clients to help ease the daily dev workload as much as possible.