c# - F#: Connecting to Azure SQL db? -


i want connect azure db , work .fsx file.

the method listed c# is:

sqlconnectionstringbuilder builder = new sqlconnectionstringbuilder();                 builder.datasource = "your_server.database.windows.net";                  builder.userid = "your_user";                             builder.password = "your_password";                      builder.initialcatalog = "your_database";  using (sqlconnection connection = new sqlconnection(builder.connectionstring)) ... 

is there better way in f# or should try extrapolate c# f#? know once string made can use type providers sqlprogrammabilityprovider.

basically looking f# guide on connecting azure sql server similar c# one:

https://docs.microsoft.com/en-us/azure/sql-database/sql-database-connect-query-dotnet-core

microsoft producers lot of c# content doesn't have f# equivalent :(

i use great library database access in f#:

https://fsprojects.github.io/sqlprovider/core/general.html

look @ ms sql section connect ms sql database.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -