IEnumerable 함께 가능한 그것의 가능한지 궁금하네요.2 일반 IEnumerators에 가입하는 방법
기본적으로 나는 많은 사용자가있어 데이터베이스에서 콘텐츠를 가져와 검색하고 페이지 할 수 있습니다.
나는이 순간에, SQL 내 코드를 LINQ를 사용하고 있습니다 :
public IEnumerable<content> allcontent;
//Get users friends
IEnumerable<relationship> friends = from f in db.relationships
where f.userId == int.Parse(userId)
select f;
IEnumerable<relationship> freindData = friends.ToList();
foreach (relationship r in freindData)
{
IEnumerable<content> content = from c in db.contents
where c.userId == r.userId
orderby c.contentDate descending
select c;
// This is where I need to merge everything together
}
내가 그 어떤 의미를 바랍니다! 매트
모두에게 감사드립니다. – bExplosion