Add wine quality level in DeliveryAdminWindow
This commit is contained in:
@ -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)";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user