Update model
This commit is contained in:
19
Elwig/Models/WbGem.cs
Normal file
19
Elwig/Models/WbGem.cs
Normal 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; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user