This commit is contained in:
2020-05-07 00:07:40 +00:00
parent 6edbbb822a
commit 94c7025865
5 changed files with 27 additions and 8 deletions

View File

@@ -35,7 +35,7 @@ namespace AyaNova.Models
//NOTE: this could be a common class applied to everything for common biz rule stuff
//i.e. specific rights in situations based on rules, like candelete, canedit etc
[NotMapped]
public bool NonDataBaseExampleColumn { get; set; }//example of how to add a property that is not persisted but is used by both ends dynamically, should come up with a naming scheme so can see them at a glance
public string OP { get; set; }//Patch operation value, e.g. "add", "remove", "replace"
}//eoc

View File

@@ -24,21 +24,24 @@ namespace AyaNova.Models
//Principle
[Required]
public long WorkorderId { get; set; }//fk
[JsonIgnore]//Avoid circular reference when serializing
public WorkOrder WorkOrder { get; set; }
//dependents
public List<WorkOrderItemLabor> WorkorderItemLabors { get; set; }
public WorkOrderItem()
{
Tags = new List<string>();
WorkorderItemLabors = new List<WorkOrderItemLabor>();
}
//Not persisted business properties
//NOTE: this could be a common class applied to everything for common biz rule stuff
//i.e. specific rights in situations based on rules, like candelete, canedit etc
[NotMapped]
public bool NonDataBaseExampleColumn { get; set; }//example of how to add a property that is not persisted but is used by both ends dynamically, should come up with a naming scheme so can see them at a glance
public bool OP { get; set; }//patch operation value
}//eoc