AspNetCore.Docs/aspnet/whitepapers/aspnet4/overview/samples/sample65.cs

6 lines
158 B
C#

protected void FilterProducts(object sender, CustomExpressionEventArgs e)
{
e.Query = from p in e.Query.Cast()
where p.UnitPrice >= 10
select p;
}