27 lines
689 B
C#
27 lines
689 B
C#
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 |