Skip to content

v7.1.0

Compare
Choose a tag to compare
@JonathanMagnan JonathanMagnan released this 29 Nov 19:03
· 1 commit to master since this release

Download the library here

  • ADDED: DapperPlusContext now inherits from the IDisposable interface
  • ADDED: Support to pass bulk options via variable
// from mapping
var bulkOptionsGeneric = new BulkOperationOptions<Customer>();
bulkOptionsGeneric.ColumnPrimaryKeyExpression = x => x.CustomerID;
DapperPlusManager.Entity<Customer>().UseBulkOptions(bulkOptionsGeneric);

// from connection
var bulkOptions = new BulkOperationOptions();
bulkOptions.BatchTimeout = 90;
connection.UseBulkOptions(bulkOptions).BulkInsert(customers);
  • REMOVED: Unnecessary dependency for .NET 8 version:
    • Microsoft.CSharp

Trial unlocked until the end of December