Skip to content

Commit

Permalink
chore : try to chage db collation
Browse files Browse the repository at this point in the history
this will fix the bug, but I don't think that's root case, so remarked.
  • Loading branch information
Ian-Chu committed Nov 22, 2022
1 parent 7016a01 commit 57bc8b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions TestEfContains/MyDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)

protected override void OnModelCreating(ModelBuilder modelBuilder)
{
//if change db collation, will fix that bug, but you need drop db and rebuild again.
//modelBuilder.UseCollation("Chinese_Taiwan_Stroke_CI_AS");
modelBuilder.Entity<Test>(entity => {
entity.HasKey(e => e.StockId)
.HasName("pk_test");
Expand Down

0 comments on commit 57bc8b9

Please sign in to comment.