views:

38

answers:

1

hi, i want to change record's in result of linq query. how?

my query :

var results = (from myTable in db.MyTable                               
               where //some condition here
               orderby myTable.Count descending
               select new QueryResult()
               {
                   Title = files.Title,
               }).AsQueryable();

after performing query, i want to change Title property of QueryResult on each record, but i don't know how?

results = results.???
+1  A: 

just use a foreach on results

Fredou
yes, but there isn't another way to doing this with linq method based queries?
Sadegh