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

Review how we create/handle indexes in Reverse Engineer #3710

Closed
rowanmiller opened this issue Nov 10, 2015 · 4 comments
Closed

Review how we create/handle indexes in Reverse Engineer #3710

rowanmiller opened this issue Nov 10, 2015 · 4 comments
Assignees
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-unknown
Milestone

Comments

@rowanmiller
Copy link
Contributor

We've had a few issues around indexes, so rather than making isolated decisions without the all-up context we are creating an issue to take a holistic look at what we do.

Can you put together a summary of how we handle indexes and what needs to change. This should include the things discussed in:

@lajones
Copy link
Contributor

lajones commented Nov 24, 2015

Per discussion on 11/24/15 with @rowanmiller and @ajcvickers we need the following:

  1. FKs: If the name of the index matches that which the convention would automatically create then no need to add a separate index fluent API at all. But if the name is different will need to add it and then the runtime will use that index (matching based on FK properties in the correct order).
  2. PKs: may need to define the PK and add ConstraintName() if the name of the underlying index is different from what the convention would assume.
  3. Alternate Keys: we already generate these. Check that we correctly issue fluent API defining the name.

Issue #3642 was addressed by commit 9b8ea39 and PR #3764.
Issue #3664 will be revisited during the work above.

@lajones
Copy link
Contributor

lajones commented Dec 8, 2015

@lajones
Copy link
Contributor

lajones commented Dec 8, 2015

Note: for point 2 above the correct API is HasName().

@lajones
Copy link
Contributor

lajones commented Dec 16, 2015

Fix checked in with commit dbb5c9f.

@lajones lajones closed this as completed Dec 16, 2015
@ajcvickers ajcvickers removed this from the 1.0.0-rc2 milestone Oct 15, 2022
@ajcvickers ajcvickers added the closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. label Oct 15, 2022
@ajcvickers ajcvickers added this to the 1.0.0 milestone Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-unknown
Projects
None yet
Development

No branches or pull requests

3 participants