iWangJiaxiang / EfCoreMany2ManyBugReproduction

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  1. Watch the join table file

  2. Compare with generated migration file

  3. 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

About


Languages

Language:C# 100.0%