EFBulk 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package EFBulk --version 1.0.1                
NuGet\Install-Package EFBulk -Version 1.0.1                
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.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EFBulk --version 1.0.1                
#r "nuget: EFBulk, 1.0.1"                
#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.1

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

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 op: Approach 1, this will return the Update SQL statement
        var stmt = db.Items.Where(s => s.Title == "Game")
            .GetUpdateStmt(o => new Item { Price = 999, Title = "Tablet" }
            , out sqlParameters);
        //Update op: Approach 2, this will excute the Update SQL statement
        var count = db.Items.Where(s => s.Title == "Game")
            .Update(o => new Item { Price = 999, Title = "Tablet" }, db);
        
        //Delete op: Approach 1, this will return the Delete SQL statement
        var stmt2 = db.Items.Where(s => s.Title == "Micro").GetDeleteStmt();
        //Delete op: Approach 2, this will excute the Delete SQL statement
        var count2 = db.Items.Where(s => s.Title == "Micro").Delete(db);
    }
}
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,534 8/25/2018
1.0.2 836 8/24/2018
1.0.1 1,189 8/24/2018

Initial Release.