Skip to content

Commit 7da78f8

Browse files
authored
Fixed typo in named query filters (#5066)
1 parent ea38da8 commit 7da78f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/core/Querying/QueryFilters/NamedFilters.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public static async Task Sample()
5252
{
5353
Console.WriteLine("Blogs (including soft-deleted ones):");
5454
#region DisableSoftDeletionFilter
55-
var allBlogs = await context.Blogs.IgnoreQueryFilters(["SoftDeletionFlter"]).ToListAsync();
55+
var allBlogs = await context.Blogs.IgnoreQueryFilters(["SoftDeletionFilter"]).ToListAsync();
5656
#endregion
5757

5858
foreach (var blog in allBlogs)
@@ -76,7 +76,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
7676
{
7777
#region FilterConfiguration
7878
modelBuilder.Entity<Blog>()
79-
.HasQueryFilter("SoftDeletionFlter", b => !b.IsDeleted)
79+
.HasQueryFilter("SoftDeletionFilter", b => !b.IsDeleted)
8080
.HasQueryFilter("TenantFilter", b => b.TenantId == tenantId);
8181
#endregion
8282
}

0 commit comments

Comments
 (0)