Permalink
Browse files

Switch back to Pomelo MySQL driver

  • Loading branch information...
Daniel15 committed Mar 26, 2017
1 parent 08e9d9a commit 4aae2902aab33c18095c3092e70dbdf9905129f5
Showing with 3 additions and 3 deletions.
  1. +1 −1 Daniel15.Data/Daniel15.Data.csproj
  2. +2 −2 Daniel15.Infrastructure/Ioc.cs
@@ -12,8 +12,8 @@
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="1.1.1" />
- <PackageReference Include="MySql.Data.EntityFrameworkCore" Version="6.10.1-beta" />
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" />
+ <PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="1.1.1-prerelease-10026" />
<PackageReference Include="System.Text.Encodings.Web" Version="4.3.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="1.1.1" />
</ItemGroup>
@@ -6,10 +6,10 @@
using Daniel15.Data.Repositories;
using Daniel15.Data.Repositories.EntityFramework;
using Daniel15.Shared.Configuration;
+using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
-using MySQL.Data.EntityFrameworkCore.Extensions;
namespace Daniel15.Infrastructure
{
@@ -55,7 +55,7 @@ public static void AddDaniel15Config(this IServiceCollection services, IConfigur
private static void InitializeDatabase(IServiceCollection services, IConfiguration config)
{
services.AddDbContext<DatabaseContext>(options =>
- options.UseMySQL(config["Data:DefaultConnection:ConnectionString"])
+ options.UseMySql(config["Data:DefaultConnection:ConnectionString"])
);
services.AddScoped<IBlogRepository, BlogRepository>();
services.AddScoped<IDisqusCommentRepository, DisqusCommentRepository>();

0 comments on commit 4aae290

Please sign in to comment.