I would like to use Object Context instead of DbContext to call Bulk Insert in Entity Framework 6. How can I do that?
I would like to do something like
readonly ObjectContext obContext:
public void BulkInsert<T>(IEnumerable<T> items) where T : class, new()
{
obContext.BulkInsert(items);
}
But I am not able to do this.