From e2dab2e870870f0ebf7cf5e9f9199a8e3f0b0633 Mon Sep 17 00:00:00 2001
From: "wandone\\xlw" <123456>
Date: Mon, 13 Jul 2020 16:57:33 +0800
Subject: [PATCH] =?UTF-8?q?MySqlConnector=E7=89=88=E6=9C=AC=E5=8D=87?=
=?UTF-8?q?=E7=BA=A7=E5=88=B01.0.0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/SmartSql.Bulk.MySql/BulkInsert.cs | 5 +++--
.../SmartSql.Bulk.MySqlConnector.csproj | 2 +-
src/SmartSql/DataSource/DbProviderManager.cs | 6 ++----
3 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/src/SmartSql.Bulk.MySql/BulkInsert.cs b/src/SmartSql.Bulk.MySql/BulkInsert.cs
index 1e1a817d..9999fee0 100644
--- a/src/SmartSql.Bulk.MySql/BulkInsert.cs
+++ b/src/SmartSql.Bulk.MySql/BulkInsert.cs
@@ -1,5 +1,4 @@
-using MySql.Data.MySqlClient;
-using SmartSql.DbSession;
+using SmartSql.DbSession;
using SmartSql.Reflection.TypeConstants;
using System;
using System.Data;
@@ -9,8 +8,10 @@
using System.Threading.Tasks;
#if MySqlConnector
+using MySqlConnector;
namespace SmartSql.Bulk.MySqlConnector
#else
+using MySql.Data.MySqlClient;
namespace SmartSql.Bulk.MySql
#endif
{
diff --git a/src/SmartSql.Bulk.MySqlConnector/SmartSql.Bulk.MySqlConnector.csproj b/src/SmartSql.Bulk.MySqlConnector/SmartSql.Bulk.MySqlConnector.csproj
index 95dd7c2f..66c019f8 100644
--- a/src/SmartSql.Bulk.MySqlConnector/SmartSql.Bulk.MySqlConnector.csproj
+++ b/src/SmartSql.Bulk.MySqlConnector/SmartSql.Bulk.MySqlConnector.csproj
@@ -13,7 +13,7 @@
-
+
diff --git a/src/SmartSql/DataSource/DbProviderManager.cs b/src/SmartSql/DataSource/DbProviderManager.cs
index 9973796e..8f62d3c8 100644
--- a/src/SmartSql/DataSource/DbProviderManager.cs
+++ b/src/SmartSql/DataSource/DbProviderManager.cs
@@ -1,8 +1,6 @@
-using SmartSql.Exceptions;
-using System;
+using System;
using System.Collections.Generic;
using System.Data.Common;
-using System.Reflection;
using SmartSql.Reflection;
namespace SmartSql.DataSource
@@ -39,7 +37,7 @@ public class DbProviderManager
{
Name = DbProvider.MYSQL_CONNECTOR,
ParameterPrefix = "?",
- Type = "MySql.Data.MySqlClient.MySqlClientFactory,MySqlConnector",
+ Type = "MySqlConnector.MySqlConnectorFactory,MySqlConnector",
SelectAutoIncrement = ";Select Last_Insert_Id();"
};