Default schema has no effect on views in EF Core 5.0 #23274
Labels
area-model-building
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
regression
Servicing-approved
type-bug
Milestone
Default schema specified using
modelBuilder.HasDefaultSchema('schema')
has no effect on views defined usingToView('view name')
in EF Core 5.0.Actual behavior:
The query
ctx.DemoView
from the repro below generates:SELECT [d].[Id] FROM [DemoView] AS [d]
Expected behavior:
The query
ctx.DemoView
from the repro below generates:SELECT [d].[Id] FROM [demo].[DemoView] AS [d]
Repro
csproj file
Program.cs
The text was updated successfully, but these errors were encountered: