By: Luis Carranco CIS764 - Fall 2008.  What is LINQ  Architecture  How does it work?  Samples/Demo  Why to use LINQ? 2.

Slides:



Advertisements
Similar presentations
Satisfy Your Technical Curiosity ADO.NET vNext The Entity Data Model, Object Services, and LINQ Bob Beauchemin Director of Developer Resources, SQLskills.
Advertisements

Language Integrated Query (LINQ) Martin Parry Developer & Platform Group Microsoft Ltd
LINQ Stefan Flöring Department für Informatik Carl von Ossietzky Universität Oldenburg.
Michael Pizzo Software Architect Data Programmability Microsoft Corporation.
Basic SQL Introduction Presented by: Madhuri Bhogadi.
© Logica All rights reserved ADO vNext LINQ LINQ to SQL Entity Framework Freek Leemhuis
DEV306 LINQ (Language Integrated Query)
1 Visual Studio 2008 Fons Sonnemans (Trainer) Reflection IT
LinqToSharePoint SandBoxed Solution Shakir Majeed Khan
Tools of the trade TSQL CIS 407. SQL Server Tools Books on line! Don’t use sql server authentication –Use windows authentication (safer) for developer.
Getting Started (Excerpts) Chapter One DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
ASP.NET Database Connectivity I. 2 © UW Business School, University of Washington 2004 Outline Database Concepts SQL ASP.NET Database Connectivity.
What’s new in ASP.NET 3.5? Mike Ormond Developer & Platform Group Microsoft Ltd
A tour of new features introducing LINQ. Agenda of LINQ Presentation We have features for every step of the way LINQ Fundamentals Anonymous Functions/Lambda.
Overview of Database Access in.Net Josh Bowen CIS 764-FS2008.
LINQ Programming in C# LINQ CSE Prof. Roger Crawfis.
 Introduction  What is LINQ  Syntax  How to Query  Example Program.
Entity Framework MIS 324 MIS 324 Professor Sandvig Professor Sandvig.
Chapter 15: Using LINQ to Access Data in C# Programs.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 7-1 David M. Kroenke’s Chapter Seven: SQL for Database Construction and.
Introduction to LINQ Lecture # 19 August Introduction How do you interrogate/manipulate data? What if you could do the work in a type-safe," string-free.
CPS120: Introduction to Computer Science Lecture 19 Introduction to SQL.
Ronnie Saurenmann Principal Architect Microsoft Switzerland.
LINQ and C# 3.0 Mads Torgersen Program Manager for the C# Language Microsoft Corporation.
LINQ: It’s Not Your Father’s Data Access Denny Boynton Anheuser-Busch Companies.
The.NET Language Integrated Query Project Anders Hejlsberg TLN306 Technical Fellow Microsoft Corporation.
© Satyam Computer Services Ltd POC Architecture 1 Confidential – Limited Circulation.
 Language Integrated Query  Make query a part of the language  Component of.NET Framework 3.5  Shipped with Visual Studio 2008.
