No limitation on the number of records that can be passed.
New changes -
- Now supporting string, number, guids, date, datetime, datetimeoffset and boolean types.
- Instead of declaring the dbcontext every time, just set it once while declaring the BulkInsert object.
Just pass the DbContext as parameter to the constructor and use the following methods as per your needs.
void BulkInsertCommand(IEnumerable values);
void BulkInsertCommandForTPT(IEnumerable values, string parentName, string foreignKeys);