writing clean & efficient data access code with ado.net entity framework

21
Writing Clean & efficient data access code with ADO.NET ENTITY FRAMEWORK Niraj Bhatt MVP | ASP.NET http://nirajrules.wordpress.com | [email protected]

Upload: luella

Post on 13-Feb-2016

48 views

Category:

Documents


5 download

DESCRIPTION

Writing Clean & efficient data access code with ADO.NET ENTITY FRAMEWORK. Niraj Bhatt MVP | ASP.NET http://nirajrules.wordpress.com | [email protected]. I am unhappy …. Entity Framework???. Object Relational Mapper - PowerPoint PPT Presentation

TRANSCRIPT

Writing Clean & efficient data access code withADO.NET ENTITY FRAMEWORK

Niraj BhattMVP | ASP.NEThttp://nirajrules.wordpress.com | [email protected]

Entity Framework???Object Relational Mapper

Bridges the impedance mismatch between conceptual (object) & storage (relational) world.

STORAGECONCEPTUAL

More than O/R mapper

OSLO

SQL SERVER REPORTING SERVICES

SQL SERVER ANALYSIS SERVICES

ADO.NET DATA SERVICES

AZURE

Entity Framework Architecture

Creating EDM

Required Software for Demos: VS.NET 2008 SP1, .NET 3.5 SP1, SQL SERVER 2005 SP2

DEMO

Querying via EntityClient

Required Software for Demos: VS.NET 2008 SP1, .NET 3.5 SP1, SQL SERVER 2005 SP2

DEMO

Querying via ObjectQuery

Required Software for Demos: VS.NET 2008 SP1, .NET 3.5 SP1, SQL SERVER 2005 SP2

DEMO

Querying via LINQ To Entities

Required Software for Demos: VS.NET 2008 SP1, .NET 3.5 SP1, SQL SERVER 2005 SP2

DEMO

Tracking with ObjectStateManager

Required Software for Demos: VS.NET 2008 SP1, .NET 3.5 SP1, SQL SERVER 2005 SP2

DEMO

CHANGING GEAR

Moving to Advanced Concepts

Tracing, Concurrency, Lazy Loading, Inheritance

Required Software for Demos: VS.NET 2008 SP1, .NET 3.5 SP1, SQL SERVER 2005 SP2

DEMO

What you can expect in V2?Better integration with rest of .NET stack

WPF, WCF, WF, …PI Support (Persistence Ignorance)N-Tier SupportFlip switch for Lazy LoadingTable Value FunctionsImproved Tracing…

ReferencesEF V2http://mschnlnine.vo.llnwd.net/d1/pdc08/WMV-HQ/TL20.wmv

EF Automatic Lazy Loading http://www.singingeels.com/Articles/Entity_Framework_and_Lazy_Loading.aspx

EF 3rd Party Providershttp://www.sybase.com/detail?id=1057559

http://pgfoundry.org/frs/shownotes.php?release_id=1230 http://sqlite.phxsoftware.com/ http://devart.com/news/2008/directs475.html

Reference Blogshttp://blogs.msdn.com/jkowalski/default.aspxhttp://johnpapa.net/http://www.thedatafarm.com/blog/http://blogs.msdn.com/dsimmons/default.aspxhttp://blogs.msdn.com/adonet/default.aspx

Feedback / QnAYour Feedback is Important!Please take a few moments to fill out our

online feedback form

Use the Question Manager on LiveMeeting to ask your questions now!

Contact Blog Addresshttp://nirajrules.wordpress.com

Email [email protected]

© 2007 Microsoft Corporation. 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.