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

Define cache coherency and how is it eliminated? : Dot net architecture

531


Explain about httpruntime.cach.get(); method?

577


What is an interrupt? : Dot net architecture

515


What is the use of TPL DATAFLOW?

558


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

540






What's the difference between an application and a program?

578


can u give me real example of how web.config overrides the machine.config file?

1302


how to set the startup position of the form?

1515


Explain different pipelining hazards? : Dot net architecture

480


Explain difference between inprocess vs out process session state? : .NET Architecture

552


What is new in the .net 2.0 class library?

704


Difference between type constructor and instance constructor?

561


8. Oop-Why and were we use Interfacse and Abstract class.

1597


What is .net mobile images control. Explain with an example? : Microsoft dot net mobile

511


How to prevent my .NET DLL to be decompiled?

578