Skip to content

Commit

Permalink
Simplify MySql configuration for PhonebookContext
Browse files Browse the repository at this point in the history
The line responsible for options configuration of MySql for the PhonebookContext has been simplified. Specifically, the configuration for enabling string comparison translations has been removed.
  • Loading branch information
shashinma committed Jan 22, 2024
1 parent 666e0f7 commit 8c4415f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
options.UseSqlite(identityContextSecrets));

builder.Services.AddDbContext<PhonebookContext>(options =>
options.UseMySql(phoneBookContextSecrets,ServerVersion.AutoDetect(phoneBookContextSecrets),
b => b.EnableStringComparisonTranslations()));
options.UseMySql(phoneBookContextSecrets,ServerVersion.AutoDetect(phoneBookContextSecrets)));

builder.Services.AddDatabaseDeveloperPageExceptionFilter();

Expand Down

0 comments on commit 8c4415f

Please sign in to comment.