我刚刚使用简单数据插入了我的azure web角色的应用程序洞察。
在Application Insight的异常视图中,我发现对于 UseSharedConnection 和 StopUsingSharedConnection 的每个数据库调用都会发生异常 需要注意的一点是查询正在成功完成。
我可以看到在http://simplefx.org/simpledata/docs/pages/Start/SharingAConnection.html的帮助中,它表示仅在ADO适配器中支持此功能。
我的存储库代码如下所示
我的连接字符串采用以下格式。
Server = tcp:.database.windows.net,1433; Database =; User ID = @; Password =; Trusted_Connection = False; Encrypt = True; Connection Timeout = 30;