简体   繁体   English

将SQL DSN与SubSonic一起使用

[英]Using SQL DSN With SubSonic

I want to create a SQL connection using DSN. 我想使用DSN创建一个SQL连接。 Then I want to generate the DAL using Subsonic. 然后,我想使用Subsonic生成DAL。 Please can you give me some pointers on what to do? 请您能给我一些指示怎么做吗?

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. 这些天您不需要DSN(我假设您要抽象连接)-您可以通过在连接字符串中指定提供程序来使用SubSonic 3。 If you want to switch providers, just change the "providerName" attribute of the connectionString. 如果要切换提供程序,只需更改connectionString的“ providerName”属性。

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. 我想知道这是否适用于遗留问题,但似乎DSN完全在您的控制之中-我认为有更好的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM