Skip to content
This repository has been archived by the owner on Jun 25, 2022. It is now read-only.

Commit

Permalink
fix: Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosPavajeau committed May 2, 2021
1 parent a246d47 commit 9363899
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Domain/Data/Providers/MySqlDataProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ public class MySqlDataProvider : IDataProvider

public ApplicationDbContext CreateDbContext(string connectionString)
{
DbContextOptionsBuilder<ApplicationDbContext> optionBuilder = new DbContextOptionsBuilder<ApplicationDbContext>();
optionBuilder.UseMySql(connectionString, new MySqlServerVersion(new Version(8, 0, 20)),
mySqlOptions => mySqlOptions.CharSetBehavior(CharSetBehavior.NeverAppend))
DbContextOptionsBuilder<ApplicationDbContext> optionBuilder =
new DbContextOptionsBuilder<ApplicationDbContext>();
optionBuilder.UseMySql(connectionString, new MySqlServerVersion(new Version(8, 0, 20)))
.EnableSensitiveDataLogging()
.EnableDetailedErrors();

Expand All @@ -25,10 +25,9 @@ public IServiceCollection RegisterDbContext(IServiceCollection services, string
{
services.AddDbContext<ApplicationDbContext>(options =>
{
options.UseMySql(connectionString, new MySqlServerVersion(new Version(8, 0, 20)),
mySqlOptions => mySqlOptions.CharSetBehavior(CharSetBehavior.NeverAppend))
.EnableSensitiveDataLogging()
.EnableDetailedErrors();
options.UseMySql(connectionString, new MySqlServerVersion(new Version(8, 0, 20)))
.EnableSensitiveDataLogging()
.EnableDetailedErrors();
});

return services;
Expand Down

0 comments on commit 9363899

Please sign in to comment.