Linq Top 10 records

var myResults=(from emp in db.employees
order by emp.emp_name
where emp.emp_name.startwith("a")
select emp).Take(10)

http://weblogs.asp.net/scottgu/archive/2007/05/19/using-linq-to-sql-part-1.aspx



Comments

Popular posts from this blog

IBM FileNet: Bulk Processing using JavaScript

DB2 Date Time Functions

File Net Insert Document