v3.0.33
Download the library here
- ADDED:
AutoMapColumnBuilder
option to add some configuration during the automapping.
using (var bulk = new BulkOperation<EntitySimple>())
{
bulk.Connection = connection;
bulk.DestinationTableName = "EntitySimples";
bulk.AutoMapColumnBuilder = (sourceName, column) =>
{
if (sourceName == nameof(EntitySimple.ID))
{
column.IsIdentity = true;
column.Direction = ColumnMappingDirectionType.Output;
}
};
bulk.BulkInsert(list);
}
Trial unlocked until the end of April