如何使用亚音速2.0?

发布于 2024-08-27 01:13:50 字数 1085 浏览 5 评论 0原文

我尝试使用亚音速 3.0,但我做不到。我决定使用 subsonic.2.0。所以我尝试做到这一点,但我不能:(

我的网络配置:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <section name="SubSonicService"
             type="SubSonic.SubSonicSection, SubSonic" requirePermission="false"/>
  </configSections>
  <connectionStrings>
    <add name="AdventureWorks"
      connectionString="Data Source=.;Database=eticaret;
                          Integrated Security=true; User ID=sa; Password=123456;"/>
  </connectionStrings>
  <SubSonicService defaultProvider="eticaret">
    <providers>
      <clear/>
      <add name="eticaret" type="SubSonic.SqlDataProvider, SubSonic"
        connectionStringName="eticaret"
        generatedNamespace="eticaretDAL"/>
    </providers>
  </SubSonicService>
</configuration>

也看看这篇文章:什么是错误? http://www.codeproject.com/KB/database/SubsonicDAL.aspx

i try to use subsonic 3.0 but i can not do that. i decided to use subsonic.2.0. So i try to make it i can not :(

my Web Config :

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <section name="SubSonicService"
             type="SubSonic.SubSonicSection, SubSonic" requirePermission="false"/>
  </configSections>
  <connectionStrings>
    <add name="AdventureWorks"
      connectionString="Data Source=.;Database=eticaret;
                          Integrated Security=true; User ID=sa; Password=123456;"/>
  </connectionStrings>
  <SubSonicService defaultProvider="eticaret">
    <providers>
      <clear/>
      <add name="eticaret" type="SubSonic.SqlDataProvider, SubSonic"
        connectionStringName="eticaret"
        generatedNamespace="eticaretDAL"/>
    </providers>
  </SubSonicService>
</configuration>

also look this article: what is error? http://www.codeproject.com/KB/database/SubsonicDAL.aspx

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

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

发布评论

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

评论(1

一曲爱恨情仇 2024-09-03 01:13:50

在添加元素的“AdventureWorks”中更改您的连接字符串名称。就像这样:

<SubSonicService defaultProvider="eticaret">
<providers>
  <add name="eticaret" type="SubSonic.SqlDataProvider, SubSonic"
    connectionStringName="AdventureWorks"

Change your connectionStringName in "AdventureWorks" in the add element. Like so:

<SubSonicService defaultProvider="eticaret">
<providers>
  <add name="eticaret" type="SubSonic.SqlDataProvider, SubSonic"
    connectionStringName="AdventureWorks"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文