This project has moved. For the latest updates, please go here.

Using with EF 5 and an Object Context

May 7, 2015 at 11:08 PM
I am getting an error that says EF 4 and 5 Code First not supported trying to use the bulk insert with a project that uses EF 5 and the ObjectContext. Here is the code I am using:

var ctx = new System.Data.Entity.DbContext(Repository.GetObjectContext(), false);
ctx.BulkInsert(statTiers);

I assumed since there is a Nuget package for EF 5 that I can make use of the bulk insert on an EF project. Any suggestions?