Files
2026-02-07 09:59:47 +00:00

20 lines
424 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace AspireApp.ApiService.Models;
public class WeatherForecast
{
[Key]
public int Id { get; set; }
public DateOnly Date { get; set; }
public int TemperatureC { get; set; }
public string? Summary { get; set; }
[NotMapped]
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
}