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



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

Answer / imatoria

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

Is This Answer Correct ?    10 Yes 0 No

Post New Answer

More Dot Net AllOther Interview Questions

can any one urls for learning .net(which is written in simple english)

1 Answers  


Explain hard disk and what is its purpose? : Dot net architecture

0 Answers  


Explain .net mobile automatic paging? : Microsoft dot net mobile

0 Answers  


What is the use of delegates

2 Answers  


What is the difference between metadata and menifest ?

0 Answers  


How do I stop a thread?

0 Answers  


What is a memory management?

3 Answers   Six Sigma,


Explain difference between machine config vs. Web config : Dot net architecture

0 Answers  


Explain the differences between Server-side and Client-side code?

2 Answers  


I am working with asp.net 2005 and Crystal report 10. I have an image field on my dataset to show on Crystal report.And the image is shows dynamically from database in image field of CR. The image field is showing well on my Crystal report on its first page with all other data but when i click to open second page of CR,it does not show any data on that.I found that this is because of adding the image field on crystal report. Because when i remove the image field from the CR then it will run both the pages of CR. I am using the Page Load event to bind CR data with Database. And i have already check with the Init event to bind CR , but it still not shows the data on second page when i use image field on that. Please give solution for that.....

0 Answers  


How does .net mobile work? : Microsoft dot net mobile

0 Answers  


Navigation controls in ASP.net,explain each control in brief?

2 Answers   Six Sigma,


Categories