将 SQL DSN 与 SubSonic 结合使用

发布于 2024-08-19 15:12:51 字数 66 浏览 2 评论 0原文

我想使用 DSN 创建 SQL 连接。然后我想使用 Subsonic 生成 DAL。请您给我一些指示,告诉我该怎么做?

I want to create a SQL connection using DSN. Then I want to generate the DAL using Subsonic. Please can you give me some pointers on what to do?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

手长情犹 2024-08-26 15:12:51

现在您不需要 DSN(我假设您想要抽象连接) - 您可以通过在连接字符串中指定正确的提供程序来使用 SubSonic 3 来实现这一点。如果要切换提供商,只需更改连接字符串的“providerName”属性即可。

我想知道这是否是为了解决遗留问题,但 DSN 似乎完全由您控制 - 而且我认为有更好的方法。

You don't need a DSN in these days (I assume you want to abstract the connection) - you can do that with SubSonic 3 by specifying the provider right in the connection string. If you want to switch providers, just change the "providerName" attribute of the connectionString.

I'm wondering if this is for legacy issues but a DSN is entirely in your control, it seems - and I think there's a better way.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文