diff --git a/Domain/Data/Providers/MySqlDataProvider.cs b/Domain/Data/Providers/MySqlDataProvider.cs index 09a7e3ed..36e65edc 100644 --- a/Domain/Data/Providers/MySqlDataProvider.cs +++ b/Domain/Data/Providers/MySqlDataProvider.cs @@ -12,9 +12,9 @@ public class MySqlDataProvider : IDataProvider public ApplicationDbContext CreateDbContext(string connectionString) { - DbContextOptionsBuilder optionBuilder = new DbContextOptionsBuilder(); - optionBuilder.UseMySql(connectionString, new MySqlServerVersion(new Version(8, 0, 20)), - mySqlOptions => mySqlOptions.CharSetBehavior(CharSetBehavior.NeverAppend)) + DbContextOptionsBuilder optionBuilder = + new DbContextOptionsBuilder(); + optionBuilder.UseMySql(connectionString, new MySqlServerVersion(new Version(8, 0, 20))) .EnableSensitiveDataLogging() .EnableDetailedErrors(); @@ -25,10 +25,9 @@ public IServiceCollection RegisterDbContext(IServiceCollection services, string { services.AddDbContext(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;