Dapper Plus – Introduction

Library Under Construction (Available at the end of April)

Sets the mapper factory to use to create a new Mapper.

Existing Mapper instance is not affected by the change from mapper factory.

// Use default batch size (Mapper created before MapperFactory configuration)
DapperPlusManager.Entity();

DapperPlusManager.MapperFactory = mapper => mapper.BatchSize(500);

// Use batch size = 500; (Mapper created after MapperFactory configuration)
DapperPlusManager.Entity();