<分区> 分区>
目前我正在搜索如下
resourcesDB.Where(x => x.Resource_Type == 1 && (x.Resource_Ext.ToLower() ==".doc" || (x.Resource_Ext.ToLower() == ".docx"))).ToList();
但我想使用数组作为搜索参数来搜索记录,我的数组是
var docExts = new[] { ".pdf",".doc", ".docx", ".xls", ".xlsx" };
我喜欢
resourcesDB.Where(x => x.Resource_Type == 1 && (x.Resource_Ext.ToLower() == [from docExts ])).ToList();
有没有可能我怎样才能做到这一点?。
