Possible Duplicate:
How to do a join in linq to sql with method syntax?
How do I use join() expression?
/// <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();
}
I would like to join with Province
and country
. I know How to do with "From .. in .. join..
" but not with this Expression Join(???)