Arthur Vickers
Arthur Vickers
We discussed this in the team. While there might be something here that could be worthwhile, the danger is resource leaks from a fire-and-forget API. Nevertheless, I'm putting it on...
Just a couple of cents from me. 😆 First, we have had lots of feedback over the years from people who want their keys available before `SaveChanges` is called. Most...
Note for team: this still repros on the latest daily build.
Verified that this is fixed in the latest daily build. Output from EF8: ``` C:\Users\avickers\AppData\Local\Programs\Rider\plugins\dpa\DotFiles\JetBrains.DPA.Runner.exe --handle=22604 --backend-pid=53540 --etw-collect-flags=67108622 --detach-event-name=dpa.detach.22604 D:/code/AllTogetherNow/One/bin/Debug/net8.0/One.exe warn: 7/29/2024 15:27:25.149 CoreEventId.SensitiveDataLoggingEnabledWarning[10400] (Microsoft.EntityFrameworkCore.Infrastructure) Sensitive data logging is enabled....
This issue is lacking enough information for us to be able to fully understand what is happening. Please attach a small, runnable project or post a small, runnable code listing...
@alexandis I don't see any error when running your code. Can you post the full exception and stack trace?
@alexandis You configuration creates a [mapped inheritance hierarchy using TPH mapping](https://learn.microsoft.com/en-us/ef/core/modeling/inheritance): ``` Model: EntityType: ExtendedGood Base: Good EntityType: Good Properties: Id (int) Required PK AfterSave:Throw ValueGenerated.OnAdd Description (string) Discriminator (no...
@alexandis I don't believe there is any way to map those entity types. EF needs to understand the relationship between the types in order to determine what types to create...
Putting on the backlog to consider if we should do any kind of model validation against this.
@bricelam I couldn't find the old-style seeding issue you mentioned in triage.