This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user