05 | Data Access with Entity Framework Bruno Terkaly | Technical Evangelist Bret Stateham | Technical Evangelist.

Slides:



Advertisements
Similar presentations
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Advertisements

© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Windows 8 (1) (2) (3) Windows 8 (1) (2) (3)
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Introduction to SQL Azure March 31, 2015 John Deardurff Website:
Feature: Purchase Requisitions - Requester © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Building Web APIs in Windows Azure Name Title Microsoft Corporation.
MIX 09 4/15/ :14 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Co- location Mass Market Managed Hosting ISV Hosting.
Windows 7 Training Microsoft Confidential. Windows ® 7 Compatibility Version Checking.
Multitenant Model Request/Response General Model.
Feature: Purchase Order Prepayments II © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Announcing Demo Announcing.
Feature: OLE Notes Migration Utility
Feature: Web Client Keyboard Shortcuts © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
 Pablo Castro Software Architect Microsoft Corporation TL08.
Session 1.
Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
 Rico Mariani Architect Microsoft Corporation.
Migrating to Windows Azure SQL Database Name Title Microsoft Corporation.
Windows Azure SQL Federation Name Title Microsoft Corporation.
WinHEC /22/2017 © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Connect with life Connect with life
Windows Azure Connect Name Title Microsoft Corporation.
NEXT: Overview – Sharing skills & code.
demo Receive Inventory Export Parse and Normalize.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Document Attachment –Replace OLE Notes © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Nick Scott | Dynamics CRM Consultant with BKD Technologies.
Building Social Games for Windows 8 with Windows Azure Name Title Microsoft Corporation.
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
SQL Server SQL Azure Visual Studio“Quadrant” SQL Server Modeling Services Entity Framework ADO.NET“M”/EDM Data Services …
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
demo Instance AInstance B Read “7” Write “8”

customer.
03 | Word Templates Brian Meier| Senior Lead Program Manager.
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
06 | HTTP Services with Web API Bruno Terkaly | Technical Evangelist Bret Stateham | Technical Evangelist.
03 | Express and Databases
demo Demo.
Cloud Data Dave Campbell Technical Fellow, Microsoft.
Advanced SQL Azure Database Name Title Microsoft Corporation.
02 | Introduction to Express Stacey Mulcahy | Technical Evangelist Rami Sayar | Technical Evangelist.
02 | Introduction to Express Framework Stacey Mulcahy | Technical Evangelist Rami Sayar | Technical Evangelist.
Feature: Void Historical/Open Transaction Updates © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
Windows Azure SQL Data Sync Name Title Microsoft Corporation.
projekt202 © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
The CLR CoreCLRCoreCLR © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks.
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
04 | Business Analyzer Brian Meier| Senior Lead Program Manager.
Demo Fest of Some Leading Store Apps Module 2.

03 | The Power of Visual Studio Jon Galloway | Technical Evangelist Christopher Harrison | Content Developer.
Data centric apps for web, desktop and mobile with EF5
Возможности Excel 2010, о которых следует знать
ADO.NEXT Advances in Data Access for 2008
Title of Presentation 12/2/2018 3:48 PM
8/04/2019 9:13 PM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Виктор Хаджийски Катедра “Металургия на желязото и металолеене”
WINDOWS AZURE A LAP AROUND PLATFORM THE Steve Marx
Шитманов Дархан Қаражанұлы Тарих пәнінің
Title of Presentation 5/24/2019 1:26 PM
日本初公開!? Vista の新機能を実演 とっちゃん わんくま同盟 7/23/2019 9:09 AM
Presentation transcript:

05 | Data Access with Entity Framework Bruno Terkaly | Technical Evangelist Bret Stateham | Technical Evangelist

Entity Data Models Developer Workflows WCF Data Services Module Overview

Entity Data Models

Object/Relational Mappers (ORMs) Relational DatabaseModel / Classes {;} Object/Relational Mapper

Entity Framework Designer Models Entity Framework Store Schema Definition Language (SSDL) Mapping Specification Language (MSL) Conceptual Schema Definition Language (CSDL) EDMX Relational DatabaseModel / Classes {;}

Entity Framework Architecture Entity Framework Entity Framework Data Providers (SQL Server…) Entity Client (ado.net / Entity SQL) Object Services (DbContext) Relational DatabaseModel / Classes {;}

Get it With NuGet. Got It? Entity Framework 6 is RTM EntityFramework.codeplex.com –Open Source –Nightly Builds –Accept pull requests from the community Installable from NuGet –Release versions –Pre-Release if you choose to include them

Entity Framework Data Providers Microsoft Ships support for –Microsoft SQL Server (Via the EntityFramework NuGet Package) –Microsoft SQL Server Compact Edition (Via the EntityFramework.SqlServerCompact NuGet Package) 3 rd Party Providers –DevArt dotConnect Data Providers (devart.com) Oracle MySQL SQLite others –Firebird (FirebirdSQL.org)

Developer Workflows

Entity Framework Workflows New Database Existing Database Use DesignerWrite Code Database First: Reverse engineer existing database Designer generates model Classes are generated off the model You can update the database You can modify the classes / mapping Model First: Create your model in the designer Database is generated from model Classes are generated from model Can update model Database updates replace old objects Code First: Create your classes in code Mappings are defined in code Database is generated from code Updates are done using “migrations” Code Second: (not an official name) Create your classes in code Use Entity Framework Power Tools Reverse engineer model in designer

Database First New Database Existing Database Use DesignerWrite Code Database First: Reverse engineer existing database Designer generates model Classes are generated off the model You can update the database You can modify the classes / mapping Model First: Create your model in the designer Database is generated from model Classes are generated from model Can update model Database updates replace old objects Code First: Create your classes in code Mappings are defined in code Database is generated from code Updates are done using “migrations” Code Second: (not an official name) Create your classes in code Use Entity Framework Power Tools Reverse engineer model in designer

DEMO Database First Workflow

Code First Workflow New Database Existing Database Use DesignerWrite Code Database First: Reverse engineer existing database Designer generates model Classes are generated off the model You can update the database You can modify the classes / mapping Model First: Create your model in the designer Database is generated from model Classes are generated from model Can update model Database updates replace old objects Code First: Create your classes in code Mappings are defined in code Database is generated from code Updates are done using “migrations” Code Second: (not an official name) Create your classes in code Use Entity Framework Power Tools Reverse engineer model in designer

DEMO Code First Workflow

WCF Data Services

OData Where Art Though? OData is a protocol for creating and consuming data APIs Check it out at OData.orgOData.org Provides a standard way to use REST to expose & consume data

WCF Data Services A convenient way to create OData services Can expose most any model as Odata Entity Framework is a great way to build your models WCF Data Services Available via NuGet –WCF Data Services Server – Microsoft.Data.Services –WCF Data Services Client – Microsoft.Data.Services.Client Access Data using URIs or a Client Library –OData Query String OptionsOData Query String Options

DEMO Creating and Consuming a WCF Data Service

©2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics 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.