コード例 #1
0
 public static ISpec <WeatherForecast> WithNotTemperature(this ISpec <WeatherForecast> spec, int temperature) =>
 spec.And(x => x.TemperatureC != temperature);
コード例 #2
0
 public static ISpec <WeatherForecast> WithId(this ISpec <WeatherForecast> spec, long id) =>
 spec.And(x => x.WeatherForecastId == id);