EntityFrameworkCore.Generator icon indicating copy to clipboard operation
EntityFrameworkCore.Generator copied to clipboard

Generate HasPrincipalKey on relationship if necessary

Open DavidBoone opened this issue 9 months ago • 0 comments

Took a crack at fixing https://github.com/loresoft/EntityFrameworkCore.Generator/issues/574 and came up with this.

It resolved the issue I was having with my SQLite test case, but I'm not super familiar with the code-base so I can't be confident it's the right solution in all cases. Please review carefully!

If nothing else I hope it serves as a handy starting point for a more robust implementation.

DavidBoone avatar May 23 '24 21:05 DavidBoone