Reputation: 11
I have a problem accessing data in SQL server through Entity Framework on Azure function. Context:
Please suggest to me, if you have an experience about this.
Thank you for your time.
Upvotes: 1
Views: 444
Reputation: 164
I know this is a old question but answering it for people still trying to use existing EF6 code in Azure Functions Apps
Try using latest Azure Function which is supported in .Net 6.
Upvotes: 0
Reputation: 88852
This is an Azure function project (.NET Core 3.1)
Then just add EF to your main function project through NuGet. You can't mix .NET Framework libraries and .NET Core apps. And creating libraries to use in a Azure Functions project is probably overkill, and definitely adds complexity.
Upvotes: 2