PaTHP
PaTHP

Reputation: 335

Azure Function with Entity Framework or Normal Sql query

Could you please help with what is better where Entity Framework or normal Sql query, I personally would like to use Entity Framework with Linq to SQL however I faced certain challenges today like there is no .ToList() or .FirstOrDefault() option available and also there are compatibilty issues using Entity Framework with .net Standard 2.0, so, anyone experienced the same and help what would be better approach.

Upvotes: 1

Views: 284

Answers (1)

Lee Liu
Lee Liu

Reputation: 2091

According to your description, you need to using the namespace of System.Linq

.ToList() or .FirstOrDefault() option is available at .NET CORE 2.0 and these two method are extension methods under System.Linq. So we need to use System.Linq namespace.

We can see below screenshot of my project.

enter image description here

Upvotes: 2

Related Questions