Please document the change to when EF traverses a graph and TrackGraph. #10947
Labels
area-docs
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
Milestone
This post mentions:
The above is the most wonderful thing ever to happen to EF surely it is worth mentioning here.
Also worthy of mention is TrackGraph.
Given the above changes it is unfortunate that the Add() api was not synchronized to reflect them.
I am two years too late to comment on this but perhaps in some future version of EF core it will be fixed:
Here we are newing up a context, newing up an entity, and adding that specific entity to a specific dbset in the context. Yet our add fails due to a PK conflict that relates to an entity that our dbcontext should know nothing about! I don't want to sound critical but that api is really unintuitive. Having it come up for consideration in the above referenced link and not be changed is very sad.
Even more baffling and ironic is that the syntax that should traverse the graph does not:
Here we are adding the entity to the context versus a specific DBSet/table. In my mind this syntax is much more liberal and gives the context freedom to traverse the graph and add as necessary.
The text was updated successfully, but these errors were encountered: