Friday, March 18, 2011

How to implement TSQL in clause by LINQ, Contains Method of List(Of T)

        string[] countrycode = null;
        countrycode = listofcountrycodes.Split(',');
        dataSource.StateList.Where(s => countryCodes.Contains(s.CountryCode))

No comments:

Post a Comment