Update model
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Elwig.Models {
|
||||
@ -11,6 +12,18 @@ namespace Elwig.Models {
|
||||
public int? GlNr { get; set; }
|
||||
|
||||
[ForeignKey("KgNr")]
|
||||
public virtual AT_Kg Kg { get; private set; }
|
||||
public virtual AT_Kg AtKg { get; private set; }
|
||||
|
||||
[ForeignKey("GlNr")]
|
||||
public virtual WbGl Gl { get; private set; }
|
||||
|
||||
[InverseProperty("Kg")]
|
||||
public virtual ISet<WbRd> Rds { get; private set; }
|
||||
|
||||
[NotMapped]
|
||||
public WbGem Gem => AtKg.Gem.WbGem;
|
||||
|
||||
[NotMapped]
|
||||
public WineOrigin Origin => Gem.Origin;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user