Questions tagged [fsharp.sqlclient]

2 questions
7
votes
1 answer

How to specify a parameter as collection in Commandtext

I am using SqlCommandProvider and I need to get some data for each id in an id collection let ids=["B058A99-C4B2-4CC3-BA9F-034B1F1ECCBD";"A09C01C-D51B-41C1-B44C-0995DD285088"] [] let qLogo ="""SELECT Id,LogoUrl FROM Hotels WHERE Id IN…
Evren
  • 161
  • 1
  • 7
5
votes
1 answer

Why do I get a missing method exception runtime when creating a SqlClient type?

I have the following code: open FSharp.Data [] let connectionString = @"Data Source=(local)\SQLExpress;Integrated Security=SSPI;Database=SfagStage" type InsertEnhet = SqlCommandProvider<"Sql\InsertEnhet.sql", connectionString> let…