【问题标题】:How can I change database from SQL Server to Oracle with SubSonic?如何使用 SubSonic 将数据库从 SQL Server 更改为 Oracle?
【发布时间】:2009-07-23 16:58:22
【问题描述】:

我使用 SubSonic 2.1.1 编写代码并使用 MSSQL。该项目现在必须使用 Oracle 运行。 我更改了 web.config,但它不起作用。有人可以给我一个仅更改数据库的示例 - 使用亚音速更改 web.config 其余部分不变吗?

MSSQL 中的表名是“Name”,但在 Oracle 中是“NAME”。可以亚音速 为 oracle 生成“名称”代码?

【问题讨论】:

  • web.config 有哪些变化。它是如何“不工作”的?

标签: sql-server oracle subsonic


【解决方案1】:

基于this 问题,您的连接字符串需要如下所示(显然将 xxxxx 替换为您的数据库值):

<connectionStrings> 
  <add name="oracle" connectionString="Data Source=xxxxxxxx;Persist Security Info=True;User ID=xxxxx;Password=xxxxx;" providerName="System.Data.OracleClient"/> 
</connectionStrings> 

回复。你的第二个问题,Oracle 不区分大小写。有关详细信息,请参阅this 问题

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-02-10
    • 1970-01-01
    • 1970-01-01
    • 2023-04-09
    • 1970-01-01
    • 1970-01-01
    • 2016-11-11
    相关资源
    最近更新 更多