Dapper Plus – Introduction

Library Under Construction (Available at the end of April)

Dapper Plus Mapper allow to configure SqlServer options.

Name Description
SqlBulkCopyOptions Sets the SqlBulkCopyOptions to use if SqlBulkCopy is used to insert directly in the table.

SqlBulkCopyOptions

Sets the SqlBulkCopyOptions to use if SqlBulkCopy is used to insert directly in the table.

Example

Configure the entity order to use CheckConstraint, FireTrigger and TableLock.

Default

var options = SqlBulkCopyOptions.CheckConstraints |
              SqlBulkCopyOptions.FireTriggers |
              SqlBulkCopyOptions.TableLock;

DapperPlusManager.MapperFactory = mapper => mapper.SqlBulkCopyOptions(options);

Instance

var options = SqlBulkCopyOptions.CheckConstraints |
              SqlBulkCopyOptions.FireTriggers |
              SqlBulkCopyOptions.TableLock;

DapperPlusManager.Entity().SqlBulkCopyOptions(options);