This commit is contained in:
2020-05-05 22:16:26 +00:00
parent d6004784fe
commit 6edbbb822a
4 changed files with 37 additions and 18 deletions

View File

@@ -22,11 +22,12 @@ namespace AyaNova.Models
public List<string> Tags { get; set; }
//Principle
[Required]//this required annotation should cause a cascade delete to happen automatically when wo is deleted, need to test that
public long WorkorderId { get; set; }//fk
[Required]
public long WorkorderId { get; set; }//fk
[JsonIgnore]//Avoid circular reference when serializing
public WorkOrder WorkOrder { get; set; }
//Dependents
public WorkOrderItem()
{