【发布时间】:2017-10-29 06:16:51
【问题描述】:
var query = from c in countryStates
where (c.CountryStateID.ToString().Contains(_RestrictCountryStateID))
orderby c.CountryStateDesc
select c;
在此代码中,_RestrictCountryStateID 是一个包含 CountrySateIDs 的字符串 而且我不知道对于每个查询我在 _RestrictCountryStateID 中有多少 CountrySateID。
这个场景怎么写?
【问题讨论】:
-
此查询无效。