0

有没有人能够让亚音速对象在 linq pad 中工作,我目前遇到的问题是,当我尝试运行我的代码时,它无法找到连接字符串。

我尝试将连接字符串添加到 linqpad 配置文件,以及从包含连接字符串的项目中复制原始配置文件。

4

1 回答 1

3

I just found the answer to this. You must create a LinqPad.config (NOT Linqpad.exe.config) in the same directory as LinqPad.exe with the proper <connectionStrings> section that SubSonic 3 needs. Restart Linqpad and you should be off to the races.

Don't forget to use F4 on the queries so you can bring in the proper namespaces and reference the SubSonic.Core.dll.

I'm able to get the queries to run, produce results, etc., but the Linqpad 'SQL' output is blank.

thanks, mark

于 2010-10-25T14:14:33.440 回答