question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not able to execute simple query with EF Core 3.1.12

See original GitHub issue

Hi! I might be doing sth wrong, but spent some time and was not able to find the root cause. Trying to use 3.9.6.0 version of your library on top of EF Core 3.1.12, but with no luck.

Invocation, which seems to be pretty basic, and required to just check that library works

dbContext.SomeDbSet.Take(20).ToLinqToDB().ToArray();

Fails with error

Method 'ExecuteAsyncEnumerable' in type 'LinqToDB.EntityFrameworkCore.Internal.LinqToDBForEFQueryProvider`1' from assembly 'linq2db.EntityFrameworkCore, Version=3.9.6.0, Culture=neutral, PublicKeyToken=e41013125f9e410a' does not have an implementation.

LinqToDBForEFTools.Initialize() is invoked prior to DbContext instance creation.

Will be glad to get help here. And sorry If I somehow missed some crucial part of the documentation.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
MaceWinducommented, Mar 18, 2021

We plan to release it next thursday

1reaction
sdanylivcommented, Mar 10, 2021

Reproduced. Working on fix. Thanks for the reproducing sample.

Read more comments on GitHub >

github_iconTop Results From Across the Web

EF core 3.1 can not run complex raw sql query
Even though I write the query from the root, the wrapper select query is generated with all possible discriminators. So it means I...
Read more >
Efficient Querying - EF Core
Performance guide for efficient querying using Entity Framework Core.
Read more >
Executing Raw SQL Queries using Entity Framework Core
This method is used to execute a raw SQL command that does not return any data. It returns the number of rows affected...
Read more >
Repository Pattern in ASP.NET Core - Ultimate Guide
In this extensive guide, we will go through everything you will need to know about Repository Pattern in ASP.NET Core, Generic Repository Patterns,...
Read more >
Raw queries with Entity Framework Core - MS's Blog
In this blog post, I showcase how to migrate raw SQL query from Entity Framework 6 to EF Core 2.1 and EF Core...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found