Skip to content

IBulkProcessor Interface ​

Definition ​

Interface describing Bulk Operations for advanced provider flows

  • Namespace: JASE.Database
  • Assembly: JASE.Database.dll

Methods ​

NameDescription
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)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> BulkUpdateAsync(DbSession session, IEnumerable<T> entities, TableInfo table, CancellationToken cancellationToken = null)UPDATES a batch of entities of type T in the most efficient provider-specific way (binary copy, TVP, etc.).