Models: Add Credit
This commit is contained in:
@ -30,15 +30,10 @@ namespace Elwig.Models {
|
||||
|
||||
[Column("kmw")]
|
||||
public double Kmw { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public double Oe {
|
||||
get {
|
||||
return Utils.KmwToOe(Kmw);
|
||||
}
|
||||
set {
|
||||
Kmw = Utils.OeToKmw(value);
|
||||
}
|
||||
get => Utils.KmwToOe(Kmw);
|
||||
set => Kmw = Utils.OeToKmw(value);
|
||||
}
|
||||
|
||||
[Column("qualid")]
|
||||
@ -107,6 +102,10 @@ namespace Elwig.Models {
|
||||
[NotMapped]
|
||||
public IEnumerable<Modifier> Modifiers => PartModifiers.Select(m => m.Modifier).OrderBy(m => m.Ordering);
|
||||
|
||||
[InverseProperty("DeliveryPart")]
|
||||
public virtual PaymentDeliveryPart? Payment { get; private set; }
|
||||
|
||||
[NotMapped]
|
||||
public string OriginString => Origin.OriginString + "\n" + (Kg?.Gl != null ? $" / {Kg.Gl.Name}" : "") + (Kg != null ? $" / {Kg.AtKg.Gem.Name} / KG {Kg.AtKg.Name}" : "") + (Rd != null ? $" / Ried {Rd.Name}" : "");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user