Index unique EF Core unique
protected override void OnModelCreating(ModelBuilder modelBuilder){ modelBuilder.Entity<Book>() .HasIndex(b => b.Isbn) .IsUnique();}
Annoyed Ant