Open aleksvujic opened 8 months ago
You need to add linq2db 5.3.2 dependency explicitly (temporary, till next release)
I've been having the same issue on a new project for the past few days. Didn't put 2 + 2 together to pin it on the version. Adding the dependency worked like a charm.
@MaceWindu Is this a bug or expected behavior? Is this documented somewhere?
it's linq2db 5.3.1 regression, fixed in 5.3.2
We have a .NET 7 web application. We are using Microsoft.EntityFrameworkCore.Relational 7.0.13, Npgsql.EntityFrameworkCore.PostgreSQL 7.0.11 and linq2db.EntityFrameworkCore 7.6.0.
We use database-first approach and scaffold our database tables to C# models. Our scaffolded models look like this:
MyDbContext.cs
Project.cs
We noticed that after the upgrade of linq2db.EntityFrameworkCore 7.5.0 to 7.6.0, the following simple query stopped working:
It throws the following exception:
If I remove
.ToLinqToDB()
call, it works normally.Note: Keep in mind that I tried to make the example as simple as posible. Obviously, the real production query is much more complicated and actually requires linq2db functionality (PostgreSQL LEAD function).