public static void DisplayTop5Customers()
{
using var context = new Context();
var customers = context.Customers
.IgnoreQueryFilters()
.TagWithDebugInfo("With ignore filter")
.AsNoTracking()
.Take(5)
.ToList();
}
info: 2/10/2026 14:22:39.311 RelationalEventId.CommandExecuted[20101] (Microsoft.EntityFrameworkCore.Database.Command)
Executed DbCommand (4ms) [Parameters=[@__p_0='5'], CommandType='Text', CommandTimeout='30']
-- Executing method DisplayTop5Customers in CustomerOperations.cs at line 41 message DisplayTop5Customers
SELECT "c"."CustomerIdentifier", "c"."City", "c"."CompanyName", "c"."ContactId", "c"."ContactTypeIdentifier", "c"."CountryIdentifier", "c"."ModifiedDate", "c"."Phone", "c"."PostalCode", "c"."Street"
FROM "Customers" AS "c"
LIMIT @__p_0