This commit is contained in:
19
server/AyaNova/models/ICoreBizObjectModel.cs
Normal file
19
server/AyaNova/models/ICoreBizObjectModel.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.Collections.Generic;
|
||||
namespace AyaNova.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// Interface for biz object models with standard fields
|
||||
/// used for bulk operations etc
|
||||
/// </summary>
|
||||
internal interface ICoreBizObjectModel
|
||||
{
|
||||
public long Id {get;set;}
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
public string Wiki { get; set; }
|
||||
public string CustomFields { get; set; }
|
||||
public List<string> Tags { get; set; }
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -6,7 +6,7 @@ using Newtonsoft.Json;
|
||||
namespace AyaNova.Models
|
||||
{
|
||||
|
||||
public class dtUser//used to return user object without auth related fields in UserGet route
|
||||
public class dtUser : ICoreBizObjectModel//used to return user object without auth related fields in UserGet route
|
||||
{
|
||||
public dtUser()
|
||||
{
|
||||
@@ -29,7 +29,7 @@ namespace AyaNova.Models
|
||||
public List<string> Tags { get; set; }
|
||||
}//eoc
|
||||
|
||||
public class User
|
||||
public class User : ICoreBizObjectModel
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace AyaNova.Models
|
||||
|
||||
//NOTE: Any non required field (nullable in DB) sb nullable here, i.e. decimal? not decimal, otherwise the server will call it an invalid record if the field isn't sent from client
|
||||
//NOTE: In Widget DB schema only name and serial are not nullable
|
||||
public class Widget
|
||||
public class Widget : ICoreBizObjectModel
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace AyaNova.Models
|
||||
{
|
||||
|
||||
//Data transfer no child collections
|
||||
public class dtWorkOrder
|
||||
public class dtWorkOrder : ICoreBizObjectModel
|
||||
{
|
||||
public dtWorkOrder()
|
||||
{
|
||||
@@ -27,7 +27,7 @@ namespace AyaNova.Models
|
||||
|
||||
}//eoc
|
||||
|
||||
public class WorkOrder
|
||||
public class WorkOrder : ICoreBizObjectModel
|
||||
{
|
||||
public WorkOrder()
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ using Newtonsoft.Json;
|
||||
|
||||
namespace AyaNova.Models
|
||||
{
|
||||
public class dtWorkOrderItem
|
||||
public class dtWorkOrderItem : ICoreBizObjectModel
|
||||
{
|
||||
public dtWorkOrderItem()
|
||||
{
|
||||
@@ -23,7 +23,7 @@ namespace AyaNova.Models
|
||||
public long WorkOrderId { get; set; }
|
||||
}//eoc
|
||||
|
||||
public class WorkOrderItem
|
||||
public class WorkOrderItem : ICoreBizObjectModel
|
||||
{
|
||||
public WorkOrderItem()
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ using Newtonsoft.Json;
|
||||
|
||||
namespace AyaNova.Models
|
||||
{
|
||||
public class WorkOrderItemExpense
|
||||
public class WorkOrderItemExpense
|
||||
{
|
||||
public WorkOrderItemExpense()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user