Entity Framework Extensions – Installing

Installing

Is it the first time you use our Library?

Don’t worry. People love our library because it’s so easy to use.

Step 1 – NuGet Download

Entity Framework Extensions is only available through NuGet

download

PM> Install-Package Z.EntityFramework.Extensions

Step 2 – Have Fun!

No configuration is required!

Following extension methods are automatically added to DbContext:

  • BulkSaveChanges
  • BulkInsert
  • BulkUpdate
  • BulkDelete
  • BulkMerge

ctx.BulkSaveChanges();
ctx.BulkInsert(list);
ctx.BulkUpdate(list);
ctx.BulkDelete(list);
ctx.BulkMerge(list);

Following extension methods are automatically added to IQueryable:

  • DeleteFromQuery
  • UpdateFromQuery

ctx.Customers.Where(x => !x.IsActif).DeleteFromQuery();
ctx.Customers.Where(x => !x.IsActif).UpdateFromQuery(x => new Customer {Actif = true});