Skip to content

Commit

Permalink
Remove IsUnique on key field in DbContext
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiyarGHD committed Nov 26, 2023
1 parent 4156aaa commit 10a445b
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 520 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
modelBuilder.Entity<CategoryEntity>(model =>
{
model.HasKey(x => x.Id);
model.HasIndex(x => x.Key).IsUnique();
model.Property(x => x.Key).UseCollation("SQL_Latin1_General_CP1_CS_AS");
});

Expand Down
Empty file.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 10a445b

Please sign in to comment.