fsprojects / FSharp.Configuration

The FSharp.Configuration project contains type providers for the configuration of .NET projects.
http://fsprojects.github.io/FSharp.Configuration/
Other
114 stars 63 forks source link

AppSettings cannot be passed as a parameter to functions #63

Open carlpaten opened 9 years ago

carlpaten commented 9 years ago

The current API exposes Settings as a type, with the parameters as static members. It would be nice if it built a data structure instead that could be passed either in its entirety or piecewise.

SoulFireMage commented 8 years ago

This would be very helpful as I tried to use this to pass a connection string to a MySQL typeprovider: it wouldn't accept it as a valid constant or attribute. Despite the type appearing to be a string in the declaration, KVP from stackoverflow clarified this for me.