You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iot/projects/Infrastructure/Web/Mvc/Test/TestEntity.cs

41 lines
1.1 KiB

using Infrastructure.Domain;
using System;
using System.ComponentModel.DataAnnotations;
namespace Infrastructure.Web.Mvc.Test
{
public class TestEntity : BaseEntity
{
[DataType("Number")]
[Display(Name = "非空数字")]
public int NormalInt { get; set; }
[DataType("Number")]
[Display(Name = "可空数字")]
public int? NullbaleInt { get; set; }
[DataType("Boolean")]
[Display(Name = "复选框")]
public bool NormalBoolean { get; set; }
[DataType("Boolean")]
[Display(Name = "可空复选框")]
public bool? NullbaleBoolean { get; set; }
[DataType("Text")]
[Display(Name = "可空字符串")]
public string NormalString { get; set; }
[DataType("Text")]
[Display(Name = "非空字符串")]
public string RequiredString { get; set; }
[DataType(DataType.DateTime)]
[Display(Name = "非空时间")]
public DateTime NormalDateTime { get; set; }
[DataType(DataType.DateTime)]
[Display(Name = "可空时间")]
public DateTime? NullDateTime { get; set; }
}
}