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

Migrations: Use reflection order for columns in CreateTable #10075

Merged
merged 1 commit into from
Oct 24, 2017
Merged

Migrations: Use reflection order for columns in CreateTable #10075

merged 1 commit into from
Oct 24, 2017

Conversation

bricelam
Copy link
Contributor

Fixes #2272

}

foreach (var definingForeignKey in entityType.GetDeclaredReferencingForeignKeys()
.Where(fk => fk.DeclaringEntityType.DefiningEntityType == entityType))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AndriySvyryd is this this right? In Relational, do navigation-defined entity types always map to the principal entity type's table?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, that's just the default.

Copy link
Contributor Author

@bricelam bricelam Oct 19, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

K, will add some more tests and react

@bricelam
Copy link
Contributor Author

bricelam commented Oct 23, 2017

The more code I write, the less confident I become. 😄 I'm doing one last round of bashing before merging this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants