This commit is contained in:
2023-04-20 00:08:43 +00:00
parent cb4311403a
commit b301b907b3
5 changed files with 228 additions and 7 deletions

View File

@@ -1,12 +1,15 @@
using System;
using System.Collections.Generic;
using Sockeye.Biz;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
namespace Sockeye.Models
{
//https://stackoverflow.com/questions/46517584/how-to-add-a-parent-record-with-its-children-records-in-ef-core#46615455
public class SubscriptionItem
public class SubscriptionItem : ICoreBizObjectModel
{
public long Id { get; set; }
public uint Concurrency { get; set; }
@@ -27,9 +30,18 @@ namespace Sockeye.Models
[Required]
public DateTime OriginalOrderDate { get; set; }
public List<string> Tags { get; set; } = new List<string>();
//workaround for notification
[NotMapped, JsonIgnore]
public string Name { get; set; }
[JsonIgnore]
public Subscription Subscription { get; set; }
[NotMapped, JsonIgnore]
public SockType SType { get => SockType.SubscriptionItem; }
}//eoc
}//eons