GithubHelp home page GithubHelp logo

Comments (6)

blahDL avatar blahDL commented on June 16, 2024 1

I was able to get the migration tool opening up now without throwing the exception by implementing IDesignTimeDbContextFactory for all of the database contexts from the documentation available at https://learn.microsoft.com/en-us/ef/core/cli/dbcontext-creation?tabs=dotnet-core-cli#from-a-design-time-factory

image

from efcorepowertools.

ErikEJ avatar ErikEJ commented on June 16, 2024

Regarding the missing connection string - look at the advise here: https://learn.microsoft.com/en-us/ef/core/cli/dbcontext-creation?tabs=dotnet-core-cli (I think you would encounter the exact same issues with the standard CLI tools=

dotnet ef migrations add --context=[DatabaseContext] [MigrationName]

  • does the tool not do that for you already?

dotnet ef migrations script --context=[DatabaseContext] --idempotent --output script.sql

  • Please create a seperate issue for this, seems like a good idea.

from efcorepowertools.

ErikEJ avatar ErikEJ commented on June 16, 2024

@blahDL Ping?

from efcorepowertools.

blahDL avatar blahDL commented on June 16, 2024

Weird, I didn't get a notification email from the response or the ping :-|

We always generate the SQL files and run them against our databases, I don't think we have ever tried to run the migrations against a database via the CLI. We have a build step to generate the SQL and commit it to the repository to make it easier for everyone. I'll see what I can get working using that documentation though.

does the tool not do that for you already?

The connection string exception currently prevents me from getting to this functionality :-(

Please create a seperate issue for this, seems like a good idea.

Will do

from efcorepowertools.

ErikEJ avatar ErikEJ commented on June 16, 2024

Amazing!

from efcorepowertools.

ErikEJ avatar ErikEJ commented on June 16, 2024

If you like my free tools, I would be very grateful for a rating or review on Visual Studio Marketplace or even a one-time or monthly sponsorship

from efcorepowertools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.