Migrations: SQL Server Filtered Indexes #5817
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
good first issue
This issue should be relatively straightforward to fix.
help wanted
This issue involves technologies where we are not experts. Expert help would be appreciated.
type-enhancement
Milestone
For indexes on SQL Server, it should be possible to set a filter might as string or lamda expression:
modelBuilder.Entity<Blog>().HasIndex(b => b.Url, "[Url] IS NOT NULL AND [IsActive] = 1");
or
modelBuilder.Entity<Blog>().HasIndex(b => b.Url, b => b.Url != null && b.IsActive == 1);
The text was updated successfully, but these errors were encountered: