This commit is contained in:
27
server/AyaNova/models/TaskGroupItem.cs
Normal file
27
server/AyaNova/models/TaskGroupItem.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace AyaNova.Models
|
||||
{
|
||||
//https://stackoverflow.com/questions/46517584/how-to-add-a-parent-record-with-its-children-records-in-ef-core#46615455
|
||||
public class TaskGroupItem
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public long TaskGroupId { get; set; }
|
||||
|
||||
public int DisplayOrder { get; set; } = 0;
|
||||
|
||||
[Required]
|
||||
public string Task { get; set; }
|
||||
|
||||
|
||||
[JsonIgnore]
|
||||
public TaskGroup TaskGroup { get; set; }
|
||||
|
||||
}//eoc
|
||||
|
||||
}//eons
|
||||
Reference in New Issue
Block a user