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

Many-to-many foreing key column name #71

Closed
BlackPuddingERP opened this issue Jul 20, 2023 · 1 comment
Closed

Many-to-many foreing key column name #71

BlackPuddingERP opened this issue Jul 20, 2023 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@BlackPuddingERP
Copy link

Hi,

I am trying to create an n:n relationship between two tables whose primary keys are named the same, 'Id.' This causes an error when generating the database, obviously because it tries to create the intermediate table with two properties with the same name (although this only happens when the data types of the primary keys of the tables are different, if they are the same, it doesn't give any error and simply generates an intermediate table with a single property). The thing is, I have seen that in the relationship, there are properties called 'End1 Foreign Key Column Name' and 'End1 Foreign Key Column Name,' I understand that these are supposed to allow you to choose how you want to name those properties of the intermediate tables. However, no matter how much I have tried to modify these values, they never seem to apply, and it continues generating it as 'HasForeignKey("Id").' I understand that this is a bug, right?

Thank you

@msawczyn msawczyn added the duplicate This issue or pull request already exists label Jul 20, 2023
@msawczyn
Copy link
Owner

Duplicate #64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants