<@[for i in linq.TrueIncidents -> i.RecTime, i.Name, (if i.Description = null && i.ID.HasValue = false then i.Message else "hello") ] @>
<@[for i in linq.TrueIncidents -> i.RecTime, i.Name, (if i.Description = null && not <| i.ID.HasValue then i.Message else "hello") ] @>
不起作用里面LINQ2SQL
确实 “不” 的作品?或者它是一个错误?
如果使用'not i.ID.HasValue'而不是''not <| i.ID.HasValue'? – kvb 2011-03-29 11:15:48
@kvb是,没有<|它运作良好,因此必须只是因为'<|'用法。 – Cynede 2011-03-29 13:05:07