EntityFramework.Utilities icon indicating copy to clipboard operation
EntityFramework.Utilities copied to clipboard

InsertAll System.InvalidOperationException

Open akluthe opened this issue 9 years ago • 3 comments

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?

akluthe avatar Oct 28 '15 13:10 akluthe

Can you provide the code you have leading up to calling InsertAll? That would help track down the issues.

RubberChickenParadise avatar Dec 18 '15 22:12 RubberChickenParadise

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

SangeetAgarwal avatar Aug 18 '16 13:08 SangeetAgarwal

This can be caused by Glimpse, specifically Glimpse.Ado or Glimpse.EF6.

RudeySH avatar Feb 09 '17 15:02 RudeySH