12345678910111213141516171819202122232425 |
- using Furion.DataValidation;
- using System.ComponentModel.DataAnnotations;
- namespace YBEE.EQM.Core
- {
- /// <summary>
- /// 主键Id映射DTO
- /// </summary>
- public class BaseId : BaseId<int>
- {
- }
- /// <summary>
- /// 主键Id映射DTO
- /// </summary>
- public class BaseId<TKey>
- {
- /// <summary>
- /// 主键Id
- /// </summary>
- [Required(ErrorMessage = "Id不能为空")]
- [DataValidation(ValidationTypes.Numeric)]
- public TKey Id { get; set; }
- }
- }
|