jonathanm
Explore posts from servers❔ Can't seed one-to-many relation efcore
Oh yeah sorry, forgot to share:
The seed entity for entity type 'Post' cannot be added because it has the navigation 'User' set. To seed relationships, add the entity seed to 'Post' and specify the foreign key values {'UserId'}. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the involved property values.
28 replies