Linq in

of 19 /19

Transcript of Linq in

Page 1: Linq in
Page 2: Linq in

Muhammed Ajmal

[email protected]



Page 3: Linq in

Disclaimer: This presentation is prepared by trainees ofbaabtra as a part of mentoring program. This is not officialdocument of baabtra –Mentoring PartnerBaabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt . Ltd

Page 4: Linq in


• LINQ stands for Language-Integrated Query

• It is simply a unified programming model for writing

SQL queries in simple language(C#,VB,etc) without

learing SQL.

Page 5: Linq in

LINQ contd..

• It has a single unitive syntax for querying multiple

data sources.

• It uses a declarative syntax that allows developers to

tell the compiler what to do.

Page 6: Linq in

Structure of LINQ

Page 7: Linq in

How Write Linq query ?

Var variablename=

from tempvariable

in dataSource

Where condition

Select columns

Page 8: Linq in

Stages of the Query

1. Obtain the data source for the query

2. Create the query

3. Execute query

Page 9: Linq in


• LINQ syntax is same, when querying multiple data


• it provides syntax highlighting.

Page 10: Linq in

Example 1

create dataContext class

Page 11: Linq in

Datacontext class

Page 12: Linq in

Data from db

Page 13: Linq in


Page 14: Linq in

Data From object

Page 15: Linq in


Page 16: Linq in

Thank you

Page 17: Linq in

Want to learn more about programming or Looking to become a good programmer?

Are you wasting time on searching so many contents online?

Do you want to learn things quickly?

Tired of spending huge amount of money to become a Software professional?

Do an online course @

We put industry standards to practice. Our structured, activity based courses are so designedto make a quick, good software professional out of anybody who holds a passion for coding.

Page 18: Linq in

Follow us @

Like us @

Subscribe to us @

Become a follower @

Connect to us @

Give a feedback @

Thanks in advance | |

Page 19: Linq in

Emarald Mall (Big Bazar Building)Mavoor Road, Kozhikode,Kerala, India.Ph: + 91 – 495 40 25 550

NC Complex, Near Bus StandMukkam, Kozhikode,Kerala, India.Ph: + 91 – 495 40 25 550

Cafit Square,Hilite Business Park,Near Pantheerankavu,Kozhikode

Start up VillageEranakulam,Kerala, India.

Email: [email protected]

Contact Us