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

Writing Clean & efficient data access code with ADO.NET ENTITY FRAMEWORK

Feb 13, 2016

Download

Documents

luella

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
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 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]

Page 2: Writing Clean & efficient data access code with ADO.NET ENTITY FRAMEWORK

I am unhappy …

Page 3: Writing Clean & efficient data access code with ADO.NET ENTITY FRAMEWORK

Entity Framework???Object Relational Mapper

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

STORAGECONCEPTUAL

Page 4: Writing Clean & efficient data access code with ADO.NET ENTITY FRAMEWORK

More than O/R mapper

OSLO

SQL SERVER REPORTING SERVICES

SQL SERVER ANALYSIS SERVICES

ADO.NET DATA SERVICES

AZURE

Page 5: Writing Clean & efficient data access code with ADO.NET ENTITY FRAMEWORK

Entity Framework Architecture

Page 6: Writing Clean & efficient data access code with ADO.NET ENTITY FRAMEWORK

Creating EDM

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

DEMO

Page 8: Writing Clean & efficient data access code with ADO.NET ENTITY FRAMEWORK

Querying via EntityClient

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

DEMO

Page 9: Writing Clean & efficient data access code with ADO.NET ENTITY FRAMEWORK

Querying via ObjectQuery

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

DEMO

Page 10: Writing Clean & efficient data access code with ADO.NET ENTITY FRAMEWORK

Querying via LINQ To Entities

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

DEMO

Page 11: Writing Clean & efficient data access code with ADO.NET ENTITY FRAMEWORK

Tracking with ObjectStateManager

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

DEMO

Page 12: Writing Clean & efficient data access code with ADO.NET ENTITY FRAMEWORK

CHANGING GEAR

Moving to Advanced Concepts

Page 13: Writing Clean & efficient data access code with ADO.NET ENTITY FRAMEWORK

Tracing, Concurrency, Lazy Loading, Inheritance

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

DEMO

Page 14: Writing Clean & efficient data access code with ADO.NET ENTITY FRAMEWORK

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…

Page 17: Writing Clean & efficient data access code with ADO.NET ENTITY FRAMEWORK

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

Page 18: Writing Clean & efficient data access code with ADO.NET ENTITY FRAMEWORK

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

Page 19: Writing Clean & efficient data access code with ADO.NET ENTITY FRAMEWORK

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!

Page 20: Writing Clean & efficient data access code with ADO.NET ENTITY FRAMEWORK

Contact Blog Addresshttp://nirajrules.wordpress.com

Email [email protected]

Page 21: Writing Clean & efficient data access code with ADO.NET ENTITY FRAMEWORK

© 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.