{"id":19740699,"url":"https://github.com/zzzprojects/dapper-plus","last_synced_at":"2026-02-24T18:09:46.641Z","repository":{"id":38106815,"uuid":"55711556","full_name":"zzzprojects/Dapper-Plus","owner":"zzzprojects","description":"Dapper Plus - High-Efficient Bulk Actions (Insert, Update, Delete, and Merge) for .NET","archived":false,"fork":false,"pushed_at":"2025-03-11T08:04:33.000Z","size":1167,"stargazers_count":406,"open_issues_count":11,"forks_count":87,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-04-01T05:34:09.821Z","etag":null,"topics":["bulk-inserts","csharp","dapper","dotnet","micro-orm","orm","ormlite","sql","sqlbulkcopy"],"latest_commit_sha":null,"homepage":"https://dapper-plus.net/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zzzprojects.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-07T16:47:44.000Z","updated_at":"2025-03-30T00:42:43.000Z","dependencies_parsed_at":"2023-02-14T02:01:38.889Z","dependency_job_id":"dee34315-6be0-446a-9e28-64260045e0c3","html_url":"https://github.com/zzzprojects/Dapper-Plus","commit_stats":null,"previous_names":[],"tags_count":210,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzzprojects%2FDapper-Plus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzzprojects%2FDapper-Plus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzzprojects%2FDapper-Plus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzzprojects%2FDapper-Plus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zzzprojects","download_url":"https://codeload.github.com/zzzprojects/Dapper-Plus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247801170,"owners_count":20998339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bulk-inserts","csharp","dapper","dotnet","micro-orm","orm","ormlite","sql","sqlbulkcopy"],"created_at":"2024-11-12T01:23:00.250Z","updated_at":"2026-02-24T18:09:46.633Z","avatar_url":"https://github.com/zzzprojects.png","language":"C#","readme":"# What's Dapper Plus?\n\nLike [Dapper](https://github.com/StackExchange/dapper-dot-net), **Dapper Plus** is a [NuGet library](https://www.nuget.org/packages/Z.Dapper.Plus/) where you can add to your project that will extend your `IDbConnection` and `IDbTransaction` interface with high efficient Bulk Actions Helpers (Insert, Update, Delete, and Merge).\n\nIt can be used with or without Dapper, and it's compatible with all other Dapper packages.\n\n### Example\n```csharp\n// @nuget: Z.Dapper.Plus\nusing Z.Dapper.Plus;\n\n// CONFIGURE \u0026 MAP entity\nDapperPlusManager.Entity\u003cOrder\u003e().Table(\"Orders\").Identity(x =\u003e x.ID);\n\n// CHAIN \u0026 SAVE entity\nconnection.BulkInsert(orders)\n          .AlsoInsert(order =\u003e order.Items);\n          .Include(order =\u003e order.ThenMerge(order =\u003e order.Invoice)\n                                 .AlsoMerge(invoice =\u003e invoice.Items))\n          .AlsoMerge(order =\u003e order.ShippingAddress);\t\n```\n\n## Download\n\u003ca href=\"https://www.nuget.org/packages/Z.Dapper.Plus/\" target=\"_blank\"\u003e\u003cimg src=\"https://zzzprojects.github.io/images/nuget/dapper-plus-v.svg\" alt=\"download\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://www.nuget.org/packages/Z.Dapper.Plus/\" target=\"_blank\"\u003e\u003cimg src=\"https://zzzprojects.github.io/images/nuget/dapper-plus-d.svg\" alt=\"\" /\u003e\u003c/a\u003e\n\n```\nPM\u003e Install-Package Z.Dapper.Plus\n```\n\n_* PRO Version unlocked for the current month_\n\n## Wiki\n[Introduction](https://dapper-plus.net/overview)\n\n- Bulk Actions\n   - [Bulk Insert](https://dapper-plus.net/bulk-insert)\n   - [Bulk Update](https://dapper-plus.net/bulk-update)\n   - [Bulk Delete](https://dapper-plus.net/bulk-delete)\n   - [Bulk Merge](https://dapper-plus.net/bulk-merge)\n- Also Bulk Actions\n   - [Also Bulk Insert](https://dapper-plus.net/also-bulk-insert)\n   - [Also Bulk Update](https://dapper-plus.net/also-bulk-update)\n   - [Also Bulk Delete](https://dapper-plus.net/also-bulk-delete)\n   - [Also Bulk Merge](https://dapper-plus.net/also-bulk-merge)\n- Then Bulk Actions\n   - [Then Bulk Insert](https://dapper-plus.net/then-bulk-insert)\n   - [Then Bulk Update](https://dapper-plus.net/then-bulk-update)\n   - [Then Bulk Delete](https://dapper-plus.net/then-bulk-delete)\n   - [Then Bulk Merge](https://dapper-plus.net/then-bulk-merge)\n- [Include Actions](https://dapper-plus.net/include-actions)\n- [Transaction](https://dapper-plus.net/transaction)\n\n**Dapper Plus - Mapper**\n- [Map](https://dapper-plus.net/map)\n- Options\n   - [Action](https://dapper-plus.net/action-options)\n   - [Batch](https://dapper-plus.net/batch-options)\n   - [SQL Server](https://dapper-plus.net/sql-server-options)\n   - [Temporary Table](https://dapper-plus.net/temporary-table-options)\n   - [Transient Error](https://dapper-plus.net/transient-error-options)\n\n[PRO License](https://dapper-plus.net/licensing)\n\n## Mapper\nDapper Plus Mapper allows to map the conceptual model (Entity) with the storage model (Database) and configure options to perform Bulk Actions.\n```csharp\n// @nuget: Z.Dapper.Plus\nusing Z.Dapper.Plus;\n\nDapperPlusManager.Entity\u003cOrder\u003e().Table(\"Orders\")\n                                 .Identity(x =\u003e x.ID)\n                                 .BatchSize(200);\n```\n\n## Bulk Actions\n**Bulk Actions** allow to perform a bulk insert, update, delete or merge and include related child items.\n```csharp\n// @nuget: Z.Dapper.Plus\nusing Z.Dapper.Plus;\n\nconnection.BulkInsert(orders, order =\u003e order.Items)\n          .BulkInsert(invoices, invoice =\u003e invoice.Items)\n          .BulkMerge(shippingAddresses);\n```\n### Also Bulk Actions\n**Also Bulk Actions** allow to perform bulk action with a lambda expression using entities from the last Bulk[Action] or ThenBulk[Action] used.\n\n```csharp\n// @nuget: Z.Dapper.Plus\nusing Z.Dapper.Plus;\n\nconnection.BulkInsert(orders)\n          .AlsoInsert(order =\u003e order.Items)\n          .AlsoInsert(order =\u003e order.Invoice)\n          .AlsoInsert(order =\u003e order.Invoice.Items);\n```\n### Then Bulk Actions\n**Then Bulk Actions** is similar to Also Bulk Actions but modifies entities used for the next bulk action using a lambda expression.\n\n```csharp\n// @nuget: Z.Dapper.Plus\nusing Z.Dapper.Plus;\n\nconnection.BulkInsert(orders)\n          .AlsoInsert(order =\u003e order.Items)\n          .ThenInsert(order =\u003e order.Invoice)\n          .ThenInsert(invoice =\u003e invoice.Items);\n```\n\n### Include Actions\nThe Dapper Plus Include method allows resolving issues with multiple \"ThenBulk[Action]\" methods.\n\n```csharp\n// @nuget: Z.Dapper.Plus\nusing Z.Dapper.Plus;\n\nconnection.BulkInsert(orders)\n          .Include(x =\u003e x.ThenInsert(order =\u003e order.Items)\n                         .ThenInsert(orderItem =\u003e orderItem.Metas))\n          .Include(x =\u003e x.ThenInsert(order =\u003e order.Invoice)\n                         .ThenInsert(Invoice =\u003e invoice.Items));   \t\n```\n\n### Transaction\nAll Dapper Plus extension methods are also available on the `IDbTransaction` interface\n```csharp\n// @nuget: Z.Dapper.Plus\nusing Z.Dapper.Plus;\n\ntransaction.BulkInsert(orders)\n          .Include(x =\u003e x.ThenInsert(order =\u003e order.Items)\n                         .ThenInsert(orderItem =\u003e orderItem.Metas))\n          .Include(x =\u003e x.ThenInsert(order =\u003e order.Invoice)\n                         .ThenInsert(Invoice =\u003e invoice.Items));   \t\n```\n\n## DB Provider Supported\nAll major database providers are supported or under development.\n- SQL Server 2008+\n- SQL Azure\n- SQL Compact\n- SQLite\n- MySQL\n- PostgreSQL\n- Oracle\n\n## PRO\n_PRO Version unlocked for the current month_\n\nFeatures                    | [PRO Version](https://dapper-plus.net/#pro)\n--------                    | :-------------: |\nBulk Insert                 | Yes\nBulk Update                 | Yes\nBulk Delete                 | Yes\nBulk Merge                  | Yes\nBulk Action Async           | Yes\nBulk Also Action            | Yes\nBulk Then Action            | Yes\nCommercial License          | Yes\nRoyalty-Free                | Yes\nSupport \u0026 Upgrades (1 year) | Yes\n\nLearn more about the **[PRO Version](https://dapper-plus.net/#pro)**.\n\n## Contribute\n\nThe best way to contribute is by **spreading the word** about the library:\n\n - Blog it\n - Comment it\n - Star it\n - Share it\n \nA **HUGE THANKS** for your help.\n\n## More Projects\n\n- Projects:\n   - [EntityFramework Extensions](https://entityframework-extensions.net/)\n   - [Dapper Plus](https://dapper-plus.net/)\n   - [C# Eval Expression](https://eval-expression.net/)\n- Learn Websites\n   - [Learn EF Core](https://www.learnentityframeworkcore.com/)\n   - [Learn Dapper](https://www.learndapper.com/)\n- Online Tools:\n   - [.NET Fiddle](https://dotnetfiddle.net/)\n   - [SQL Fiddle](https://sqlfiddle.com/)\n   - [ZZZ Code AI](https://zzzcode.ai/)\n- and much more!\n\nTo view all our free and paid projects, visit our website [ZZZ Projects](https://zzzprojects.com/).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzzzprojects%2Fdapper-plus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzzzprojects%2Fdapper-plus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzzzprojects%2Fdapper-plus/lists"}