3
我运行一个包含可为空的日期时间这样一个表上的LINQ到SQL查询:LINQ可空日期时间
var Output = from s in ....
select new MyModel()
{
TheCloseDate = s.TheCloseDate.DateTime.Value
}
然而,可变TheCloseDate
永远不会被填补。变量的MyModel定义是:
public Nullable<DateTime> TheCloseDate { get; set; }
我在做什么错在这里?
感谢您的建议。
您能详细'TheCloseDate' /'TheCloseDate.DateTime'? – BrokenGlass
@BrokenGlass:你需要什么信息? – frenchie