Skip to content

Commit

Permalink
- 优化 DM/KDB/ST 默认使用 ado.net 连接池;
Browse files Browse the repository at this point in the history
  • Loading branch information
2881099 committed Aug 19, 2024
1 parent d889582 commit 0c7d438
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions FreeSql/FreeSqlBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -312,16 +312,19 @@ public IFreeSql<TMark> Build<TMark>()
break;

case DataType.Dameng:
if (_isAdoConnectionPool == null) _isAdoConnectionPool = true;
type = Type.GetType("FreeSql.Dameng.DamengProvider`1,FreeSql.Provider.Dameng")?.MakeGenericType(typeof(TMark));
if (type == null) throwNotFind("FreeSql.Provider.Dameng.dll", "FreeSql.Dameng.DamengProvider<>");
break;

case DataType.ShenTong:
if (_isAdoConnectionPool == null) _isAdoConnectionPool = true;
type = Type.GetType("FreeSql.ShenTong.ShenTongProvider`1,FreeSql.Provider.ShenTong")?.MakeGenericType(typeof(TMark));
if (type == null) throwNotFind("FreeSql.Provider.ShenTong.dll", "FreeSql.ShenTong.ShenTongProvider<>");
break;

case DataType.KingbaseES:
if (_isAdoConnectionPool == null) _isAdoConnectionPool = true;
type = Type.GetType("FreeSql.KingbaseES.KingbaseESProvider`1,FreeSql.Provider.KingbaseES")?.MakeGenericType(typeof(TMark));
if (type == null) throwNotFind("FreeSql.Provider.KingbaseES.dll", "FreeSql.KingbaseES.KingbaseESProvider<>");
break;
Expand Down

0 comments on commit 0c7d438

Please sign in to comment.