WMS/HHWMS.Web/Models/Report/ReportDesign.cs
2023-07-25 19:20:18 +08:00

31 lines
1.0 KiB
C#

using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;
namespace HHWMS.Web.Models
{
[Table("ReportDesign")]
public class ReportDesign : BasePoco
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public new int ID { get; set; }
[Display(Name = "ReportDesign.Name", Description = "名称")]
[Required(ErrorMessage = "Validate.{0}required")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string Name { get; set; }
[Display(Name = "ReportDesign.Sql", Description = "Sql")]
[Required(ErrorMessage = "Validate.{0}required")]
public string Sql { get; set; }
[Display(Name = "ReportDesign.Params", Description = "参数")]
[Required(ErrorMessage = "Validate.{0}required")]
public string Params { get; set; }
[Display(Name = "_Admin.Remark", Description = "备注")]
public string Remark { get; set; }
}
}