Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reverse engineer many to many navigations with EF Core 6 #501

Closed
ErikEJ opened this issue Sep 12, 2020 · 7 comments
Closed

Reverse engineer many to many navigations with EF Core 6 #501

ErikEJ opened this issue Sep 12, 2020 · 7 comments
Labels
enhancement New feature or request reveng

Comments

@ErikEJ
Copy link
Owner

ErikEJ commented Sep 12, 2020

see dotnet/efcore#22475

@REMjn832
Copy link

May I ask a question? I am getting ready to reverse engineer a slightly complex SQLServer database that has about a dozen join-tables for many-to-many relationships. Will 'EFCPT-ReverseEngineer' know how to reverse these into the proper navigational properties on their respective entities? Also, is there a naming convention I need to follow for the join-tables themselves? I think right now, they are named using the convention of "TableOnLeftSide_TableOnRightSide".
Thanks very much!
-josh

@ErikEJ
Copy link
Owner Author

ErikEJ commented May 20, 2021

@REMjn832 This feature is not implemented yet. Currently entities for your join tables will also be generated.

@REMjn832
Copy link

Thanks for the quick response @ErikEJ. Ok, I will set those up manually.
-josh

@ErikEJ
Copy link
Owner Author

ErikEJ commented May 20, 2021

You can do it in a partial class based on the generated DbContext

@ErikEJ ErikEJ changed the title Reverse engineer many to many navigations with EF Core 5 Reverse engineer many to many navigations with EF Core 6 Jul 17, 2021
@ErikEJ ErikEJ closed this as completed Aug 13, 2021
@ErikEJ ErikEJ reopened this Aug 13, 2021
@ErikEJ
Copy link
Owner Author

ErikEJ commented Aug 20, 2021

This will happen for EF Core 6 RC1

@ErikEJ ErikEJ closed this as completed in 3c16d9f Sep 17, 2021
@ErikEJ ErikEJ reopened this Sep 17, 2021
@ErikEJ
Copy link
Owner Author

ErikEJ commented Sep 17, 2021

Correction: RC 2, actually (RC 1 was buggy)

@ErikEJ
Copy link
Owner Author

ErikEJ commented Sep 18, 2021

Fixed using daily builds.

@ErikEJ ErikEJ closed this as completed Sep 18, 2021
ErikEJ added a commit that referenced this issue Sep 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request reveng
Projects
None yet
Development

No branches or pull requests

2 participants