EntityFramework.Utilities
EntityFramework.Utilities copied to clipboard
InsertAll System.InvalidOperationException
An exception of type 'System.InvalidOperationException' occurred in EntityFramework.Utilities.dll but was not handled in user code
Additional information: No provider supporting the InsertAll operation for this datasource was found.
When trying to insertAll in VB.net EF 6.1.3 EFUtilities 1.0.2
Any idea on where to look to get this working?
Can you provide the code you have leading up to calling InsertAll? That would help track down the issues.
I ran into the same issue but was able to resolve that by passing the connection explicitly as so
using (var con = new SqlConnection(_context.Database.Connection.ConnectionString)) EFBatchOperation.For(_context, _context.SomedBSetCollection).InsertAll(somedBSetCollection, con);
Now the same issue is happening for Delete i.e. No provider supporting the Delete operation for this datasource was found. But, there is no way to explicitly pass the connection string here
This can be caused by Glimpse, specifically Glimpse.Ado or Glimpse.EF6.