LINQ TO SQL
AGENDA• INTRODUCTION TO LINQ• LINQ AND .NET FRAMEWORK• What is Data Context Object?• Working of LINQ.• LINQ TO SQL (WITH E...
INTRODUCTION TO LINQ• LINQ stands for Language Integrated Querying.• Language Integrated Querying (LINQ) is Microsoft’s fi...
LINQ and Dot Net Framework      C# 3.0                   VB 9.0                  OTHERS       DOT NET LANGUAGE INTEGRATED ...
What is DataContext Object?• DataContext is a Class, which helps creating a connection with  the database.• It represents ...
Working of LINQ• Sending data from Application to the database is a 2 step process  in Linq.• Database Operation is done b...
LINQ TO SQL EXAMPLE
Bibliography• http://www.codeproject.com/Articles/33900/LI  NQ-FAQ-for-Newbie-s• http://www.codeproject.com/Articles/38056...
THANK YOU
Linq to sql
Linq to sql
Upcoming SlideShare
Loading in …5
×

Linq to sql

2,298 views

Published on

This is the small presentation on Linq to Sql, explaining about various things like - "What is LINQ", "How LINQ works", etc...

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,298
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
121
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Linq to sql

  1. 1. LINQ TO SQL
  2. 2. AGENDA• INTRODUCTION TO LINQ• LINQ AND .NET FRAMEWORK• What is Data Context Object?• Working of LINQ.• LINQ TO SQL (WITH EXAMPLES)
  3. 3. INTRODUCTION TO LINQ• LINQ stands for Language Integrated Querying.• Language Integrated Querying (LINQ) is Microsoft’s first attempt to integrate Queries into a Language.• Model which overcomes the traditional approach to access data.• Visual Studio provides IntelliSense Features and also integrated debugger to debug queries.• LINQ can interact with any kind of data source and hence reduces the headaches of learning new techniques.
  4. 4. LINQ and Dot Net Framework C# 3.0 VB 9.0 OTHERS DOT NET LANGUAGE INTEGRATED QUERY - LINQ LINQ TO LINQ TO LINQ TO LINQ TO LINQ TO SQLCOLLECTIONS DATASET XML ENTITIES OBJ 1 XMLOBJ OBJ FILE 2 3 OBJECTS DATABASES XML
  5. 5. What is DataContext Object?• DataContext is a Class, which helps creating a connection with the database.• It represents the Tables and the Stored Procedures we created in the database.• Helps to create and delete a Database. Provides CreateDatabase() and DeleteDatabase() functions.• It submits the information sent using Objects and make changes in the database.
  6. 6. Working of LINQ• Sending data from Application to the database is a 2 step process in Linq.• Database Operation is done by Data Context Object. Data is transferred from the Entity to the DataContext Object.• LINQ provides “InsertOnSubmit()”, “DeleteOnSubmit()” to do the in-memory operations.• For applying the changes in the physical database, the “SubmitChanges()” has to be called.
  7. 7. LINQ TO SQL EXAMPLE
  8. 8. Bibliography• http://www.codeproject.com/Articles/33900/LI NQ-FAQ-for-Newbie-s• http://www.codeproject.com/Articles/38056/LI NQ-FAQ-Part-2• http://www.codeproject.com/Articles/38010/C RUD-Operations-using-LINQ-Entities• http://www.codeproject.com/Articles/32004/S ALT-and-PEPPER-3-TIER-and-LINQ#Inconsistent DAL component
  9. 9. THANK YOU

×