유형의 개체를 캐스팅 할 수 없습니다 'System.Collections.Generic.List 1[<>f__AnonymousType0
1 :
public IList<string> FindCodesByCountry(string country)
{
var query = from q in session.Linq<Store>()
where q.Country == country
orderby q.Code
select new {q.Code};
return (IList<string>) query.ToList();
}
을이 오류가 계속하지만 [System.String]] '을 입력하여'System.Collections.Generic.IList`1 [System.String] '을 입력하십시오.
여기로 돌아 가기로되어 있습니까?
오우 ..... 나는 그것을 놓쳤다는 것을 확신하지 못했다 ... 나는 ** ** ** 연산자를 사용하여 단일 열을 반환한다고 생각했다. – vikasde