Files
2026-05-15 23:22:48 +08:00

71 lines
2.3 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
*代码由框架生成,任何更改都可能导致被代码生成器覆盖
*如果数据库字段发生变化请在代码生器重新生成此Model
*/
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using VolPro.Entity.SystemModels;
namespace VolPro.Entity.DomainModels
{
[Entity(TableCnName = "规则",TableName = "warehouse_rule",DetailTable = new Type[] { typeof(warehouse_rulecondition),typeof(warehouse_ruleaction)},DetailTableCnName = "规则条件,规则动作",DBServer = "ServiceDbContext")]
public partial class warehouse_rule:ServiceEntity
{
/// <summary>
///规则标题
/// </summary>
[Display(Name ="规则标题")]
[MaxLength(255)]
[Column(TypeName="nvarchar(255)")]
[Editable(true)]
[Required(AllowEmptyStrings=false)]
public string Title { get; set; }
/// <summary>
///条件判断方式
/// </summary>
[Display(Name ="条件判断方式")]
[MaxLength(255)]
[Column(TypeName="nvarchar(255)")]
[Editable(true)]
public string JudgmentMode { get; set; }
/// <summary>
///条件判断目标值
/// </summary>
[Display(Name ="条件判断目标值")]
[MaxLength(10)]
[Column(TypeName="nvarchar(10)")]
[Editable(true)]
public string JudgmentValue { get; set; }
/// <summary>
///规则编号
/// </summary>
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
[Key]
[Display(Name ="规则编号")]
[Column(TypeName="int")]
[Editable(true)]
[Required(AllowEmptyStrings=false)]
public int RuleID { get; set; }
[Display(Name ="规则条件")]
[ForeignKey("RuleID")][Navigate(NavigateType.OneToMany,nameof(RuleID),nameof(RuleID))]
public List<warehouse_rulecondition> warehouse_rulecondition { get; set; }
[Display(Name ="规则动作")]
[ForeignKey("RuleID")][Navigate(NavigateType.OneToMany,nameof(RuleID),nameof(RuleID))]
public List<warehouse_ruleaction> warehouse_ruleaction { get; set; }
}
}