Ef Core Many To Many Bug Reproduction
This repo is to reproduce the issue that EF Core's generated migration file would have unexpected field in the m2m join table when the join-table property is inside abstract class.
Instruction
-
Watch the join table file
-
Compare with generated migration file
-
You will find out an additional expected field
BookBId
was generated, which will cause migration failure (errno: 150 "Foreign key constraint is incorrectly formed"
) when modify the join table