π BulkOperations.Package
A lightweight and efficient .NET library for performing bulk operations (Insert, Update, Delete) using Entity Framework Core (EF Core).
β¨ Features
- β Bulk Insert β Efficiently insert large datasets.
- β Bulk Update β Apply changes to multiple entities at once.
- β Bulk Delete β Remove large batches of records in a single operation.
- β‘ Asynchronous and optimized for high performance.
- π Easy integration with existing EF Core projects.
π¦ Installation
Using NuGet Package Manager
Install-Package BulkOperations.Package
`
Using .NET CLI
bash
dotnet add package BulkOperations.Package
π Quick Start
1. Bulk Insert
`csharp
using BulkOperations;
using YourNamespace.Models;
var users = new List
{
new User { Name = "Alice", Email = "alice@example.com" },
new User { Name = "Bob", Email = "bob@example.com" },
};
await context.BulkInsertAsync(users);
`
2. Bulk Update
`csharp
foreach (var user in users)
{
user.IsActive = false;
}
await context.BulkUpdateAsync(users);
`
3. Bulk Delete
csharp
await context.BulkDeleteAsync(users);
π‘ These methods work directly with your
DbContext
and require minimal setup.
π Roadmap
Coming soon:
- [ ] Bulk Merge (Upsert)
- [ ] Transaction support
- [ ] Non-tracking entity support
- [ ] Custom filters and mappings
π Requirements
- .NET 6.0 or later
- EF Core 6.0 or later
π Contributing
Contributions are welcome! Hereβs how you can help:
- β Star this repository
- π Report bugs or open issues
- βοΈ Suggest features or improvements
- π₯ Submit pull requests
π License
This project is licensed under the MIT License. See the LICENSE file for details.
π¬ Feedback
Have feedback or questions?
Feel free to open an issue or reach out on GitHub Discussions.
π‘ Author
Abdur Rahim β @arahimx
π Useful Links
- π NuGet Package
- π GitHub Repository
`
Let me know if you'd like me to generate a sample.csproj
file or a sample demo app to go with this!
`
Top comments (0)