Michael Pizzo Software Architect Data Programmability Microsoft Corporation.

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

Introduction to NHibernate By Andrew Smith. The Basics Object Relation Mapper Maps POCOs to database tables Based on Java Hibernate. V stable Generates.
Language Integrated Query (LINQ) Martin Parry Developer & Platform Group Microsoft Ltd
Chapter 10: Designing Databases
SQL Server Accelerator for Business Intelligence (SSABI)
Introduction to Databases
.NET Database Technologies: Open-Source Frameworks.
Chapter Information Systems Database Management.
File Systems and Databases
WCF RIA Services - Querying and Updating Data SILVERLIGHTSHOW.NET WEBINARS SERIES BRIAN NOYES, CHIEF ARCHITECT, IDESIGN INC 2 FEB 2011.
A Guide to SQL, Seventh Edition. Objectives Understand the concepts and terminology associated with relational databases Create and run SQL commands in.
File Systems and Databases Hachim Haddouti
The Microsoft Technical Roadshow 2007 Advances for Data in VS “Orcas” Mike Taulty Developer & Platform Group Microsoft Ltd
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Information systems and databases Database information systems Read the textbook: Chapter 2: Information systems and databases FOR MORE INFO...
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
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.
Object Oriented Databases by Adam Stevenson. Object Databases Became commercially popular in mid 1990’s Became commercially popular in mid 1990’s You.
Week 1 Lecture MSCD 600 Database Architecture Samuel ConnSamuel Conn, Asst. Professor Suggestions for using the Lecture Slides.
Entity Framework Code First End to End
Databases and LINQ Visual Basic 2010 How to Program 1.
Introduction –All information systems create, read, update and delete data. This data is stored in files and databases. Files are collections of similar.
LINQ Boot Camp ADO.Net Entity Framework Presenter : Date : Mahesh Moily Nov 26, 2009.
Entity Framework, a quickstart Florin−Tudor Cristea, Microsoft Student Partner.
Data Access Patterns Some of the problems with data access from OO programs: 1.Data source and OO program use different data modelling concepts 2.Decoupling.
Eric Nelson (or )
NHibernate in Action Web Seminar at UMLChina By Pierre Henri Kuaté 2008/08/27
Introduction to Accounting Information Systems
ADO.NET A2 Teacher Up skilling LECTURE 3. What’s to come today? ADO.NET What is ADO.NET? ADO.NET Objects SqlConnection SqlCommand SqlDataReader DataSet.
Overview of Data Access MacDonald Ch. 15 MIS 324 Professor Sandvig.
Physical Database Design Chapter 6. Physical Design and implementation 1.Translate global logical data model for target DBMS  1.1Design base relations.
Introduction to Database Systems Fundamental Concepts Irvanizam Zamanhuri, M.Sc Computer Science Study Program Syiah Kuala University Website:
Entity Framework Overview. Entity Framework A set of technologies in ADO.NET that support the development of data-oriented software applications A component.
.NET Database Technologies: Data Models and Patterns.
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.
Object Oriented Analysis and Design 1 Chapter 7 Database Design  UML Specification for Data Modeling  The Relational Data Model and Object Model  Persistence.
Oracle Data Integrator Transformations: Adding More Complexity
Objectives In this lesson, you will learn to: *Identify the need for ADO.NET *Identify the features of ADO.NET *Identify the components of the ADO.NET.
6.1 © 2010 by Prentice Hall 6 Chapter Foundations of Business Intelligence: Databases and Information Management.
Entity Framework Code First – Beyond the Basics Sergey Barskiy, Magenic Microsoft MVP – Data Platform Principal Consultant.
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.
Commercial RDBMSs Access and Oracle. Access DBMS Architchecture  Can be used as a standalone system on a single PC: -JET Engine -Microsoft Data Engine.
Language Integrated Query (LINQ). Data Access Programming Challenges Developers must learn data store-specific query syntax Multiple, disparate data stores.
Ventsislav Popov Crossroad Ltd.. 1. ASP.NET Data Source Controls  SqlDataSource  EntityDataSource  ObjectDataSource 2. Entity Data Model and ADO.NET.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
Understanding Databases Lesson 6. Objective Domain Matrix Skills/ConceptsMTA Exam Objectives Understanding Relational Database Concepts Understand relational.
Entity Framework Code First – Beyond the Basics Sergey Barskiy, Magenic Microsoft MVP – Data Platform Magenic, Principal Consultant Level: Introductory.
Chapter 18 Object Database Management Systems. Outline Motivation for object database management Object-oriented principles Architectures for object database.
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.
uses of DB systems DB environment DB structure Codd’s rules current common RDBMs implementations.
SQL Basics Review Reviewing what we’ve learned so far…….
1 Copyright © 2008, Oracle. All rights reserved. Repository Basics.
Introduction to Entity framework
Building Tabular Models
Introduction to Entity Framework
Information Systems Database Management
Entity Framework By: Casey Griffin.
Chapter 4 Relational Databases
ADO.NET Entity Framework Marcus Tillett
ADO.NET Entity Framework
File Systems and Databases
Entity Framework Core.
Language Integrated Query (LINQ)
Data Model.
ADO.NET Entity Framework
.NET Framework V3.5+ & RESTful web services
Presentation transcript:

