2016-06-28 21 views
1

です。右テーブルにレコードが存在しない場合、左テーブルのalwaysイベントからレコードを取得する必要があるlinqクエリを作成しています。私はそのためのlinqクエリを書いた。右のテーブルは、この場合null値で構成されている可能性がありますエラーが発生しています。 where where節で節のにnull条件をチェックする方法。 nullをチェックするためにwhere句を使用すると、ゼロレコードが取得されますが、すべての左テーブルレコードが必要です。linqの左の結合条件でNull値をチェックする方法条件が

join sfs in db.SubmissionFileUploadSummaries on new { sub.CollectionId, districtid, tbl.Tablename } equals new { CollectionId = (int)sfs.CollectionId, districtid = (int)sfs.OrganizationId, Tablename = sfs.TableName } 
      into sfslist 
      from sfssub in sfslist.DefaultIfEmpty() 
      where sfssub.CollectionId!=null 

答えて