-
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
Table alias regression on ExecuteUpdate on SQL Server #33937
Labels
area-query
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
Milestone
Comments
Even more minimal reprousing var context = new AppDbContext();
await context.Database.EnsureDeletedAsync();
await context.Database.EnsureCreatedAsync();
await context.Schools
.SelectMany(e => e.OpeningHours)
.ExecuteUpdateAsync(s => s.SetProperty(o => o.Foo, 8));
public class AppDbContext : DbContext
{
public DbSet<School> Schools => Set<School>();
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
=> optionsBuilder
.UseSqlServer("Server=localhost;Database=test3;User=SA;Password=Abcd5678;Connect Timeout=60;ConnectRetryCount=0;Encrypt=false")
.LogTo(Console.WriteLine, LogLevel.Information)
.EnableSensitiveDataLogging();
}
public class School
{
public int Id { get; set; }
public List<OpeningHours> OpeningHours { get; } = new();
}
[Owned]
public class OpeningHours
{
public int Foo { get; set; }
} |
roji
added a commit
to roji/efcore
that referenced
this issue
Jun 10, 2024
roji
added a commit
that referenced
this issue
Jun 11, 2024
Removing regression label as this was only a regression within the 9.0 previews (never released). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area-query
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
This worked on 8.0 on SQL Server, but fails on the current daily build of 9. (Note that it always failed on SQLite and with JSON on SQL Server.)
Repro
The text was updated successfully, but these errors were encountered: