Linq, how to delete items in the middle of a query return?

Posted by 5YrsLaterDBA on Stack Overflow See other posts from Stack Overflow or by 5YrsLaterDBA
Published on 2010-05-11T21:02:23Z Indexed on 2010/05/11 21:04 UTC
Read the original article Hit count: 177

Filed under:
|

I got a list of objects in the following query. How to delete items in the middle, saying I want to delete item in 2, 5, and 7 position? thanks

            var archivedPwds = from archivedPwd in db.PasswordArchive
                               where archivedPwd.UserId == userId
                               orderby archivedPwd.DateChanged
                               select archivedPwd;

© Stack Overflow or respective owner

Related posts about c#

Related posts about LINQ