Muhammed Ajmal
www.facebook.com/ajuik2008
twitter.com/username
in.linkedin.com/in/profilename
9745020951
LINQ
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
Introduction
• 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.
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.
Structure of LINQ
How Write Linq query ?
Var variablename=
from tempvariable
in dataSource
Where condition
Select columns
Stages of the Query
1. Obtain the data source for the query
2. Create the query
3. Execute query
Advantage
• LINQ syntax is same, when querying multiple data
sources.
• it provides syntax highlighting.
Example 1
create dataContext class
Datacontext class
Data from db
output
Data From object
Contd..
Thank you
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 @ baabtra.com
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.
Follow us @ twitter.com/baabtra
Like us @ facebook.com/baabtra
Subscribe to us @ youtube.com/baabtra
Become a follower @ slideshare.net/BaabtraMentoringPartner
Connect to us @ in.linkedin.com/in/baabtra
Give a feedback @ massbaab.com/baabtra
Thanks in advance
www.baabtra.com | www.massbaab.com |www.baabte.com
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