Appearance
BulkInsertAsync Method
Definition
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
Overloads
| Name | Description |
|---|---|
Task<int> BulkInsertAsync(DbSession session, TableInfo table, IEnumerable<DynamicRow> rows, CancellationToken cancellationToken = null) | Inserts dynamic rows using provider-specific bulk techniques. Column wire types come from table metadata (SqlDatatype / DataType), not from CLR property types on a POCO. |
Task<int> BulkInsertAsync(DbSession session, IEnumerable<T> entities, TableInfo table, CancellationToken cancellationToken = null) | Inserts a batch of entities of type T in the most efficient provider-specific way (binary copy, TVP, etc.). |
Task<int> BulkInsertAsync(DbSession session, TableInfo table, IEnumerable<DynamicRow> rows, CancellationToken cancellationToken = null)
csharp
Task<int> BulkInsertAsync(DbSession session, TableInfo table, IEnumerable<DynamicRow> rows, CancellationToken cancellationToken = null)Inserts dynamic rows using provider-specific bulk techniques. Column wire types come from table metadata (SqlDatatype / DataType), not from CLR property types on a POCO.
Task<int> BulkInsertAsync(DbSession session, IEnumerable<T> entities, TableInfo table, CancellationToken cancellationToken = null)
csharp
Task<int> BulkInsertAsync(DbSession session, IEnumerable<T> entities, TableInfo table, CancellationToken cancellationToken = null)Inserts a batch of entities of type T in the most efficient provider-specific way (binary copy, TVP, etc.).