https://github.com/ltmenezes/dotnetbulkoperations
A high performance database bulk operations library.
https://github.com/ltmenezes/dotnetbulkoperations
bulk-inserts bulk-operation c-sharp dotnet dotnet-standard postgresql sql-server
Last synced: 5 months ago
JSON representation
A high performance database bulk operations library.
- Host: GitHub
- URL: https://github.com/ltmenezes/dotnetbulkoperations
- Owner: LTMenezes
- License: other
- Created: 2018-04-01T22:27:32.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-01T23:02:21.000Z (almost 8 years ago)
- Last Synced: 2025-03-04T01:33:53.928Z (11 months ago)
- Topics: bulk-inserts, bulk-operation, c-sharp, dotnet, dotnet-standard, postgresql, sql-server
- Language: C#
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: License.txt
Awesome Lists containing this project
README
# DotNet Bulk Operations
A high performance database bulk operations library.
This package is still under construction, the goal is to support a wide range of databases that have bulk operations capabilities.
Supported Databases:
* SQL Server
* PostgreSQL
Supported Operations:
* Bulk Insert
You can keep track of the upcoming features in the [changelog](https://github.com/LTMenezes/DotNetBulkOperations/blob/master/CHANGELOG.md).
## Usage
You must define models that represent the table you wish to modify:
```csharp
[Table(name: "ModelTable")]
public class Model
{
[Column(name: "name")]
public string Name { get; set; }
[Column(name: "surname")]
public string Surname { get; set; }
[Column(name: "age")]
public Nullable OptionalAge { get; set; }
}
```
After creating the model you can perform any bulk operation with them:
```csharp
connection.BulkInsert(models);
```