using System.ComponentModel; using System.ComponentModel.DataAnnotations.Schema; namespace YLErp.DBModels { [Table("underlying_main_contract")] public class underlying_main_contract : DBModelBase { public static string LogClass = "主力标的管理"; List _UnderlyingCodeList; [NotMapped] public List UnderlyingCodeList { get { if (_UnderlyingCodeList != null) { return _UnderlyingCodeList; } if (string.IsNullOrEmpty(UnderlyingCode)) { _UnderlyingCodeList = new List(); } return _UnderlyingCodeList = UnderlyingCode.Split(',').ToList(); } } /// /// /// [DisplayName("MarketCode")] public string MarketCode { get; set; } /// /// 标的资产类型 /// [DisplayName("标的资产类型")] public string UnderlyingType { get; set; } /// /// 标的资产码 /// [DisplayName("标的资产码")] public string UnderlyingCode { get; set; } /// /// 是否需要实时报价 /// [DisplayName("是否需要实时报价")] public int? NeedQuote { get; set; } /// /// 标的交易最小数量 /// [DisplayName("标的交易最小数量")] public int? MinimumAmount { get; set; } [DisplayName("行权价间隔")] public int? StrikeInterval { get; set; } /// /// 操作人信息_optid /// [DisplayName("操作人信息")] public int? OptId { get; set; } /// /// 创建日期_createdate /// [DisplayName("创建日期")] public DateTime? OptDate { get; set; } /// /// /// [DisplayName("LastUpdateTime")] public DateTime? LastUpdateTime { get; set; } public int? OrderId { get; set; } public override string ToString() { return UnderlyingCode; } } }