Code Monkey home page Code Monkey logo

Comments (7)

darrencauthon avatar darrencauthon commented on August 30, 2024

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.

darrencauthon avatar darrencauthon commented on August 30, 2024

And of course... I wonder if the same thing could be done with setting a database.

from dotnetmigrations.

jpoehls avatar jpoehls commented on August 30, 2024

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.

kieranbenton avatar kieranbenton commented on August 30, 2024

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.

darrencauthon avatar darrencauthon commented on August 30, 2024

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.

kieranbenton avatar kieranbenton commented on August 30, 2024

@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.

darrencauthon avatar darrencauthon commented on August 30, 2024

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)

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.