schotime / NPoco

Simple microORM that maps the results of a query onto a POCO object. Project based on Schotime's branch of PetaPoco
Apache License 2.0
848 stars 302 forks source link

BulkCopyBatchSize added to insertBulkOptions #656

Closed IvoTops closed 1 year ago

IvoTops commented 2 years ago

For tables with very few columns the default batchsize of 4096 rows is actually not a lot.

Added the parameter, nothing else. Gives the end user a bit of extra flexibility

IvoTops commented 2 years ago

Added support for byte sized enums.

using a public enum TestEnum : BYTE { Test1=1,Test2 =2} will throw an error if inserted into a tinyint type column in SQLServer. The second commit fixes that by using underlyingtype instead of a hard cast to (int)