LINQ Providers Or why.NET rules, and Java doesn’t Branimir Giurov SofiaDev.org UG Lead, C# MVP Freelance Software Developer
10/25/20151 Single Sign-On Web Service Supervisors: Viktor Kulikov Alexander Sherman Liana Lipstov Pavel Bilenko.
Getting Started Chapter One DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
Introduction to LINQ Chapter 11. Introduction Large amounts of data are often stored in a database—an organized collection of data. A database management.
Oct * Brad Tutterow. VS 2008.NET 3.5LINQ Entity Framework  The ADO.NET Entity Framework is part of Microsoft’s next generation of.NET technologies.
Data Driven Designs 99% of enterprise applications operate on database data or at least interface databases. Most common DBMS are Microsoft SQL Server,
Information Building and Retrieval Using MySQL Track 3 : Basic Course in Database.
SQL Basic. What is SQL? SQL (pronounced "ess-que-el") stands for Structured Query Language. SQL is used to communicate with a database.
CIS 375—Web App Dev II SQL. 2 Introduction SQL (Structured _______ Language) is an ANSI standard language for accessing databases.ANSI SQL can execute.
Course FAQ’s I do not have any knowledge on SQL concepts or Database Testing. Will this course helps me to get through all the concepts? What kind of.
Database Fundamental & Design by A.Surasit Samaisut Copyrights : All Rights Reserved.
AUC Technologies LINQ (Language Integrated Query) LINQ Presented By : SHAIKH SHARYAR JAVED Software Engineer (Daedalus Software Inc.) Technology Teacher.
CIS 375—Web App Dev II SQL. 2 Introduction SQL (Structured _______ Language) is an ANSI standard language for accessing databases.ANSI SQL can execute.
SQL Jan 20,2014. DBMS Stores data as records, tables etc. Accepts data and stores that data for later use Uses query languages for searching, sorting,
Language Integrated Query (LINQ). Data Access Programming Challenges Developers must learn data store-specific query syntax Multiple, disparate data stores.
© Keith Vander Linden, A language that doesn't affect the way you think about programming is not worth knowing. - Alan Perlis, “Epigrams in Computing”,
Oracle11g: PL/SQL Programming Chapter 3 Handling Data in PL/SQL Blocks.
1 Announcements Reading for next week: Chapter 4 Your first homework will be assigned as soon as your database accounts have been set up.  Expect an .
SQL. Originally developed by IBM Standardized in 80’s by ANSI and ISO Language to access relational database and English-like non-procedural Predominant.
LINQ Language Integrated Query LINQ1. LINQ: Why and what? Problem Many data sources: Relational databases, XML, in-memory data structures, objects, etc.
Ken Casada Developer Evangelist Microsoft Switzerland
7 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel 7.6 Advanced Select Queries SQL provides useful functions that.
Visual Basic 2010 How to Program © by Pearson Education, Inc. All Rights Reserved.
Chapter 11.  Large amounts of data are often stored in a database—an organized collection of data.  A database management system (DBMS) provides mechanisms.
SELECT, IMPLEMENT & USE TODAY’S ADVANCED BUSINESS SYSTEMS
Introducing the Microsoft® .NET Framework
Part 1: Overview of LINQ Intro to LINQ Presenter: PhuongNQK.
Query Methods Simple SQL Statements Start ….
© 2016, Mike Murach & Associates, Inc.
Hands on LINQ to SharePoint
Language Integrated Query: (LINQ) An introduction
ADO.NET Entity Framework
Introduction to LINQ Chapter 11 10/28/2015 Lect 4 CT1411.
Language Integrated Query (LINQ)
Introduction to LINQ Chapter 11.
Language Integrated Query (LINQ)
Database Processing: David M. Kroenke’s Chapter Seven:
Visual Studio + SQL Server Is Better
Handling Data in PL/SQL Blocks
LINQ to SQL Part 3.
Visual Studio 2008.
Entity Framework & LINQ (Language Integrated Query)
Presentation transcript:

By: Luis Carranco CIS764 - Fall 2008

 What is LINQ  Architecture  How does it work?  Samples/Demo  Why to use LINQ? 2

 Language Integrated Query for.NET  C# 3.0, VB 9.0  Unifies the way data can be retrieved from any object that implements the IEnumerable interface. ◦ Relational data ◦ XML ◦ Object collections 3

44 Image taken from LINQ for Visual C# Fabio Ferracchiati

5 LINQ to SQL SQL Server from c in db.Customers where c.City == "London" select c.CompanyName from c in db.Customers where c.City == "London" select c.CompanyName Execute (Iteration) SELECT CompanyName FROM Customer WHERE City = 'London' SELECT CompanyName FROM Customer WHERE City = 'London' SQL Query Rows Objects db.Customers.Add(c1); c2.City = “Seattle"; db.Customers.Remove(c3); db.Customers.Add(c1); c2.City = “Seattle"; db.Customers.Remove(c3); SubmitChanges() INSERT INTO Customer … UPDATE Customer … DELETE FROM Customer … INSERT INTO Customer … UPDATE Customer … DELETE FROM Customer … DML

6

 Only one syntax to retrieve data from any data source  Productivity. Focus on business  Compiler checks queries and type safety  Avoid SQL, XPath  Rich set of instructions to implement complex queries that support data aggregation, joins, sorting, and much more 7

 The LINQ Project Accessed 11/16/  LINQ for Visual C# Fabio Claudio Ferracchiati. 1st Edition. Apress.  Programming Microsoft LINQ. Paolo Pialors, Marco Russo. MSPress. 8

9