EntityFrameworkCore.Toolbox
9.0.1
dotnet add package EntityFrameworkCore.Toolbox --version 9.0.1
NuGet\Install-Package EntityFrameworkCore.Toolbox -Version 9.0.1
<PackageReference Include="EntityFrameworkCore.Toolbox" Version="9.0.1" />
<PackageVersion Include="EntityFrameworkCore.Toolbox" Version="9.0.1" />
<PackageReference Include="EntityFrameworkCore.Toolbox" />
paket add EntityFrameworkCore.Toolbox --version 9.0.1
#r "nuget: EntityFrameworkCore.Toolbox, 9.0.1"
#:package EntityFrameworkCore.Toolbox@9.0.1
#addin nuget:?package=EntityFrameworkCore.Toolbox&version=9.0.1
#tool nuget:?package=EntityFrameworkCore.Toolbox&version=9.0.1
EntityFrameworkCore.Toolbox
Extensions and ease of life code to automattically handle working with Entity Framework and related datasets.
Tested and working with Entity Framework Core Sql Server. Other backends may require additional work. Open to pull requests.
EfBulkCopy
Easily upload entities to a database, bypassing the database context entirely by automatting the mapping to SqlBulkCopy:
await dbContext.BulkCopyAsync(myData);
Or even pull from another source entirely via passing a map of TEntity.Property.Name and a fetch function:
await dbContext.BulkCopyAsync<TEntity, TSource>>(myData, entityNameToPropertyGetterMap);
Enum reference helpers
Add reference tables to the database automatically or as needed.
public class MyDbContext : DbContext
{
...
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.AddEnumReferenceTable<MyEnum>(); // Add enums one at a time
modelBuilder.AddEnumReferenceTables(); // Add all enums in the context
}
...
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- Microsoft.EntityFrameworkCore.SqlServer (>= 9.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Add cancellationtokens add helper extension methods