-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
abp ef Required one-to-many with shadow foreign key insert error #20100
Comments
try: public class Teacher : FullAuditedAggregateRoot
} |
The Microsoft website documentation describes this configuration method as |
|
I don't understand what you mean |
Assign a value to the Id |
I know assigning an Id will work but what I want is for the framework to generate the Id for me by default |
Is there an existing issue for this?
Description
abp ef Required one-to-many with shadow foreign key insert error.
If the column below abp is not used, it can be inserted normally.
Error message:
The instance of entity type 'Course' cannot be tracked because another instance with the same key value for {'Id'} is already being tracked. When attaching existing entities, ensure that only one entity instance with a given key value is attached. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the conflicting key values.
Example:
Test:
Reproduction Steps
No response
Expected behavior
No response
Actual behavior
No response
Regression?
No response
Known Workarounds
No response
Version
8.0
User Interface
Common (Default)
Database Provider
EF Core (Default)
Tiered or separate authentication server
Tiered
Operation System
Windows (Default)
Other information
No response
The text was updated successfully, but these errors were encountered: