如何使用 join() 表达式?
/// <summary>
/// Searches the specified term.
/// </summary>
/// <param name="term">The term.</param>
/// <returns></returns>
public List<City> Search(string term, string countryAbbrev, string provinceAbbrev)
{
//if(!string.IsNullOrEmpty(country) && !string.IsNullOrEmpty(province))
return context.Cities.join(????).Where(Cty => Cty.Name.Contains(term)).ToList();
}
我想加入Province
和country
。我知道如何处理“ From .. in .. join..
”但不知道这个表达式Join(???)