ragyaiddo / Ef.BulkInsert

Demo on doing a simple bulk insert with Entity Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ef.BulkInsert

This is a project to demonstrate how to do bulk inserts with EntityFramework using the SqlBulkCopy class. This is inspired by this blog post on using SqlBulkCopy for high performance querying.

Core to this solution is the custom implementation of the IDataReader interface. Mike Goatley has a very detailed explanation in implementing such custom IDataReader implementation here; which I copied most of the code.

I also referred to this EntityFramework.BulkInsert repository on how it's implemented as an extension.

About

Demo on doing a simple bulk insert with Entity Framework

License:MIT License


Languages

Language:C# 100.0%