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