IEnumerableを一緒に結合することが可能かどうか疑問に思っています。2一般的なIEnumeratorsに参加する方法
基本的には私はたくさんのユーザーがいて、データベースからコンテンツを取得する必要があるため、検索してページングすることができます。
私はそれが現時点ではLINQ to SQLは、私のコードを使用しています:
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