Hi All,
I'm New to LINQ, can you help me
how to get the details from select query like where in clause
ex:
- public List
GetLocationsListDB( string[] areaId) - {
- using (DbHelper db = new DbHelper())
- {
- var locationList = (from location in db.LocationMasters
- where areaId.Contains(location.AreaId.ToString()) //Ids.Contains(location.AreaId)
- select new LocationDetailInfo
- {
- LocationId = location.LocationId,
- LocationName = location.LocationDesc
- }).OrderBy(o => o.LocationName).Distinct().ToList();
- return locationList;
- }
- }
but this logic is not get the details

Salman BegRank #284 · 8.8K reputationPosted Nov 15, 2019, 7:06 PM EST
yesubabu kRank #2,091 · 687 reputationPosted Nov 15, 2019, 10:43 PM EST
yesubabu kRank #2,091 · 687 reputationPosted Nov 15, 2019, 10:47 PM EST
Salman BegRank #284 · 8.8K reputationPosted Nov 16, 2019, 2:09 AM EST
Laxmidhar SahooRank #383 · 6.6K reputationPosted Nov 16, 2019, 9:03 PM EST
Dhara Patel108 reputationPosted Nov 26, 2019, 9:33 PM EST
Ashutosh GuptaRank #805 · 2.9K reputationPosted Nov 27, 2019, 4:57 AM EST