DEV Community

Discussion on: Using Entity Framework with Azure Functions

Collapse
 
prebenatp profile image
PrebenATP

Hmm. When I use the installed project template: Azure function it adds the SDK
Microsoft.NETCore.App (2.1)

Now following your guide I get this error:
"Package Microsoft.EntityFrameworkCore.SqlServer 3.0.1 is not compatible with netcoreapp2.1 (.NETCoreApp,Version=v2.1) ... supports: netstandard2.1 (.NETStandard,Version=v2.1)"

Same thing if I lower the version number to ...SqlServer 2.2.3

How do you got this to work I have no idea?
Any suggestions would make me happy :-)

Collapse
 
fosskolkata profile image
Dipendu Paul

It's late I know, but somebody coming across this issue : you need to downgrade Microsoft.EntityFrameworkCore.SqlServer version to match that of Microsoft.NETCore.App