fsprojects / fsprojects/FSharp.Data.SqlClient
Add support working with appsettings.json in Asp.Net Core 2.x and above
Nobody has claimed this yet.
- Dominant language
- F#
- Stars
- 206
- Forks
- 66
- PR merge metrics
- No merged PRs in 30d
Description
Description
In core there has been a shift away from web.config files and to using appsettings.json to hold configuration settings. It would be ideal if these configuration files could be used with type providers.
Repro steps
-
Build an asp.net core application
-
Configure trivial type provider that references the name of the connection string in appsettings.json
-
Build applicaiton
Expected behavior
The expected behavior is for the type provider to be able to locate the connection string in the config file.
Actual behavior
The connection string cannot be found and the application will not build.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how the type provider currently locates connection strings for web.config, then compare that path with an ASP.NET Core appsettings.json configuration. Done means a trivial ASP.NET Core 2.x or newer type-provider build can resolve the named connection string from appsettings.json.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- fsharp, sql
- Domain
- database
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100