`
shirlly
  • 浏览: 1626358 次
  • 性别: Icon_minigender_2
  • 来自: 福州
社区版块
存档分类
最新评论

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
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics