Home

Error Testing Custom EF Core Connection: Pomelo.EntityFrameworkCore.MySql v3.2.4

I have a .NET Standard 2.0 project that contains an EF Core 3.1.12 context (latest version that still supports .NET Standard 2.0 to support .NET Framework). I am using the Pomelo.EntityFrameworkCore.MySql v3.2.4 provider.

I am trying to setup a LinqPad 6 connection using, "a constructor that accepts a DbContextOptions" since I have a web.config file and not a appsettings.json.

I am currently getting the following error.

DbContext options is in Microsoft.EntityFrameworkCore and not the Pomelo provider so that makes sense. Is there a known resolution to this?

I did find this forum discussion that seems related but I have tried the latest beta version with no success.
https://forum.linqpad.net/discussion/2306/invalidoperationexception-with-efcore-5-connection-that-uses-pomelo-driver-and-dbcontextoptions

Comments

Sign In or Register to comment.