Dapper Plus Entity

Description

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

Entity

Adds or updates the mapper associated with the type.

Entity Examples

DapperPlusManager.Entity<Order>()
                 .Table("Orders");

connection.BulkInsert(orders);

Entity with Mapping Key

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

Entity with Mapping Key Examples

DapperPlusManager.Entity<Order>("CustomKey")
                 .Table("CustomOrders");

connection.BulkInsert("CustomKey", orders);

We highly recommend using an enum value for the mapping key

BulkSaveChanges Examples

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

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

Last updated: 2023-02-28
Author:


Contents