Explorar el Código

databaseconfig dbfactory

长阳分支推送专用
duguoqing hace 2 años
padre
commit
561140fc05
Se han modificado 2 ficheros con 4 adiciones y 1 borrados
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/database.config
  2. +3
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Db/Learun.DataBase.Repository/DbFactory.cs

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/database.config Ver fichero

@@ -4,5 +4,5 @@
<add name="CollegeMIS" connectionString="Server=123.57.209.16;Initial Catalog=CollegeMIS_长阳;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" />
<add name="hangfireString" connectionString="Server=123.57.209.16;Initial Catalog=Hangfire;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" />
<add name="paikeDbString" connectionString="Data Source=139.196.217.128;Database=cypaike;User ID=root;Password=123456;" providerName="MySql.Data.MySqlClient" />
<add name="changyang" connectionString="Data Source=orcl;Persist Security Info=True;User ID=changyang;Password=changyang;Unicode=True;" providerName="System.Data.OracleClient" />
<add name="changyang" connectionString="Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.86)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCL)));User ID=changyang;Password=changyang;" providerName="Oracle.ManagedDataAccess.Client" />
</connectionStrings>

+ 3
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Db/Learun.DataBase.Repository/DbFactory.cs Ver fichero

@@ -82,6 +82,9 @@ namespace Learun.DataBase.Repository
case "Oracle.ManagedDataAccess.Client":
dbType = DatabaseType.Oracle;
break;
case "System.Data.OracleClient":
dbType = DatabaseType.Oracle;
break;
default:
dbType = DatabaseType.SqlServer;
break;


Cargando…
Cancelar
Guardar