Giter Club home page Giter Club logo

Comments (7)

MaceWindu avatar MaceWindu commented on June 10, 2024

There is no built-in support for json-based configuration, only app.config connectionStrings supported out-of-box. Not sure if it will work with .net core

from linq2db.linqpad.

MaceWindu avatar MaceWindu commented on June 10, 2024

Probably we need to redesign this configuration screen for linqpad6 (or even v5 too)

from linq2db.linqpad.

RoyChase avatar RoyChase commented on June 10, 2024

app.config doesn't work either.

Is it a big job to add functionality to load connection strings settings? I'm happy to have a go if it is likely to be possible?

from linq2db.linqpad.

MaceWindu avatar MaceWindu commented on June 10, 2024

Issue is that compared to app.config's configuration/connectionStrings being a standard mechanism for connection configuration, there is no standard declarative replacement for .net core, so it is not clear what should be implemented.

I think as quick fix we should add connection string field to configuration dialog. Should be an easy task:

  • add ui field
  • Add configuration using field value to DataConnection in code

from linq2db.linqpad.

MaceWindu avatar MaceWindu commented on June 10, 2024

PRobably we should add support for json configuration schema from here https://docs.microsoft.com/en-us/ef/core/miscellaneous/connection-strings#aspnet-core

but this is task for linq2db (still could be done in linqpad as quick fix)

from linq2db.linqpad.

RoyChase avatar RoyChase commented on June 10, 2024

If we add a connection string to the configuration dialog then we will also need to specify the provider somehow and, in my case, the name. It might be easier to actually load a config file to do this if there is a suitable hook from LinqPad.

I'll have play over the next few days.

from linq2db.linqpad.

MaceWindu avatar MaceWindu commented on June 10, 2024

@RoyChase , I've added support for json, but as you said - now to detect provider, connection string name should be in form, recognized by <DB>Tools.ProviderDetector() method

from linq2db.linqpad.

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.