我在一个函数中使用多个LINQ。第一个LINQ运行良好,但我有这个错误" SystemNullReferenceException"对于第二个LINQ,为什么?
var data = db.Table<LMLoginTable>();
var data1 = data.Where(x => x.DWFSeen == DW).Where(x => x.MWFSeen == MW).Where(x => x.YWFSeen == YW).FirstOrDefault();
if (data1.RFSeen == 0)
{
....
var data2 = data.Where(x => x.DWSSeen == DW).Where(x => x.MWSSeen == MW).Where(x => x.YWSSeen == YW).FirstOrDefault();
if (data2.RSSeen == 0)
{
.....