using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; namespace Util.ObjectMapping.AutoMapper.Tests.Samples; /// /// 测试样例2 /// [DisplayName( "测试样例2" )] public class Sample2 { /// /// 描述 /// [Description("描述")] public string Description { get; set; } /// /// 显示名 /// [DisplayName( "显示名" )] public string DisplayName { get; set; } /// /// 显示描述 /// [Display( Description= "显示描述" )] public string Display { get; set; } /// /// string值 /// public string StringValue { get; set; } /// /// int值 /// public int IntValue { get; set; } /// /// bool值 /// public bool BoolValue { get; set; } /// /// 可空bool值 /// public bool? NullableBoolValue { get; set; } /// /// 导航属性 /// public Sample3 Test3 { get; set; } /// /// 导航属性 /// public List TestList { get; set; } }