I'm trying to increase the performance for insert operations by using EntityFramework.BulkInsert
.
Currently I have something like this:
var theEntities = ChangeTracker.Entries<BaseEntity>().ToList();
this.BulkInsert(theEntities, _transaction.UnderlyingTransaction);
Which throws an exception:
No table mappings provided
I don't see the point or what I can do as of examples for EF6, database-first are really hard to find.
Any ideas?
Changing the code as from the comments, it now throws the following exception:
Type 'Private_DatabaseEntities.BaseEntity' is not found in context 'Private_DatabaseEntities.EntityModelContext'
whereas EntityModelContext
is the context I'm using (inheriting from DbContext
) and BaseEntity
is the base-class for all concrete entities.