有沒有提供一個連接字符串從app.config文件F#的LINQ到SQL數據提供者的方式。提供連接字符串LINQ到SQL數據提供商
我曾嘗試只是爲了測試以下:
let mutable connString = @"Data Source=PCSQLEXPRESS;Initial Catalog=NortwindDB;Integrated Security=True"
type SqlConnection = SqlDataConnection<ConnectionString = connString>
,但我得到一個錯誤信息:「這不是一個常量表達式或有效的自定義屬性值」
感謝