그리드를 채우는 쿼리가 있습니다. 다음은 쿼리입니다.LINQ 쿼리에서 값 가져 오기
var query = from r in DbContext.Groups
select
new
{
r.Id, r.Name, r.Description, r.UpdatedBy, r.UpdatedDate,
GroupType =DbContext.ProductTypes.Where(p=>p.Id ==
r.ProductTypes_Id).Select(t=>t.Name)
};
그래서 다른 테이블에서 추출한 grouptype의 값이 값을 표시하지 않습니다. 형식 (System.Common ....)을 표시하고 있습니다. 이 문제를 해결하는 데 나를 도울 수 있니?