© Logica 2008. All rights reserved ADO vNext LINQ LINQ to SQL Entity Framework Freek Leemhuis

Slides:



Advertisements
Similar presentations
Svetlin Nakov Director Training and Consulting Activities National Academy for Software Development (NASD) ASP.NET 3.5 New Features.
Advertisements

Satisfy Your Technical Curiosity ADO.NET vNext The Entity Data Model, Object Services, and LINQ Bob Beauchemin Director of Developer Resources, SQLskills.
LINQ 2 SQL By, Shahzad Sarwar.
The Microsoft Technical Roadshow 2007 Language Enhancements and LINQ Daniel Moth Developer & Platform Group Microsoft Ltd
Language Integrated Query (LINQ) Martin Parry Developer & Platform Group Microsoft Ltd
Sofia, Bulgaria | 9-10 October Datasets, Business Objects or Just LINQ Sahil Malik Prerequisites for this presentation: 1).NET 2) Lots.
17. Data Access ADO.Net Architecture New Features of ADO.NET
Programming with ADO.NET By Sam Nasr April 27, 2004 Programming with ADO.NET By Sam Nasr April 27, 2004.
.NET 3.5 SP1 New features Enhancements Visual Studio 2008 SP1 New features Enhancements Additional features/enhancements.
Deep Dive into LINQ Eran Sharabi.NET Development Team Leader JohnBryce Training
Michael Pizzo Software Architect Data Programmability Microsoft Corporation.
Visual Studio 2008 and the.NET Framework v3.5 Gill Cleeren Microsoft Regional Director.
Linq to SQL Chalk Talk Freek Leemhuis Rob Huibers Logica.
.NET 3.5 – Mysteries. NetFx Evolution NetFx 1.0 C# 1.0, VB 7.0, VS.NET NetFx 1.1 C# 1.1, VB 7.1, VS 2003 NetFx 2.0 C# 2.0, VB 8.0, VS 2005 NetFx 3.0 C#
ASP.NET 3.5 New Features. 2 Agenda What's New in.NET Framework 3.5? Visual Studio 2008 Enhancements LINQ (Language Integrated Query) New ASP.NET Server.
LinqToSharePoint SandBoxed Solution Shakir Majeed Khan
Damien Guard (BSc, MBCS) Guernsey Software Developer Forum Language Integrated Query:
.NET Framework V3.5+ & RESTful web services Mike Taulty Developer & Platform Group Microsoft Ltd
The Microsoft Technical Roadshow 2007 Advances for Data in VS “Orcas” Mike Taulty Developer & Platform Group Microsoft Ltd
C# 3.0 and LINQ Pavel Yosifovich CTO, Hi-Tech College
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.
Discover, Master, InfluenceSlide 1 SQL Server Compact Edition and the Entity Framework Rob Sanders Readify.
Introduction to ADO Entity Framework ir Denis VOITURON Source:
Eric Nelson Developer & Platform Group Microsoft Ltd
 Introduction  What is LINQ  Syntax  How to Query  Example Program.
Reflection IT LINQ & Entity Framework Fons Sonnemans (Trainer)
LINQ Boot Camp ADO.Net Entity Framework Presenter : Date : Mahesh Moily Nov 26, 2009.
Entity Framework, a quickstart Florin−Tudor Cristea, Microsoft Student Partner.
ADO.NET ENTITY FRAMEWORK Mike Taulty Developer & Platform Group Microsoft UK
Intro to C#.net and EF Ilan Shimshoni. The Three Faces of ADO.NET The connected layer – Directly connecting to the DB The disconnected layer – Using datasets.
ADO.NET DATA SERVICES Mike Taulty Developer & Platform Group Microsoft UK
Overview of Data Access MacDonald Ch. 15 MIS 324 Professor Sandvig.
Entity Framework Overview. Entity Framework A set of technologies in ADO.NET that support the development of data-oriented software applications A component.
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.
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.
ADO.NET Entity Framework Mike Taulty Developer & Platform Group Microsoft Ltd
C# 3.0 and LINQ Pavel Yosifovich CTO, Hi-Tech College
AUC Technologies LINQ (Language Integrated Query) LINQ Presented By : SHAIKH SHARYAR JAVED Software Engineer (Daedalus Software Inc.) Technology Teacher.
Language Integrated Query (LINQ). Data Access Programming Challenges Developers must learn data store-specific query syntax Multiple, disparate data stores.
By: Luis Carranco CIS764 - Fall  What is LINQ  Architecture  How does it work?  Samples/Demo  Why to use LINQ? 2.
C#: Future Directions in Language Innovation Anders Hejlsberg TLN307 Technical Fellow Microsoft Corporation.
Applied Linq Putting Linq to work Introducing… Class-A Kennisprovider Microsoft development Training Coaching Alex Thissen Trainer/coach.
Damien Guard (BSc, MBCS) Guernsey Software Developer Forum Language Integrated Query:
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
ADO.NET 3.0 – Entity Data Model Gert E.R. Drapers Chief Software Architect Visual Studio Team Edition for Database Professionals Microsoft Corporation.
Language Integrated Query Mike Taulty Developer & Platform Group Microsoft Ltd
2 Behind every great site, there is great data Eric Nelson Developer Evangelist Microsoft UK
Part 1: Overview of LINQ Intro to LINQ Presenter: PhuongNQK.
Introduction to Database Processing with ADO.NET
Introduction to Entity Framework
LINQ for SQL SQL Saturday May 2009 David Fekke.
Language Integrated Query: (LINQ) An introduction
Overview of Data Access
Learn. Imagine. Build. .NET Conf
9/20/2018 2:13 PM Visual Studio развитие технологий доступа к данным на платформе Microsoft.NET Роман Здебский Эксперт по технологиям разработки.
ADO.NET Entity Framework
Overview of Data Access
ADO.NEXT Advances in Data Access for 2008
An Introduction to Entity Framework
Language Integrated Query (LINQ)
Language Integrated Query (LINQ)
Advances for Data in VS “Orcas”
Advances for Data in VS “Orcas”
Технологии доступа к данным на платформе Microsoft.NET
ADO.NET Entity Framework
.NET Framework V3.5+ & RESTful web services
Presentation transcript:

