Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

inline select statements

Status
Not open for further replies.

dontforGet

Programmer
Jun 17, 2009
1
US
Hi,

I haven't much exp with the following but my list only returns documents of one data. Like the same data gets added to the list five times.

List<Doc> v = this.GetDocuments();

foreach (Binder b in this.eCaseBinderTemplate.Binders)
{
foreach (BinderDocument d in b.BinderDocument)
{
var addB = from t in v
where d.DocumentCode ==
t.Classifier.Type.Code
select new BinderDocVersion(Convert.ToInt32(d.so), b.Position);

docs.AddRange(addB);
}
}

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top