このlinqクエリのSQLクエリを取得する必要があります。私はlinqpadを使用します。 私はLINQクエリはlinqpadのlinqクエリ実行時のエラー
) or end of expression expected (change the Query Language to 'C# Statements' for multi-statement queries)
クエリ言語はC#の式であるというエラーを取得する実行.When Id
と変数の呼び出しを使用しています。
これを解決するにはどうすればよいですか?
Id=110000;
from u in BusProvinces
where (from s in BusProvinces
join buscities in BusCities on s.Id equals buscities.ProvinceId
join buspath in BusPaths on buscities.Id equals buspath.DesId
where (buspath.DepId == Id || Id == 0)
select s.Id).Contains(u.Id)
select u
答えはエラー文です。クエリ言語を変更します。 –