Use AsNoTracking for Read-Only Operation in LINQ

AsNoTracking() is a simple way to make your read-only queries faster and more efficient by skipping the change tracking feature of Entity Framework.

using (var context = new MyDbContext())
{
    var customers = context.Customers
                           .AsNoTracking()
                           .Where(c => c.IsActive)
                           .ToList();
}