Skip to content

Instantly share code, notes, and snippets.

@enisn
Created April 9, 2021 21:20
Show Gist options
  • Save enisn/9a0f397c251a4b49bb2283e8cd362148 to your computer and use it in GitHub Desktop.
Save enisn/9a0f397c251a4b49bb2283e8cd362148 to your computer and use it in GitHub Desktop.
AutoFilterer.Generators | Step 1 | WeatherForecast.cs
using System;
namespace MyAwesomeApp
{
[GenerateAutoFilter] // <-- Add this attribute
public class WeatherForecast
{
public DateTime Date { get; set; }
public int TemperatureC { get; set; }
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
public string Summary { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment