fsprojects / fsprojects/FSharp.Data.SqlClient

Add support working with appsettings.json in Asp.Net Core 2.x and above

Open
#370 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
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
  1. Build an asp.net core application

  2. Configure trivial type provider that references the name of the connection string in appsettings.json

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.