In LINQ TO SQL if it is possible to select the top 5 records from the particular table using select top 5.

Answer Posted / imatoria

(from t in context.tableName
select t).Take(5)

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you explain scriptmanager control?

533


What is .net mobile images control. : Microsoft dot net mobile

491


Explain different pipelining hazards? : Dot net architecture

470


Xmlserializer is throwing a generic "there was an error reflecting myclass" error. How do I find out what the problem is?

539


how to create applications by using Visual Studio 2012?

575






What are the five stages in a dlx pipeline? : Dot net architecture

516


What is boxing and unboxing? Does it occure automaatically or you need to write code to box and unbox?

530


Define an interrupt? : Dot net architecture

551


What are the different pipelining hazards? : Dot net architecture

580


what is the difference between master page and content page?

2114


What is the importance of updatepanel control?

537


What is the .net class that allows the retrieval of a data element using a unique key?

568


Explain is development of a mobile web application with asp.net is very easy? : Microsoft dot net mobile

515


Explain How to improve the cache performance? : Dot net architecture

518


Explain the use of virtual, sealed, override, and abstract.

569