Comments (7)
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.
Probably we need to redesign this configuration screen for linqpad6 (or even v5 too)
from linq2db.linqpad.
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.
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.
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.
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.
@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)
- Support for Azure Cosmos DB HOT 1
- table names that are reserved words in c# are not @escaped
- NRE in OracleSchema provider HOT 17
- MS Access HOT 2
- Another issue with oracle HOT 1
- What format does the connection string use? HOT 2
- Migrate to new scaffold framework for model generation from old T4-based code
- Add ClickHouse support
- Error when reading Guid from Sql Azure. HOT 2
- Adding MySQL broken HOT 5
- Add non-persistent connection string option and LinqPad password manager support
- No control over table name capitalization. HOT 1
- SQL vs C# Language differences in table and query names
- Using SQL syntax when opening an SQLite DB HOT 2
- Can't close connection HOT 2
- Schema Build Error: System.InvalidOperationException: IsResultDynamic set for function public.dblink HOT 1
- Upgrade linq2db.LINQPad support LINQPad 8 HOT 5
- Upgrade dependency Azure.Identity package HOT 2
- Unhandled error in method 'PreprocessObjectToWrite' for LINQPad8 HOT 4
- Request - Support for InterBase? HOT 1
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 linq2db.linqpad.