//处理数据库中字段出现null(SQL:select * from tableA where A列 is null)
var pcode = string.IsNullOrEmpty(pcode) ? mt.Where(i => i.PCode == null) : mt.Where(i => i.PCode == pcode);
处理数据库中字段出现null
最新推荐文章于 2021-06-05 22:31:51 发布
//处理数据库中字段出现null(SQL:select * from tableA where A列 is null)
var pcode = string.IsNullOrEmpty(pcode) ? mt.Where(i => i.PCode == null) : mt.Where(i => i.PCode == pcode);