EFBulk 1.0.1
There is a newer version of this package available.
See the version list below for details.
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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.
-
- EntityFramework (>= 6.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial Release.