jbogard / bulk-writer

Provides guidance for fast ETL jobs, an IDataReader implementation for SqlBulkCopy (or the MySql or Oracle equivalents) that wraps an IEnumerable, and libraries for mapping entites to table columns.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Microsoft.Data.SqlClient support

jonsagara opened this issue · comments

I would like to add support for Microsoft.Data.SqlClient. How would you suggest doing it? Trying to shoehorn it into this package? Creating a separate package like they did with Microsoft.Data.SqlClient?

Here's a proof-of-concept: https://github.com/jonsagara/bulk-writer-msft-data/tree/msftsqlclient

Changes:

  • Uses Microsoft.Data.SqlClient
  • Targets netstandard2.0 and net472
  • Added a constructor overload to accept SqlBulkCopyOptions from the caller. If provided, use the caller's options instead of computing them
  • Updated nuget packages
  • Update target platforms for Demo and Tests

Implemented in #27 #32 #39