Fix Models with PLZ

This commit is contained in:
2023-03-14 11:12:19 +01:00
parent 76b1a3de75
commit b5f6adc41c
19 changed files with 69 additions and 123 deletions

View File

@ -1,22 +1,17 @@
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WGneu.Models {
[Table("wine_quality"), PrimaryKey("QualId")]
public class WineQual {
[Column("qualid")]
public String QualId { get; set; }
public string QualId { get; set; }
[Column("origin_level")]
public int OriginLevel { get; set; }
public int? OriginLevel { get; set; }
[Column("name")]
public String Name { get; set; }
public string Name { get; set; }
[Column("from_kmw")]
public double? FromKmw { get; set; }