Writing Clean & efficient data access code with ADO.NET ENTITY FRAMEWORK
description
Transcript of Writing Clean & efficient data access code with ADO.NET ENTITY FRAMEWORK
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
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
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…
ReferencesTSQL vs. ESQLhttp://msdn.microsoft.com/en-us/library/bb738573.aspx
EF Overviewhttp://www.scip.be/index.php?Page=ArticlesNET12#EntitySQL
eSqlBlast http://code.msdn.microsoft.com/esql/Release/ProjectReleases.aspx?ReleaseId=991
ReferencesEF N-Tier Support Discussionhttp://blogs.msdn.com/efdesign/archive/2008/11/20/n-tier-improvements-for-entity-framework.aspx
EF Performancehttp://blogs.msdn.com/adonet/archive/2008/02/04/exploring-the-performance-of-the-ado-net-entity-framework-part-1.aspx
http://blogs.msdn.com/adonet/archive/2008/06/20/how-to-use-a-t4-template-for-view-generation.aspx
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.