Add wine quality level in DeliveryAdminWindow

This commit is contained in:
2023-05-22 23:45:47 +02:00
parent dc236bab62
commit 2281ec80ae
5 changed files with 58 additions and 16 deletions

View File

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
namespace Elwig.Models {
[Table("wine_quality"), PrimaryKey("QualId")]
[Table("wine_quality_level"), PrimaryKey("QualId")]
public class WineQualLevel {
[Column("qualid")]
public string QualId { get; private set; }
@ -22,5 +22,7 @@ namespace Elwig.Models {
[Column("name")]
public string Name { get; private set; }
public string MinKmwStr => (MinKmw == null) ? "" : $"(mind. {MinKmw:#.0} °KMW)";
}
}