-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Equivalent to ObjectContext.CreateDatabaseScript #2943
Comments
Note to implementer: Common logic should be shared with |
I will try to get this added to EF Core Power Tools ErikEJ/SqlCeToolbox#521 |
@ErikEJ, we'd also accept a PR here too. It feels like a generally useful thing to have in Relational. |
@bricelam Considering a PR for this - you wrote:
What "common logic" are you referring to? Or is that comment obsolete? |
I imagine the extension method on |
@bricelam Thanks, all I can see in Migrator is this private, unused (?) method: |
I suppose I was thinking the GenerateScript method, but it doesn't look like much can be reused there. |
Add GenerateCreateScript extension method on DatabaseFacade fixes #2943
This is one of my favorite features of the EF Power Tools, and I think we should have similar functionality in EF Core.
My proposal is an
db.Database.GenerateCreateScript()
extension method. Here's the implementation. 😉The text was updated successfully, but these errors were encountered: