当前位置:Gxlcms >
数据库问题 >
使用DbProviderFactories.GetFactory方法需要配置数据库提供者
使用DbProviderFactories.GetFactory方法需要配置数据库提供者
时间:2021-07-01 10:21:17
帮助过:65人阅读
<system.data>
<DbProviderFactories>
<add name=
"SqlClient Data Provider" invariant=
"System.Data.SqlClient" description=
".Net Framework Data Provider for SqlServer" type=
"System.Data.SqlClient.SqlClientFactory, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add name=
"MySQL Data Provider" invariant=
"MySql.Data.MySqlClient" description=
".Net Framework Data Provider for MySQL" type=
"MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"/>
<add name=
"OracleClient Data Provider" invariant=
"System.Data.OracleClient" description=
".Net Framework Data Provider for Oracle" type=
"System.Data.OracleClient.OracleClientFactory, System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add name=
"Oracle Data Provider for .NET" invariant=
"Oracle.DataAccess.Client" description=
"Oracle Data Provider for .NET" type=
"Oracle.DataAccess.Client.OracleClientFactory, Oracle.DataAccess, Version=2.112.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342"/>
<remove invariant=
"Oracle.ManagedDataAccess.Client"/>
<add name=
"ODP.NET, Managed Driver" invariant=
"Oracle.ManagedDataAccess.Client" description=
"Oracle Data Provider for .NET, Managed Driver" type=
"Oracle.ManagedDataAccess.Client.OracleClientFactory, Oracle.ManagedDataAccess, Version=4.122.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342"/>
<add name=
"OleDb Data Provider" invariant=
"System.Data.OleDb" description=
".Net Framework Data Provider for OleDb" type=
"System.Data.OleDb.OleDbFactory, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add name=
"SQLite Data Provider" invariant=
"System.Data.SQLite" description=
".Net Framework Data Provider for SQLite" type=
"System.Data.SQLite.SQLiteFactory, System.Data.SQLite, Version=1.0.58.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139"/>
</DbProviderFactories>
</system.data>
使用DbProviderFactories.GetFactory方法需要配置数据库提供者
标签:client name bsp data access nbsp led 方法 .net