Comments (7)
Another option, just to consider, is to default to the one database connection in the config file IF there is one database connection in the file.
from dotnetmigrations.
And of course... I wonder if the same thing could be done with setting a database.
from dotnetmigrations.
This is actually starting to dove tail a little into another feature idea #19 which would enable DNM to discover (and use) connection strings stored in your project's web.config or app.config files.
from dotnetmigrations.
Not sure if I like the idea of DNM looking into another set of configuration files. Part of its beauty at the moment is quite how simple it is to use.
from dotnetmigrations.
It wouldn't take another set of configuration files, what little data it would take would still reside in the existing config file.
I'm only suggesting it as a convention because I've seen it done elsewhere, and I find myself repeating the same arguments over and over and over and over while using DNM.
from dotnetmigrations.
@darren, no I completely agree with you - having a default does make a certain amount of sense. In a multi-developer environment though I would argue that it makes more sense for that to be set outside of the config file - as that would truly be shared between all developers.
Otherwise there would be no point of default then, as each dev would need to specify their own db every time.
from dotnetmigrations.
Hmm... yeah, now that you say that, I see what you're saying. It makes sense perhaps with a setup like Git, where the executable is run locally. Right now, I'm including the DNM db.exe in the source control so other programmers have it and so I can bind it to my rake scripts.
It could be helpful since the other programmers are doing the same thing, but... now I agree. I don't think cutting out a "-c DBVALUE" is worth the extra complexity.
from dotnetmigrations.
Related Issues (20)
- Warn when migration script has changed HOT 2
- Possible Custom Console HOT 2
- Support for other database objects (sprocs, functions) HOT 1
- Update unit tests to use an in-memory Sqlite database instead of SQL Express HOT 1
- Version command should list all scripts not applied to database HOT 1
- DNM library that can be embedded in your application to run migrations
- Seed data should support CSV files
- Change migration script token format
- Discover connection strings in projects' web.config and/or app.config HOT 1
- Migrations don't work past the number 9 when using an incremental integer HOT 7
- Timeouts HOT 1
- Bulkloading binary data
- Update all 3rd party references to NuGet references
- New core "combine" command that will take a range of migrations and produce a single script that can be run separately (for DBAs) HOT 1
- First-class Mono support HOT 1
- SecurityException HOT 1
- Create a Chocolatey package
- Seed Data HOT 1
- Auto generate rollback scripts HOT 3
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 dotnetmigrations.