Update model

This commit is contained in:
2023-05-13 22:51:20 +02:00
parent f49f7534e9
commit 4d78cdd8a5
15 changed files with 121 additions and 33 deletions

19
Elwig/Models/WbGem.cs Normal file
View File

@ -0,0 +1,19 @@
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
namespace Elwig.Models {
[Table("wb_gem"), PrimaryKey("Gkz")]
public class WbGem {
[Column("gkz")]
public int Gkz { get; private set; }
[Column("hkid")]
public string HkId { get; private set; }
[ForeignKey("Gkz")]
public virtual AT_Gem AtGem { get; private set; }
[ForeignKey("HkId")]
public virtual WineOrigin Origin { get; private set; }
}
}