KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How can I return first 100 records using Linq? I have a table with 40million records. This code works, but it's slow, because will return all values before filter: var values = (from e in dataContext.table_sample where e.x == 1 select e) .Take(100); Is there a way to return filtered? Like T-SQL TOP clause?
Tags (comma-separated)
Save Edits
Cancel