EFBulk 1.0.3

dotnet add package EFBulk --version 1.0.3
NuGet\Install-Package EFBulk -Version 1.0.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EFBulk" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EFBulk --version 1.0.3
#r "nuget: EFBulk, 1.0.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install EFBulk as a Cake Addin
#addin nuget:?package=EFBulk&version=1.0.3

// Install EFBulk as a Cake Tool
#tool nuget:?package=EFBulk&version=1.0.3

How to use

Sample Code

public class Item
{
    public int ItemId { get; set; }
    public string Title { get; set; }
    [Column("Price DB")] // optional column name
    public Decimal Price { get; set; }
}
public class MyContext : DbContext
{
    public DbSet<Item> Items { get; set; }
    public MyContext() : base("name=DataConnection") { }        
}
class Program
{
    static void Main(string[] args)
    {
        MyContext db = new MyContext();
        SqlParameter[] sqlParameters;
                
        //Update: this will execute the Update SQL statement
        var count = db.Items.Where(s => s.Title == "Game")
            .Update(o => new Item { Price = 999, Title = "Tablet" }, db);
        
        //Delete: this will execute the Delete SQL statement
        var count2 = db.Items.Where(s => s.Title == "Micro").Delete(db);

       // Advanced option: by default, update or delete operation will detach 
       // all "Item" records from Db context. If you don't want it, you can pass false 
       // to detachAllRecordsOfTypeT
       var count3 = db.Items.Where(s => s.Title == "Game")
            .Update(o => new Item { Price = 999, Title = "Tablet" }, db, false);
    }
}
Product Compatible and additional computed target framework versions.
.NET Framework net452 is compatible.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.3 1,449 8/25/2018
1.0.2 792 8/24/2018
1.0.1 1,148 8/24/2018

Fixed detaching updated or deleted records.