Dapper Plus – Introduction

Library Under Construction (Available at the end of April)

Adds or updates the mapper associated with the type and mapping key.

Entity

Adds or updates the mapper associated with the type.

DapperPlusManager.Entity()
                 .Table("Orders");

connection.BulkInsert(orders);

Entity with Mapping Key

Adds or updates the mapper associated with the type and mapping key.

DapperPlusManager.Entity("CustomKey")
                 .Table("CustomOrders");

connection.BulkInsert("CustomKey", orders);

We highly recommend using an enum value for the mapping key

DapperPlusManager.Entity(MappingKey.CustomKey1.ToString())
                 .Table("CustomOrders");

connection.BulkInsert(MappingKey.CustomKey1.ToString(), orders);