A great library that extends the functionality of EF. It provides the features to do batch updates, delete and future queries and audit log.
PM> Install-Package EntityFramework.Extended
Use the Package Manager Console in VS2010 to install it. And you can find the source in Github.
http://nuget.org/packages/EntityFramework.Extended
https://github.com/loresoft/EntityFramework.Extended
Make sure you import the Extensions namespace. Then you will see the extension methods of batch delete/update. Here are a few lines of code to demonstrate how to delete, update.
using EntityFramework.Extensions; context.Users.Delete(u => u.FirstName == "firstname"); context.Tasks.Update( t => t.StatusId == 1, t => new Task {StatusId = 2});
For future query usage, you can use an IQueryable as the filter for the update
var users = context.Users .Where(u => u.FirstName == "firstname"); context.Users.Update( users, u => new User {FirstName = "newfirstname"})
Pretty cool is it! To read more documentations go to the github site. https://github.com/loresoft/EntityFramework.Extended
This library requires Entity Framework 5.
It doesn’t. I was using it with 4.1