-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The LINQ expression could not be translated #20237
Comments
Sqlite does not support ToString translation to server in 3.1. See #17223 |
Try rewriting |
@smitpatel I have replaced my second Join with
and now it throws the exception
|
@smitpatel, I figured it out why I was getting the exception 'SQLite Error 1: 'no such table: Document'.'
before EnsureCreated. I had to remove any call to ToString() or ToLower() and it worked. So the working query is like this:
|
Duplicate of #17223 |
I have a LINQ query that is executed perfectly when using Microsoft.EntityFrameworkCore.Sqlite 2.2.6 and Microsoft.EntityFrameworkCore 2.2.6. But when upgrading to Microsoft.EntityFrameworkCore 3.1.2 and Microsoft.EntityFrameworkCore.Sqlite 3.1.2 the same LINQ query throws the exception:
Steps to reproduce
I'm attaching a .NET Core 3.1 console app that reproduces the error.
ConsoleApp1.zip
Further technical details
EF Core version: 3.1.2
Database provider: Microsoft.EntityFrameworkCore.Sqlite 3.1.2
Target framework: NET Core 3.1
Operating system: Windows 10 Enterprise
IDE: Visual Studio 2019 16.4.3
The text was updated successfully, but these errors were encountered: