草庐IT

newAreaItem

全部标签

c# - EF 非静态方法需要一个目标

我对以下查询有严重的问题。context.CharacteristicMeasures.FirstOrDefault(cm=>cm.Charge==null&&cm.Characteristic!=null&&cm.Characteristic.Id==c.Id&&cm.Line!=null&&cm.Line.Id==newLine.Id&&cm.ShiftIndex!=null&&cm.ShiftIndex.Id==actShiftIndex.Id&&(newAreaItem==null||(cm.AreaItem!=null&&cm.AreaItem.Id==newAreaItem