This commit is contained in:
2021-03-26 23:48:26 +00:00
parent 6c166de5b5
commit 883d1821e2
9 changed files with 171 additions and 23 deletions

View 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