Closed tinquen12 closed 2 years ago
@tinquen12 See the example in https://github.com/dotnet/EntityFramework.Docs/issues/2879. We will also be adding this to the docs.
Hello thank you very much for the answer.
Is there any chance we can seed m2m data in a specific file containing only the HasData ?
@tinquen12 You should be able to factor the code into as many files as you want.
Hello,
I'm trying to seed data in efcore5 using auto many to many relation between Group and PolicyTarget (see below the model)
Here is my models👍:
And here is my seeding method :
I receive the following error :
What am I missing ?
Thank you very much 😄