日期:2014-05-16  浏览次数:20518 次

linq 中如何表达数据库查询语句中的 is null
var result =
        from o in this._Context.DocumentPresentationModels
        where Nullable<Guid>.Equals(o.ParentId,null)
        select o;


相当于数据库中sql查询语句
[code"]
select * from KM_Document where KM_Document.ParentId is null