MSDN Roadshow Session 3 - Building Rich Internet UI with Silverlight 2
MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services
-
Upload
ukdpe -
Category
Technology
-
view
3.532 -
download
0
description
Transcript of MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services
![Page 1: MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services](https://reader034.fdocuments.us/reader034/viewer/2022051411/545d4493af7959cd098b4a75/html5/thumbnails/1.jpg)
![Page 2: MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services](https://reader034.fdocuments.us/reader034/viewer/2022051411/545d4493af7959cd098b4a75/html5/thumbnails/2.jpg)
![Page 3: MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services](https://reader034.fdocuments.us/reader034/viewer/2022051411/545d4493af7959cd098b4a75/html5/thumbnails/3.jpg)
Eric NelsonDeveloper & Platform GroupMicrosoft [email protected] http://blogs.msdn.com/ericnel http://twitter.com/ericnel
![Page 4: MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services](https://reader034.fdocuments.us/reader034/viewer/2022051411/545d4493af7959cd098b4a75/html5/thumbnails/4.jpg)
RelationalImproved
XMLUDTs
NewFilestreamHierarchy IDDate & TimeSpatial dataSparse columns and wide tablesFiltered indexesChange trackingTable parameters to SP callsResource governorSP control and monitoringDatabase compressionDeclarative management...
SQL Server Integration Services
VSTA replaces VSAADO.NETPerformanceMerge...
Reporting Services“IIS free”TablixNew designer...
BICube designDesign alertsPerformance...
![Page 5: MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services](https://reader034.fdocuments.us/reader034/viewer/2022051411/545d4493af7959cd098b4a75/html5/thumbnails/5.jpg)
![Page 6: MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services](https://reader034.fdocuments.us/reader034/viewer/2022051411/545d4493af7959cd098b4a75/html5/thumbnails/6.jpg)
![Page 7: MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services](https://reader034.fdocuments.us/reader034/viewer/2022051411/545d4493af7959cd098b4a75/html5/thumbnails/7.jpg)
What is it?Technique for working with relational tables as if they were objects in memoryIntention is to hide away the complexity of the underlying tables and give a uniform way of working with data
Why use it?ProductivityRetain database independence
NotesThere are many ORMs for .NET developers already in existence. E.g.
LLBLGen Pro http://www.llblgen.com/Nhibernate http://www.hibernate.org/343.htmlEntitySpaces http://www.entityspaces.net/Portal/Default.aspx
Objects vs Classes vs Entities
![Page 8: MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services](https://reader034.fdocuments.us/reader034/viewer/2022051411/545d4493af7959cd098b4a75/html5/thumbnails/8.jpg)
![Page 9: MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services](https://reader034.fdocuments.us/reader034/viewer/2022051411/545d4493af7959cd098b4a75/html5/thumbnails/9.jpg)
What is it?Tools and services to create an Entity Data Model
EDM gives ORM to SQL Server, Oracle, DB2 etcTools and services for consuming an Entity Data Model
Why use it?ProductivityComplex mapping between entities and database tablesWorks great with ADO.NET Data Services
NotesStrategic but just released...
![Page 10: MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services](https://reader034.fdocuments.us/reader034/viewer/2022051411/545d4493af7959cd098b4a75/html5/thumbnails/10.jpg)
Application modelMapped to a persistence store
Comprised of three layers:Conceptual (CSDL)Mapping (MSL)Storage (SSDL)
Database agnosticComprised of:
EntitiesAssociationsFunctions
Conceptual
Mapping
Storage
Entity Data Model
![Page 11: MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services](https://reader034.fdocuments.us/reader034/viewer/2022051411/545d4493af7959cd098b4a75/html5/thumbnails/11.jpg)
![Page 12: MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services](https://reader034.fdocuments.us/reader034/viewer/2022051411/545d4493af7959cd098b4a75/html5/thumbnails/12.jpg)
Entity ClientEntity SQL
Object ServicesEntity SQLLINQ To Entities
![Page 13: MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services](https://reader034.fdocuments.us/reader034/viewer/2022051411/545d4493af7959cd098b4a75/html5/thumbnails/13.jpg)
Familiar ADO.NET object model:EntityCommandEntityConnectionEntityDataReaderEntityParameterEntityTransaction
Text-based resultsRead-onlyUses Entity SQL
![Page 14: MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services](https://reader034.fdocuments.us/reader034/viewer/2022051411/545d4493af7959cd098b4a75/html5/thumbnails/14.jpg)
Queries materialized as ObjectsObjectContextObjectQuery<T>
Built on top of Entity ClientTwo query options:
Entity SQLLINQ
Runtime services:Unit of workIdentity trackingEager/explicit loading
![Page 15: MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services](https://reader034.fdocuments.us/reader034/viewer/2022051411/545d4493af7959cd098b4a75/html5/thumbnails/15.jpg)
LINQ To Entities
Object Services
Entity SQL
Entity Client
ADO.NET Provider
![Page 16: MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services](https://reader034.fdocuments.us/reader034/viewer/2022051411/545d4493af7959cd098b4a75/html5/thumbnails/16.jpg)
![Page 17: MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services](https://reader034.fdocuments.us/reader034/viewer/2022051411/545d4493af7959cd098b4a75/html5/thumbnails/17.jpg)
Vendor DB SupportMicrosoft SQL Server
Oracle Sample, Generic SampleDevart Oracle, MySQL, PostgressPhoenix SQLiteSybase SQLAnywhereNpgsql PostgreSQLIBM DB2, Informix Dynamic ServerMySQL AB MySQLOpenLink Many via OpenLink ODBC or
JDBCDataDirect Oracle, Sybase, SQL Server,
DB2Firebird Firebird
![Page 18: MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services](https://reader034.fdocuments.us/reader034/viewer/2022051411/545d4493af7959cd098b4a75/html5/thumbnails/18.jpg)
LINQ to SQL LINQ to Entities
Database Support
SQL Server Many
Object Relational Mapping Capabilities
Simple Complex
Requires Attributed .NET Code
No Yes
Status Released Just Released
![Page 19: MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services](https://reader034.fdocuments.us/reader034/viewer/2022051411/545d4493af7959cd098b4a75/html5/thumbnails/19.jpg)
LINQ to SQLvar products = from prod in db.Product where prod.Color == "Blue" select prod;
LINQ to Entitiesvar products = from prod in db.Product where prod.Color == "Blue" select prod;
In general – LINQ to Entities does more – but not always!Only migration that will ever happen is LINQ to SQL migration to LINQ to Entities
![Page 20: MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services](https://reader034.fdocuments.us/reader034/viewer/2022051411/545d4493af7959cd098b4a75/html5/thumbnails/20.jpg)
![Page 21: MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services](https://reader034.fdocuments.us/reader034/viewer/2022051411/545d4493af7959cd098b4a75/html5/thumbnails/21.jpg)
What is it?HTTP access to an object model exposed as RESTful Web ServicesData and/or methodsData returned using ATOM or JSONRead/Write
Why use it?Easy to expose data over the internet/intranet accessible by any client
![Page 22: MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services](https://reader034.fdocuments.us/reader034/viewer/2022051411/545d4493af7959cd098b4a75/html5/thumbnails/22.jpg)
Data Access LayerData Access LayerEntity Entity
FrameworkFramework
Relational
database Other sources
Data Services RuntimeData Services Runtime
Hosting/HTTP ListenerHosting/HTTP Listener
CustomCustom
IQueryable/IEnumerableIQueryable/IEnumerable [+ IUpdatable][+ IUpdatable]
HTTPHTTP
![Page 23: MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services](https://reader034.fdocuments.us/reader034/viewer/2022051411/545d4493af7959cd098b4a75/html5/thumbnails/23.jpg)
![Page 24: MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services](https://reader034.fdocuments.us/reader034/viewer/2022051411/545d4493af7959cd098b4a75/html5/thumbnails/24.jpg)
![Page 25: MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services](https://reader034.fdocuments.us/reader034/viewer/2022051411/545d4493af7959cd098b4a75/html5/thumbnails/25.jpg)
http://blogs.msdn.com/UKDevEvents
Post event resources for all Microsoft UK developer focused sessions
The teamEric Nelson http://blogs.msdn.com/ericnel Mike Ormond http://blogs.msdn.com/mikeormond Mike Taulty http://mtaulty.com
![Page 26: MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services](https://reader034.fdocuments.us/reader034/viewer/2022051411/545d4493af7959cd098b4a75/html5/thumbnails/26.jpg)
© 2008 Microsoft Ltd. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the
date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
![Page 27: MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services](https://reader034.fdocuments.us/reader034/viewer/2022051411/545d4493af7959cd098b4a75/html5/thumbnails/27.jpg)
![Page 28: MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services](https://reader034.fdocuments.us/reader034/viewer/2022051411/545d4493af7959cd098b4a75/html5/thumbnails/28.jpg)
![Page 29: MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services](https://reader034.fdocuments.us/reader034/viewer/2022051411/545d4493af7959cd098b4a75/html5/thumbnails/29.jpg)
Entity Entity ClientClient
Entity Entity Data Data ModelModel
SSDLSSDL
SQLSQL
OraclOraclee
OtherOther
CSDLCSDL MSLMSL
Object Object ServiceService
ss
ESQLESQL““select o from select o from
orders”orders”
LINQ to LINQ to EntitiesEntities
““from o in from o in orders...”orders...”
ADO.NET Data ADO.NET Data servicesservices
Prov
ider
Prov
ider
Prov
ider
Prov
ider
Prov
ider
Prov
ider
SSDLSSDL
SSDLSSDL
HTTPHTTP CustomCustom
InterceptorInterceptorss
(Query, (Query, Update)Update)
Service Service Operations Operations (Methods)(Methods)
Entity Entity Data Data ModelModel
![Page 30: MSDN Roadshow Session 1 - ADO.NEXT – Entity Framework & Data Services](https://reader034.fdocuments.us/reader034/viewer/2022051411/545d4493af7959cd098b4a75/html5/thumbnails/30.jpg)
REpresentational State TransferServer-side resources identified by a URIAccess is over HTTP, verb tied to action
GET to read the value of a resourcePOST to create a new resourcePUT to update an existing resourceDELETE to delete a resource
Returned data is “plain” – XML or JSON
Is this “the death of SOAP”?