Skip to content

Commit

Permalink
Update dependencies and remove hack (#833)
Browse files Browse the repository at this point in the history
* Update DateDiff test baselines to 3.0.

* Improve local debugging support for MySqlConnector.

* Update dependencies to .NET Core 3.0 and MySqlConnector 0.59.0.

* Update project files.

* Remove MySqlConverterCommandBuilderFactory.
It was used to support specific conversions at the DataReader level, that were not yet available before MySqlConnector 0.59.0.
  • Loading branch information
lauxjpn authored Sep 26, 2019
1 parent ed38395 commit c358756
Show file tree
Hide file tree
Showing 10 changed files with 101 additions and 403 deletions.
33 changes: 16 additions & 17 deletions build/dependencies.props
Original file line number Diff line number Diff line change
@@ -1,38 +1,37 @@

<Project>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
<PropertyGroup Label="Package Versions">
<!-- EFCore.MySql Dependencies -->
<MicrosoftEntityFrameworkCoreRelationalVersion>3.0.0-rc1.19452.2</MicrosoftEntityFrameworkCoreRelationalVersion>
<MySqlConnectorVersion>0.57.0-rc1</MySqlConnectorVersion>
<MicrosoftEntityFrameworkCoreRelationalVersion>3.0.0</MicrosoftEntityFrameworkCoreRelationalVersion>
<MySqlConnectorVersion>0.59.0</MySqlConnectorVersion>
<PomeloJsonObjectVersion>2.2.0</PomeloJsonObjectVersion>
<CastleCoreVersion>4.4.0</CastleCoreVersion>
<MicrosoftExtensionsCachingMemoryVersion>3.0.0-preview9.19423.4</MicrosoftExtensionsCachingMemoryVersion>
<MicrosoftExtensionsDependencyInjection>3.0.0-preview9.19423.4</MicrosoftExtensionsDependencyInjection>
<SystemDiagnosticsDiagnosticSource>4.6.0-preview9.19421.4</SystemDiagnosticsDiagnosticSource>
<MicrosoftExtensionsCachingMemoryVersion>3.0.0</MicrosoftExtensionsCachingMemoryVersion>
<MicrosoftExtensionsDependencyInjection>3.0.0</MicrosoftExtensionsDependencyInjection>
<SystemDiagnosticsDiagnosticSource>4.6.0</SystemDiagnosticsDiagnosticSource>
<!-- Shared Test Dependencies -->
<MicrosoftNETTestSdkPackageVersion>16.3.0-preview-20190808-03</MicrosoftNETTestSdkPackageVersion>
<MicrosoftNETTestSdkPackageVersion>16.3.0</MicrosoftNETTestSdkPackageVersion>
<XunitAssertPackageVersion>2.4.1</XunitAssertPackageVersion>
<XunitCorePackageVersion>2.4.1</XunitCorePackageVersion>
<XunitRunnerVisualStudioPackageVersion>2.4.1</XunitRunnerVisualStudioPackageVersion>
<XunitRunnerConsolePackageVersion>2.4.1</XunitRunnerConsolePackageVersion>
<XunitXmlTestLoggerPackageVersion>2.1.26</XunitXmlTestLoggerPackageVersion>
<MicrosoftEntityFrameworkCoreRelationalSpecificationTestsVersion>3.0.0-rc1.19452.2</MicrosoftEntityFrameworkCoreRelationalSpecificationTestsVersion>
<MicrosoftEntityFrameworkCoreRelationalSpecificationTestsVersion>3.0.0</MicrosoftEntityFrameworkCoreRelationalSpecificationTestsVersion>
<!-- EFCoreMySqlFunctionalTests Dependencies -->
<MicrosoftExtensionsConfigurationEnvironmentVariablesVersion>2.2.4</MicrosoftExtensionsConfigurationEnvironmentVariablesVersion>
<MicrosoftExtensionsConfigurationFileExtensionsVersion>2.2.0</MicrosoftExtensionsConfigurationFileExtensionsVersion>
<MicrosoftExtensionsConfigurationJsonVersion>2.2.0</MicrosoftExtensionsConfigurationJsonVersion>
<MicrosoftExtensionsConfigurationEnvironmentVariablesVersion>3.0.0</MicrosoftExtensionsConfigurationEnvironmentVariablesVersion>
<MicrosoftExtensionsConfigurationFileExtensionsVersion>3.0.0</MicrosoftExtensionsConfigurationFileExtensionsVersion>
<MicrosoftExtensionsConfigurationJsonVersion>3.0.0</MicrosoftExtensionsConfigurationJsonVersion>
<!-- EFCoreMySqlIntegrationTests Dependencies -->
<MicrosoftAspNetCoreIdentityEntityFrameworkCoreVersion>3.0.0-rc1.19452.3</MicrosoftAspNetCoreIdentityEntityFrameworkCoreVersion>
<MicrosoftAspNetCoreMvcNewtonsoftJsonVersion>3.0.0-rc1.19452.3</MicrosoftAspNetCoreMvcNewtonsoftJsonVersion>
<MicrosoftAspNetCoreIdentityEntityFrameworkCoreVersion>3.0.0</MicrosoftAspNetCoreIdentityEntityFrameworkCoreVersion>
<MicrosoftAspNetCoreMvcNewtonsoftJsonVersion>3.0.0</MicrosoftAspNetCoreMvcNewtonsoftJsonVersion>
<!-- EFCoreMySqlTests Dependencies -->
<MicrosoftEntityFrameworkCoreDesignVersion>3.0.0-rc1.19452.2</MicrosoftEntityFrameworkCoreDesignVersion>
<MicrosoftCodeAnalysisCSharpPackageVersion>9.9.0-beta3-19305-01</MicrosoftCodeAnalysisCSharpPackageVersion>
<MicrosoftExtensionsDependencyModelPackageVersion>3.0.0-rc1-19430-09</MicrosoftExtensionsDependencyModelPackageVersion>
<MicrosoftEntityFrameworkCoreDesignVersion>3.0.0</MicrosoftEntityFrameworkCoreDesignVersion>
<MicrosoftCodeAnalysisCSharpPackageVersion>3.3.1</MicrosoftCodeAnalysisCSharpPackageVersion>
<MicrosoftExtensionsDependencyModelPackageVersion>3.0.0</MicrosoftExtensionsDependencyModelPackageVersion>
<MoqVersion>4.13.0</MoqVersion>
<NewtonsoftJsonPackageVersion>12.0.3-beta1</NewtonsoftJsonPackageVersion>
<NewtonsoftJsonPackageVersion>12.0.2</NewtonsoftJsonPackageVersion>
</PropertyGroup>
<Import Project="$(DotNetPackageVersionPropsPath)" Condition=" '$(DotNetPackageVersionPropsPath)' != '' " />
</Project>
9 changes: 5 additions & 4 deletions development.props.sample
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<Project>
<PropertyGroup>
<!--
Specify the absolute path to the EntityFrameworkCore base directory,
to compile against that version for better development and local
debugging support.
Specify the absolute path to the EntityFrameworkCore and MySqlConnector
base directories, to compile against that version for better development
and local debugging support.

Rename this file "development.props".

The EFCore assemblies are being compiled with an AssemblyVersion of
"42.42.42.424242" by default. To not get any compilation errors
"42.42.42.42" by default. To not get any compilation errors
for the EFCore.MySql.IntegrationTests project, which uses
Microsoft.AspNetCore.Identity.EntityFrameworkCore, which references
it's own version of EFCore, you have to make sure, that your local
Expand All @@ -22,5 +22,6 @@
dotnet build "/p:AssemblyVersion=3.0.0.0"
-->
<LocalEFCoreRepository>C:\Repositories\EntityFrameworkCore</LocalEFCoreRepository>
<LocalMySqlConnectorRepository>C:\Repositories\MySqlConnector</LocalMySqlConnectorRepository>
</PropertyGroup>
</Project>
23 changes: 16 additions & 7 deletions src/EFCore.MySql/EFCore.MySql.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="MySqlConnector" Version="$(MySqlConnectorVersion)" />
<PackageReference Include="Pomelo.JsonObject" Version="$(PomeloJsonObjectVersion)" />
<PackageReference Include="Castle.Core" Version="$(CastleCoreVersion)" />
</ItemGroup>
Expand All @@ -23,21 +22,31 @@
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="$(MicrosoftEntityFrameworkCoreRelationalVersion)" />
</ItemGroup>

<ItemGroup Condition="'$(LocalMySqlConnectorRepository)' == ''">
<PackageReference Include="MySqlConnector" Version="$(MySqlConnectorVersion)" />
</ItemGroup>

<ItemGroup Condition="'$(LocalEFCoreRepository)' != ''">
<Reference Include="Microsoft.EntityFrameworkCore">
<HintPath>$(LocalEFCoreRepository)\artifacts\bin\EFCore.Relational\Debug\netstandard2.1\Microsoft.EntityFrameworkCore.dll</HintPath>
<HintPath>$(LocalEFCoreRepository)\artifacts\bin\EFCore.Relational\Debug\$(TargetFramework)\Microsoft.EntityFrameworkCore.dll</HintPath>
</Reference>
<Reference Include="Microsoft.EntityFrameworkCore.Abstractions">
<HintPath>$(LocalEFCoreRepository)\artifacts\bin\EFCore.Relational\Debug\netstandard2.1\Microsoft.EntityFrameworkCore.Abstractions.dll</HintPath>
<HintPath>$(LocalEFCoreRepository)\artifacts\bin\EFCore.Relational\Debug\$(TargetFramework)\Microsoft.EntityFrameworkCore.Abstractions.dll</HintPath>
</Reference>
<Reference Include="Microsoft.EntityFrameworkCore.Analyzers">
<HintPath>$(LocalEFCoreRepository)\artifacts\bin\EFCore.Relational\Debug\netstandard2.1\Microsoft.EntityFrameworkCore.Analyzers.dll</HintPath>
<HintPath>$(LocalEFCoreRepository)\artifacts\bin\EFCore.Relational\Debug\$(TargetFramework)\Microsoft.EntityFrameworkCore.Analyzers.dll</HintPath>
</Reference>
<Reference Include="Microsoft.EntityFrameworkCore.Relational">
<HintPath>$(LocalEFCoreRepository)\artifacts\bin\EFCore.Relational\Debug\netstandard2.1\Microsoft.EntityFrameworkCore.Relational.dll</HintPath>
<HintPath>$(LocalEFCoreRepository)\artifacts\bin\EFCore.Relational\Debug\$(TargetFramework)\Microsoft.EntityFrameworkCore.Relational.dll</HintPath>
</Reference>
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.0.0" />
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="4.6.0" />
</ItemGroup>

<ItemGroup Condition="'$(LocalMySqlConnectorRepository)' != ''">
<Reference Include="MySqlConnector">
<HintPath>$(LocalMySqlConnectorRepository)\src\MySqlConnector\bin\Debug\$(TargetFramework)\MySqlConnector.dll</HintPath>
</Reference>
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.0.0-preview9.19423.4" />
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="4.6.0-preview9.19421.4" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public static IServiceCollection AddEntityFrameworkMySql([NotNull] this IService
.TryAdd<IModificationCommandBatchFactory, MySqlModificationCommandBatchFactory>()
.TryAdd<IValueGeneratorSelector, MySqlValueGeneratorSelector>()
.TryAdd<IRelationalConnection>(p => p.GetService<IMySqlRelationalConnection>())
.TryAdd<IRelationalCommandBuilderFactory, MySqlConverterCommandBuilderFactory>()
.TryAdd<IMigrationsSqlGenerator, MySqlMigrationsSqlGenerator>()
.TryAdd<IRelationalDatabaseCreator, MySqlDatabaseCreator>()
.TryAdd<IHistoryRepository, MySqlHistoryRepository>()
Expand Down
Loading

0 comments on commit c358756

Please sign in to comment.