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,24 +1,19 @@
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_variety"), PrimaryKey("SortId")]
public class WineVar {
[Column("sortid")]
public String SortId { get; set; }
public string SortId { get; set; }
[Column("type")]
public String Type { get; set; }
public string Type { get; set; }
[Column("name")]
public String Name { get; set; }
public string Name { get; set; }
[Column("comment")]
public String? Comment { get; set; }
public string? Comment { get; set; }
}
}