Otis wrote:
Sorry, that's not possible. Linq is a fetching technique with everything to fetch the query build in. It can't be used to specify a 'filter', it's a complete query + engine to fetch itself.
A lambda is just a lambda, it can't be translated to a predicate without more context, but that would require a complete query.
Maybe I misunderstood something then, and this becomes a different question
Take:
linqHandler.User.Count(currentUser => currentUser.LoginName = "hihihi");
How is that working? Normally for a collection that is the same as say:
userCollection.Count(delegate(User currentUser){ stuff here; });
But this would assume that userCollection is already filled. Is the linqHandler grabbing everything from the table, then applying the count as opposed to a SELECT Count() query?
As for the original post, I guess on that point I was hoping something could take in the query and use it to delete rather than select from a table.