BstBulk.PostgreSql 10.1.0

BstBulk.PostgreSql

PostgreSQL provider package for BstBulk. Bundles the provider-agnostic BstBulk core with EFCore.BulkExtensions.PostgreSql and adds convenience wrappers that run the bulk operation using the columns opted-in via [Bulk(insert, update)].

Install this package (instead of plain BstBulk) in a PostgreSQL application.

Usage

Mark the properties and configure the model exactly as documented in BstBulk, then run the bulk operation directly from the DbContext:

using BstBulk.PostgreSql.Extensions;

// Uses PropertiesToInclude (insert) + PropertiesToIncludeOnUpdate (update) from [Bulk] flags.
await dbContext.BstBulkInsertOrUpdate(products);

// Insert-only / update-only helpers are also available.
await dbContext.BstBulkInsert(products);
await dbContext.BstBulkUpdate(products);

// Customize the generated BulkConfig when needed:
await dbContext.BstBulkInsertOrUpdate(products, config => {
    config.UpdateByProperties = [nameof(Product.Id)];
});

To build the BulkConfig yourself (and call EFCore.BulkExtensions directly), use the core helper:

using BstBulk.Extensions;

var config = dbContext.GetBulkConfig<Product>();
await dbContext.BulkInsertOrUpdateAsync(products, config);

No packages depend on BstBulk.PostgreSql.

.NET 10.0

Version Downloads Last updated
10.1.0 3 14/07/2026