You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this issue is related to EF Core, or just Npgsql...
When defining a keyless entity type for use by raw SQL queries, the designer generates a ModelSnapshot that defines a table for this entity, despite the fact that I don't specify a table through ModelBuilder API, or through Attribute decorations. I don't see any obvious EntityTypeBuilder calls I can make to specify that no table should be generated, and I can't call .ToQuery() because the query that backs this entity needs to be raw. It includes a lot of function calls that EF doesn't translate.
Here is a minimal codebase that reproduces the issue, with the important bits shown below.
Hi @JakenVeina. I was looking through this repository for the same reason as you, tables were being made for my Query types when I didn't want them to be.
Not sure if this issue is related to EF Core, or just Npgsql...
When defining a keyless entity type for use by raw SQL queries, the designer generates a
ModelSnapshot
that defines a table for this entity, despite the fact that I don't specify a table throughModelBuilder
API, or through Attribute decorations. I don't see any obviousEntityTypeBuilder
calls I can make to specify that no table should be generated, and I can't call.ToQuery()
because the query that backs this entity needs to be raw. It includes a lot of function calls that EF doesn't translate.Here is a minimal codebase that reproduces the issue, with the important bits shown below.
A sample entity definition...
The generated
ModelSnapshot
...EF Core version: v3.1.1
Database provider: Npgsql.EntityFrameworkCore.PostgreSQL v3.1.1.2
Target framework: .NET Core 3.1
Operating system: Windows 8.1 Pro x64
IDE: Visual Studio 2019 v16.4.5
The text was updated successfully, but these errors were encountered: