DEV Community

Abdur Rahim
Abdur Rahim

Posted on • Edited on

My Very First NuGet package

πŸš€ BulkOperations.Package

A lightweight and efficient .NET library for performing bulk operations (Insert, Update, Delete) using Entity Framework Core (EF Core).

NuGet
License
Downloads


✨ 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
Enter fullscreen mode Exit fullscreen mode


`

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

`


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)