Skip to content

Add TPT support to model building, migrations and update pipeline - #20938

Merged
AndriySvyryd merged 1 commit into
masterfrom
Isse2266
May 27, 2020
Merged

AndriySvyryd merged 1 commit into
masterfrom
Isse2266

Conversation

@AndriySvyryd

Copy link
Copy Markdown
Member

Part of #2266

@AndriySvyryd
AndriySvyryd requested a review from a team May 13, 2020 01:10

@smitpatel smitpatel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

20% done 🗡️

@bricelam bricelam left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

(Looked through the Migrations changes)

return true;
}

if (!string.Equals(source.Name, target.Name))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Doesn't this break renaming entity types?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This method is only used for column diffing, so as long as the type is not renamed together with a column everything should work.

@bricelam bricelam May 14, 2020 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

But renaming the type and a column is a scenario we should cover since the PK column (and others) frequently includes the type name

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

You would also need to rename a different column to what the PK column was before to hit this

Comment thread src/Shared/Graph.cs Resolved
Comment thread src/Shared/Multigraph.cs Resolved

@smitpatel smitpatel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

75/95

Comment thread src/EFCore/Metadata/IEntityType.cs Resolved
@AndriySvyryd
AndriySvyryd requested a review from ajcvickers May 14, 2020 04:41
Comment thread src/Shared/Multigraph.cs Resolved
Comment thread src/EFCore/Properties/CoreStrings.resx Resolved
@smitpatel

Copy link
Copy Markdown
Contributor

It would have been better if langword changes happened in a different PR.

@ajcvickers

Copy link
Copy Markdown
Contributor

I feel like somebody attached a "langword" rider to the TPT bill.

@ajcvickers ajcvickers left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approve for the extensive change tracking changes.

Comment thread src/EFCore/DbContextOptions.cs Resolved

@lajones lajones left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good. Added a few minor comments.

@AndriySvyryd

Copy link
Copy Markdown
Member Author

@bricelam Can you take a look at the last commit?

@bricelam bricelam left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants