Browse Source

Support netstandard 2.0 and netstandard 2.1 for mysql storage

master
Savorboard 5 years ago
parent
commit
fb0b4e583e
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      src/DotNetCore.CAP.MySql/DotNetCore.CAP.MySql.csproj
  2. +1
    -1
      test/DotNetCore.CAP.MySql.Test/ConnectionUtil.cs
  3. +1
    -1
      test/DotNetCore.CAP.MySql.Test/DatabaseTestHost.cs

+ 1
- 1
src/DotNetCore.CAP.MySql/DotNetCore.CAP.MySql.csproj View File

@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
<AssemblyName>DotNetCore.CAP.MySql</AssemblyName>
<PackageTags>$(PackageTags);MySQL</PackageTags>
</PropertyGroup>


+ 1
- 1
test/DotNetCore.CAP.MySql.Test/ConnectionUtil.cs View File

@@ -38,7 +38,7 @@ namespace DotNetCore.CAP.MySql.Test

public static MySqlConnection CreateConnection(string connectionString = null)
{
connectionString = connectionString ?? GetConnectionString();
connectionString ??= GetConnectionString();
var connection = new MySqlConnection(connectionString);
connection.Open();
return connection;


+ 1
- 1
test/DotNetCore.CAP.MySql.Test/DatabaseTestHost.cs View File

@@ -34,7 +34,7 @@ namespace DotNetCore.CAP.MySql.Test
var storage = GetService<IStorageInitializer>();
var token = new CancellationTokenSource().Token;
CreateDatabase();
storage.InitializeAsync(token);
storage.InitializeAsync(token).GetAwaiter().GetResult();
_sqlObjectInstalled = true;
}
}


Loading…
Cancel
Save