Skip to content

v3.0.33

Compare
Choose a tag to compare
@JonathanMagnan JonathanMagnan released this 25 Mar 02:20
· 8 commits to master since this release
bf91865

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