mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-30 12:47:57 +08:00
Update TDengine
This commit is contained in:
parent
798f760bae
commit
235d8489a5
@ -4,6 +4,7 @@ using System.Data;
|
|||||||
using System.Data.Common;
|
using System.Data.Common;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using SqlSugar.TDengineAdo;
|
using SqlSugar.TDengineAdo;
|
||||||
namespace SqlSugar.TDengine
|
namespace SqlSugar.TDengine
|
||||||
@ -24,6 +25,7 @@ namespace SqlSugar.TDengine
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
var TDengineConnectionString = base.Context.CurrentConnectionConfig.ConnectionString;
|
var TDengineConnectionString = base.Context.CurrentConnectionConfig.ConnectionString;
|
||||||
|
TDengineConnectionString=Regex.Replace(TDengineConnectionString, @"\;db\=", ";Database=", RegexOptions.IgnoreCase);
|
||||||
base._DbConnection = new TDengineConnection(TDengineConnectionString);
|
base._DbConnection = new TDengineConnection(TDengineConnectionString);
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
|
Loading…
Reference in New Issue
Block a user