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
[/code]
var result =
from o in this._Context.DocumentPresentationModels
where Nullable<Guid>.Equals(o.ParentId,null)
select o;