We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdda106 commit 5180a9aCopy full SHA for 5180a9a
src/LinkDotNet.Blog.Infrastructure/Persistence/Sql/Mapping/BlogPostConfiguration.cs
@@ -22,5 +22,9 @@ public void Configure(EntityTypeBuilder<BlogPost> builder)
22
builder.Property(x => x.ShortDescription).IsRequired();
23
builder.Property(x => x.Likes).IsRequired();
24
builder.Property(x => x.IsPublished).IsRequired();
25
+
26
+ builder.HasIndex(x => new { x.IsPublished, x.UpdatedDate })
27
+ .HasDatabaseName("IX_BlogPosts_IsPublished_UpdatedDate")
28
+ .IsDescending(false, true);
29
}
30
0 commit comments