Michael Pizzo Software Architect Data Programmability Microsoft Corporation

LINQ to Relational LINQ to SQL LINQ to Entities LINQ to DataSet Summary

Design Points Rapid Development against SQL Database Direct Mapping to SQL Server Schema Mappings expressed in Attributes or XML file "Just Work" for common scenarios Execute when needed Naming Conventions Business Logic Custom Insert/Update/Delete operations Minimally Intrusive object model Provide Customization, Optimizations where required Targets: Microsoft SQL Server RTM: Microsoft Visual Studio 2008 RTM

Direct Mapping Each class maps to a single SQL Schema Object Table, View Stored Procedure, Table Valued Function Simple renaming of Tables, Columns Foreign Keys can be expressed as Relationships Properties to navigate in query, results Inheritance Multiple Classes in a Hierarchy can map to a single Table/View/Stored Proc/TVF with a discriminator column

Customization Business Logic Partial classes for generated Objects Add Methods, non-persistent members, etc. Business Logic through Partial methods based on naming conventions Update Logic Implement partial methods in derived Class Call Stored Procedures or invoke custom logic Optimizations Loading Options "Span" related information ObjectTrackingEnabled DeferredLoadingEnabled Compiled Query Save overhead of SQL generation from Language Expression

Design Points Flexible Mapping to Existing Relational Schema Well defined Conceptual model Share common model across products (Reporting, Analysis, etc…) Declarative Mapping between Application and Store Allows Storage Schema and Application to evolve independently Explicit Operations Server interactions should be explicit Build implicit logic on top of explicit operations Common Textual "EntitySQL" Language for Ad-Hoc queries Targets: Microsoft SQL Server and third-party databases RTM: Microsoft Visual Studio 2008 Update H1CY08

Flexible Mapping Mapping a single class to multiple tables/views Mapping to different types of inheritance Single Table per Class Hierarchy Separate Table for each Class in a Hierarchy Shared Table for Base Class members in a Hierarchy Complex (composite) types i.e., Street, City, Region, and Zip as "Address" Directly mapping Many:Many relationships Mapping to an arbitrary Query Store Query Expose arbitrary store query as a storage Table Entity Query Express mapping as EntitySQL against storage schema

Customization Business Logic Partial Classes, Events, Partial Methods Update Logic Generated Update Views Declarative stored procedures Optimizations "Span" related members NoTracking Extensibility Partitioning of Metadata Flexible Runtime Mapping Metadata Pluggability

Disconnected Cache Offline/Remote Data Aggregation Application Data All with Change Tracking Queryable Filter, Projection Joins Across Tables Other in-Memory sources Local expressions All through Common LINQ syntax RTM: Microsoft Visual Studio 2008 RTM

Untyped DataSet Call AsEnumerable() on DataTable Reference Fields by Name Use Field (columnName) Project out fields for strongly typed result Typed DataSet Use strongly typed accessors var query = from row in myDataSet.Tables["Customers"].AsEnumerable() where row.Field ("City") == "London" select new { row.Field ("CustomerID"), row.Field ("ContactName") } ; var query = from customer in northwind.Customers where customer.City == "London" select customer;

LINQ to SQL – Strongly Typed Database Emphasis on rapid application development Direct mapping to Microsoft SQL Server family of databases Release in Microsoft Visual Studio 2008 RTM LINQ to Entities – Flexible mapping to existing Schema Focus on enterprise-grade data scenarios Flexible Mapping to Microsoft SQL Server and third-party databases Release in Microsoft Visual Studio 2008 update CTPs on top of Microsoft Visual Studio 2008 Betas/RTM LINQ to DataSet – In-Memory Cache w/Change Tracking All the scenarios where DataSet is useful today Offline, Disconnected, Aggregation Change Tracking..Plus support for Query Operations Strongly typed or Untyped DataSet Support Release in Microsoft Visual Studio 2008 RTM