f# - Passing user name and password parameters to the type provider -


I have created a service provider that requires authentication via user name and password. Something like this:

  Let's tbl = new demotable   

All this works well, only one problem is that I want to display this code, so I want the username and password coming from another source - A configuration file, second F # module (a good approach while using scripting) etc. What are my options for passing these standards so that they appear during the performance?

There is a simple way of liters in a file that you do not show:

  Module MyInfo = [[[lt; literal & gt;] user = "user name is here" [[litrable & gt;] pwd = "password here"   

and then in the file that you show:

  let tbl = new demotable  ()    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -