|
@@ -1,5 +1,6 @@
|
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Internal;
|
|
|
+using SqlSugar;
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
@@ -10,9 +11,10 @@ using System.Text.Json;
|
|
|
|
|
|
namespace XF.Common.Core.Model.FCC
|
|
|
{
|
|
|
+ [SugarTable("ProcessorMetaConfigs")]
|
|
|
public class ProcessorMetaConfigDbModel
|
|
|
{
|
|
|
- [Key]
|
|
|
+ [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
[Required]
|
|
@@ -20,18 +22,22 @@ namespace XF.Common.Core.Model.FCC
|
|
|
public string Description { get; set; }
|
|
|
public ProcessorTypeEnum Type { get; set; }
|
|
|
|
|
|
+ [SugarColumn(IsIgnore =true)]
|
|
|
public IEnumerable<ProcessorMetaPartsMetaConfigDbModel> Parts { get; set; }
|
|
|
public bool Activated { get; set; }
|
|
|
public DateTime TimeStamp { get; set; }
|
|
|
}
|
|
|
|
|
|
|
|
|
+ [SugarTable("ProcessorMetaPartsMetaConfigs")]
|
|
|
public class ProcessorMetaPartsMetaConfigDbModel
|
|
|
{
|
|
|
- [Key]
|
|
|
+ [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
public int ProcessorMetaConfigId { get; set; }
|
|
|
+
|
|
|
+ [SugarColumn(IsIgnore = true)]
|
|
|
public virtual ProcessorMetaConfigDbModel ProcessorMetaConfig { get; set; }
|
|
|
|
|
|
public ProcessorMetaPartsTypeEnum Type { get; set; }
|