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

Tools: Command to get EnsureCreated() SQL script #10378

Closed
bricelam opened this issue Nov 22, 2017 · 2 comments · Fixed by #15429
Closed

Tools: Command to get EnsureCreated() SQL script #10378

bricelam opened this issue Nov 22, 2017 · 2 comments · Fixed by #15429
Assignees
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. good first issue This issue should be relatively straightforward to fix. help wanted This issue involves technologies where we are not experts. Expert help would be appreciated. type-enhancement
Milestone

Comments

@bricelam
Copy link
Contributor

We should expose the DbContext.Database.GenerateCreateScript() method as a command.

Script-DbContext
dotnet ef dbcontext script
@bricelam bricelam self-assigned this Nov 22, 2017
@ajcvickers ajcvickers added this to the Backlog milestone Nov 27, 2017
@bricelam bricelam changed the title Tools: ef dbcontext script Tools: Command to get EnsureCreated() SQL script Apr 26, 2018
@ajcvickers ajcvickers added help wanted This issue involves technologies where we are not experts. Expert help would be appreciated. and removed consider-for-current-release labels May 18, 2018
@bricelam bricelam removed their assignment Oct 12, 2018
@ajcvickers
Copy link
Member

@ErikEJ A little bird indicated you might have written code for this already. Would you consider a PR?

@bricelam bricelam self-assigned this Jan 31, 2019
@ErikEJ
Copy link
Contributor

ErikEJ commented Jan 31, 2019

Yes I will try a PR

ErikEJ added a commit to ErikEJ/EntityFramework that referenced this issue Apr 21, 2019
and PS>Script-DbContext

fixes issue dotnet#10378
bricelam pushed a commit that referenced this issue Apr 22, 2019
and PS>Script-DbContext

fixes issue #10378
@bricelam bricelam added the closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. label Apr 22, 2019
@bricelam bricelam modified the milestones: Backlog, 3.0.0 Apr 22, 2019
@ajcvickers ajcvickers modified the milestones: 3.0.0, 3.0.0-preview5 Apr 22, 2019
@bricelam bricelam added the good first issue This issue should be relatively straightforward to fix. label May 31, 2019
@ajcvickers ajcvickers modified the milestones: 3.0.0-preview5, 3.0.0 Nov 11, 2019
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. good first issue This issue should be relatively straightforward to fix. help wanted This issue involves technologies where we are not experts. Expert help would be appreciated. type-enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants