using LMS.Common.Attributes; using System.ComponentModel.DataAnnotations; namespace LMS.Repository.Software { public class AddSoftwareModel { /// /// 软件名称 /// [Required] [NotEmpty(ErrorMessage = "123")] public string SoftwareName { get; set; } /// /// 软件代码 /// [Required] [NotEmpty(ErrorMessage = "123")] public string SoftwareCode { get; set; } } }