© Logica All rights reserved ADO vNext LINQ LINQ to SQL Entity Framework Freek Leemhuis

Microsoft en ORM – de historie WinFS

Defining LINQ and LINQ to SQL Bestaat uit taal uitbreidingen in C# 3.0 en VB 9.0 Uniforme manier om queries uit te voeren op objecten Een framework (OR mapper) voor het mappen van data classes op SQL Server tables, views en stored procedures. LINQ to SQL LINQ

LINQ parts C# 3.0C# 3.0 VB 9.0VB 9.0 OthersOthers LINQLINQ Interne query engine LINQ to Objects.Net APIs LINQ to Datasets LINQ to XML Providers LINQ to SQL LINQ to Entities IQueryableIEnumerable

Taaluitbreidingen Extension methods Partial Methods Lambda expressions Anonymous types Object initializers Local variable inference Linq keywords and operators

Extention methods Local variable inference Anonymous types Demo

De basis van LINQ LINQ queries gaan over elementen uit sequences Een sequence is een object dat de IEnumerable interface implementeert Bijvoorbeeld: String[] namen = {“Maarten”, “Ralph”, “Freek”}; Selectie = namen.Where(n=>n.Contains(“a”)).Orderby(n=>n).Select(n=>n.ToUpper());

IEnumerable

Ienumerable : enumeratie met yield return

Comprehension Syntax Demo

Query voorbeelden Query composition var filtered = names.Where (n => n.Contains ("a")); var sorted = filtered.OrderBy (n => n); var query = sorted.Select (n => n.ToUpper( ));

LINQ to XML Demo

Data Access met LINQ LINQ to SQL

Object Relational Impedance Mismatch Objecten Objects != Data Relationele Data

Verschillen tussen LINQ to SQL en het Entity Framework

Data Access met ADO.Net SqlConnection c = new SqlConnection(…); c.Open(); SqlCommand cmd = new c.Name, c.Name, c.Phone FROM Customers c FROM Customers c WHERE c.City WHERE c.City "London“); DataReader dr = c.Execute(cmd); while (dr.Read()) { string name = dr.GetString(0); string name = dr.GetString(0); string phone = dr.GetString(1); string phone = dr.GetString(1); DateTime date = dr.GetDateTime(2); DateTime date = dr.GetDateTime(2);}dr.Close(); Data Access met klassiek ADO.Net Queries in quotes Loosely bound arguments Loosely typed result sets No compile time checks

public class Customer { … } public class Northwind: DataContext { public Table Customers; public Table Customers; …} Northwind db = new Northwind(…); var contacts = from c in db.Customers from c in db.Customers where c.City == "London" where c.City == "London" select new { c.Name, c.Phone }; select new { c.Name, c.Phone }; Data Access met LINQ to SQL Classes describe data Strongly typed connection Integrated query syntax Strongly typed results Tables are like collections

Linq to SQL : Mapping DB to Objects Database Table View Column Relationship Stored Procedure DataContext Class + Collection Property Nested Collection Method

LINQ to SQL Architectuur from c in Context.Customers Where c.LastName. StartsWith(“Niks”) select new { c.Name, c.FirstName}; from c in Context.Customers Where c.LastName. StartsWith(“Niks”) select new { c.Name, c.FirstName}; select Name, FirstName from customers where Lastname like ‘Niks%' LINQ to SQL DataContext SQL Server Customer c = new Customer(); Customer.LastName = “Bos”; Customers.InsertOnSumbit(c); Context.SubmitChanges(); Dynamische SQL of Stored Procedure ApplicatieApplicatie Services: - Change tracking - Concurrency control - Object identity

LINQ to SQL No April 2015Title of Presentation Demo

Het ADO.Net Entity Framework Conceptual Mapping Logica l Object Model Relational Data Entity Table CSDL MSL SSDL Table

Entity Relationship Model Dr. Peter Chen, 1970

Entity Framework Layers Conceptual Mapping Logical Entity Framework Architecture CSDL Entity SQL MSL SSDL Entity Client Entity SQL Object Services Object Query LINQ to Entities

Lange termijn visie op data access

Resources Starten met Linq Linq ninjas LINQPad

Books