Comments (6)
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
from efcorepowertools.
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.
@blahDL Ping?
from efcorepowertools.
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.
Amazing!
from efcorepowertools.
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)
- throw new NotSupportedException("This method can only be called from Entity Framework Core queries"); as the definition of a HOT 1
- Add Generate ER Diagram to Project context menu (support for .dacpac)
- [Feature] Add "Analyze this!" to database projects / MsBuild.SDK.SqlProj context menu
- SQL Server table valued functions disappeared HOT 4
- DRY FunctionScaffolder and ProcedureScaffolder
- Hi Erik, While I'm trying to access the Reverse Engineer ... HOT 4
- Table Valued Parameters in Stored Procedures from a .dacpac HOT 23
- Inappropriate Navigation Property name generated by EF Core reverse engg. HOT 5
- Inappropriate Navigation Property name generated by EF Core reverse engg. HOT 9
- [Question] How to disable generation of readme in EF Core Power Tools CLI ? HOT 3
- Analyse this! from a live database (experimental)
- Sync localized vsct files
- Support for Many-to-many and join table with payload HOT 2
- Latest update fails to load. HOT 17
- Check synapse host name detection
- Unable to reverse engineer because it cannot find data provider HOT 1
- [Feature] Map simple postgress stored procedures
- Add script generation to migrations tool HOT 6
- [Question] Compare DbContext to Database Using CLI HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from efcorepowertools.