Skip to content

IDynamicHandlers Interface ​

Definition ​

Provides insert/update/list operations for runtime/dynamic TableInfo shapes materializing DynamicRow values.

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

Methods ​

NameDescription
Task<int> BulkInsertAsync(TableInfo table, IEnumerable<DynamicRow> rows, CancellationToken cancellationToken = null)Inserts dynamic rows using provider-specific bulk techniques (binary COPY, SqlBulkCopy, etc.). Falls back to InsertListAsync when no bulk provider is registered.
Task<bool> DeleteByPkAsync(TableInfo table, object id, int commandTimeout = null, CancellationToken cancellationToken = null)Deletes a row by primary key value.
Task<DynamicRow> GetByPkAsync(TableInfo table, object id, CancellationToken cancellationToken = null)Fetches a row by primary key value, or null if none match.
Task<bool> InsertAsync(TableInfo table, DynamicRow row, int commandTimeout = null, CancellationToken cancellationToken = null)Inserts a single dynamic row.
Task<int> InsertListAsync(TableInfo table, IEnumerable<DynamicRow> rows, int commitInterval = null, bool useTransaction = null, int commandTimeout = null, CancellationToken cancellationToken = null)Inserts a list of dynamic rows using batched parameterized statements.
Task<bool> UpdateAsync(TableInfo table, DynamicRow row, int commandTimeout = null, CancellationToken cancellationToken = null)Updates a single dynamic row by primary key.
Task<int> UpdateListAsync(TableInfo table, IEnumerable<DynamicRow> rows, int commitInterval = null, bool useTransaction = null, int commandTimeout = null, CancellationToken cancellationToken = null)Updates a list of dynamic rows by primary key using batched parameterized statements.