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,10 +1,5 @@
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("area_commitment"), PrimaryKey("Vnr", "KgNr", "GstNr")]
@ -16,7 +11,7 @@ namespace WGneu.Models {
public int KgNr { get; set; }
[Column("gstnr")]
public String? GstNr { get; set; }
public string? GstNr { get; set; }
[Column("rdnr")]
public int RdNr { get; set; }
@ -25,13 +20,13 @@ namespace WGneu.Models {
public int Area { get; set; }
[Column("sortid")]
public String SortId { get; set; }
public string SortId { get; set; }
[Column("attrid")]
public String? AttrId { get; set; }
public string? AttrId { get; set; }
[Column("cultid")]
public String CultId { get; set; }
public string CultId { get; set; }
[ForeignKey("Vnr")]
public virtual Contract Contract { get; set; }