Add Aspire upgrade code samples

This commit is contained in:
fiodarsazanavets
2026-02-07 09:59:47 +00:00
parent 9312555269
commit e8d6decd1a
110 changed files with 2894 additions and 1 deletions
@@ -0,0 +1,19 @@
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);
}