Skip to content

Commit

Permalink
MySqlConnector版本升级到1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ktdynamic committed Jul 13, 2020
1 parent fdfdb6f commit e2dab2e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
5 changes: 3 additions & 2 deletions src/SmartSql.Bulk.MySql/BulkInsert.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using MySql.Data.MySqlClient;
using SmartSql.DbSession;
using SmartSql.DbSession;
using SmartSql.Reflection.TypeConstants;
using System;
using System.Data;
Expand All @@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="MySqlConnector" Version="0.52.0" />
<PackageReference Include="MySqlConnector" Version="1.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
6 changes: 2 additions & 4 deletions src/SmartSql/DataSource/DbProviderManager.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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();"
};

Expand Down

0 comments on commit e2dab2e

Please sign in to comment.