【发布时间】:2013-07-11 08:15:13
【问题描述】:
在以下函数中,当我尝试返回一个值时出现错误:
无法转换
System.Linq.IQueryable<System.Collections.Generic.IEnumerable<string>>返回类型System.Collections.Generic.IEnumerable<string>
public IEnumerable<string> GetModuleKindPropertyNames(long moduleKindId)
{
var configurationId = GetModuleKindPertypeConfigurationId(moduleKindId);
var propertyNames = _dbSis.ModuleKinds
.Where(t => t.PerTypeConfigurationId == configurationId)
.Select(x => x.PerTypeConfiguration.Properties
.Select(z => z.Name));
return propertyNames; //red line below property names
}
我该如何解决这个问题?
【问题讨论】:
标签: c# .net linq ienumerable iqueryable