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

[release/6.0-preview7] Add Migration Bundles #25256

Merged
merged 1 commit into from
Jul 15, 2021
Merged

Conversation

bricelam
Copy link
Contributor

This commit serves as a starting point for the Migrations Bundles feature. Getting it in now will enable users to start validating it in the next preview.

More refinement and automated testing to come...

Part of #19693

@bricelam bricelam requested a review from a team July 13, 2021 18:59
@bricelam bricelam requested a review from a team July 14, 2021 00:49
}
finally
{
Directory.Delete(directory, recursive: true);
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

@bricelam bricelam Jul 14, 2021

Choose a reason for hiding this comment

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

Hmm... They all seem extremely unlikely give that we just created the directory. Worst case scenario, you get an error from the command and Disk Cleanup eventually removes it for you. Even if it errors here, you probably still got a valid bundle.

Personally, I like to handle extremely unlikely errors reactively based on feedback. This often helps me see the bigger picture so I can find the most ideal solution.

/// </summary>
public virtual string TransformText()
{
this.Write("using System.Reflection;\r\nusing Microsoft.EntityFrameworkCore.Design;\r\n\r\nreturn M" +
Copy link
Contributor

Choose a reason for hiding this comment

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

Pretty odd place for line break :trollface:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

lol, pay no attention to the code behind the .tt curtain...

@bricelam
Copy link
Contributor Author

@smitpatel Do you intend to give approval or should somebody else from @dotnet/efteam review?

@smitpatel
Copy link
Contributor

I had couple of questions about how t4 working and thought of asking tomorrow during work- hours. Just realized this is for preview7 so you can merge. My questions wouldn't change anything likely.

This commit serves as a starting point for the Migrations Bundles feature. Getting it in now will enable users to start validating it in the next preview.

More refinement and automated testing to come...

Part of dotnet#19693
@bricelam bricelam merged commit 7d7eb16 into dotnet:main Jul 15, 2021
@bricelam bricelam deleted the bundle branch July 15, 2021 18:08
@ajcvickers
Copy link
Contributor

Yay!

@bricelam
Copy link
Contributor Author

lol, and I'm already finding bugs...

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.

4 participants