Stuart Leitch www.stuartleitch.com “Code First” & DbContext.

Slides:



Advertisements
Similar presentations
Satisfy Your Technical Curiosity ADO.NET vNext The Entity Data Model, Object Services, and LINQ Bob Beauchemin Director of Developer Resources, SQLskills.
Advertisements

Introduction to NHibernate By Andrew Smith. The Basics Object Relation Mapper Maps POCOs to database tables Based on Java Hibernate. V stable Generates.
OCNG OpenClinica Next Generation 1. © What Is OCNG? OpenClinica Next Generation A Test Bed For New Technology Developed Independently of OC 3.x Keeping.

Michael Pizzo Software Architect Data Programmability Microsoft Corporation.
NHibernate Object/Relational Persistence for.NET.
Change the Rules Distributed data apps with.NET Zlatko Knezevic Developer Evangelist Microsoft
.NET Database Technologies: Open-Source Frameworks.
Jeff Derstadt Senior Development Lead Microsoft Corporation Patterns & Architecture.
Virtual techdays INDIA │ 9-11 February 2011 Entity Framework – Future of Middle Tier Design Sunil Rathi │ Technical Architect, Dell Services.
The Microsoft Technical Roadshow 2007 Advances for Data in VS “Orcas” Mike Taulty Developer & Platform Group Microsoft Ltd
05 | Data Access with Entity Framework Bruno Terkaly | Technical Evangelist Bret Stateham | Technical Evangelist.
ORM Technologies and Entity Framework (EF)
Session-01. Hibernate Framework ? Why we use Hibernate ?
Discover, Master, InfluenceSlide 1 SQL Server Compact Edition and the Entity Framework Rob Sanders Readify.
Eric Nelson Developer & Platform Group Microsoft Ltd
Deploying Dynamics Applications Thomas Hansen – Director, appSolutions a|s
Web & Cloud Development Jason Keicher - Microsoft.
Entity Framework Code First End to End
.NET Database Technologies: Entity Framework additional notes – part 2.
LINQ Boot Camp ADO.Net Entity Framework Presenter : Date : Mahesh Moily Nov 26, 2009.
RIA Services Master Class Presenter: Kevin Grossnicklaus November 30 th, 2010.
Entity Framework, a quickstart Florin−Tudor Cristea, Microsoft Student Partner.
What is Architecture  Architecture is a subjective thing, a shared understanding of a system’s design by the expert developers on a project  In the.
Eric Nelson (or )
Dali JPA Tools. About Dali Dali JPA Tools is an Eclipse Web Tools Platform sub-Project Dali 1.0 is a part of WTP 2.0 Europa coordinated release Goal -
Introduction to ASP.NET MVC Information for this presentation was taken from Pluralsight Building Applications with ASP.NET MVC 4.
Ronnie Saurenmann Principal Architect Microsoft Switzerland.
OVERVIEW ON HOW ENTITY FRAMEWORK CODE FIRST CAN EASE THE DEVELOPMENT PROCESS Entity Framework Code First 11/19/2013 Joe Walling Copyright Walling Info.
Deep Dive into the ADO.NET Entity Framework. Agenda Entity Data Model Advanced Mapping Advanced querying Entity SQL Object Services ADO.NET Metadata.
Entity Framework Code First – Beyond the Basics Sergey Barskiy, Magenic Microsoft MVP – Data Platform Principal Consultant.
Oct * Brad Tutterow. VS 2008.NET 3.5LINQ Entity Framework  The ADO.NET Entity Framework is part of Microsoft’s next generation of.NET technologies.
EntityFrame work and LINQ CH 14. linq LINQ enables you to query data from a wide variety of data sources, directly from your programming code. LINQ is.
Entity Framework: Code First SoftUni Team Technical Trainers Software University
Ventsislav Popov Crossroad Ltd.. 1. ASP.NET Data Source Controls  SqlDataSource  EntityDataSource  ObjectDataSource 2. Entity Data Model and ADO.NET.
Entity Framework Code First – Beyond the Basics Sergey Barskiy, Magenic Microsoft MVP – Data Platform Magenic, Principal Consultant Level: Introductory.
Entity Framework 7 Who Are You & What Have You Done to my ORM?
Simplifying the Code First Approach in the Entity Framework Dhananjay Kumar Infragistics Consultant Microsoft MVP
Entity Framework 7: What’s New? Ricardo Peres Technical Evangelist at Simplifydigital. Microsoft
ADO.NET 3.0 – Entity Data Model Gert E.R. Drapers Chief Software Architect Visual Studio Team Edition for Database Professionals Microsoft Corporation.
Technology Drill Down: Windows Azure Platform Eric Nelson | ISV Application Architect | Microsoft UK |
ORM Basics Repository Pattern, Models, Entity Manager Ivan Yonkov Technical Trainer Software University
2 Behind every great site, there is great data Eric Nelson Developer Evangelist Microsoft UK
Data Access Methodologies: When to choose what (ADO.NET, Entity Framework, WCF Data Services) Wriju Ghosh Lead Partner Consultant, Microsoft.
TFS Training TFS Training. Introduction to Team Foundation Server Team Foundation Server Team Foundation Server is a Microsoft product which provides.
Thinking of Drupal 8? Get started with the resources.
© 2016, Mike Murach & Associates, Inc.
Top 10 Entity Framework Features Every Developer Should Know
Introduction to Entity framework
Roles in the Database Environment
Entity Framework 4 Deep Dive
Entity Framework: Code First
Data centric apps for web, desktop and mobile with EF5
 .NET CORE
Entity Framework By: Casey Griffin.
A Tour of EF Core’s Most Interesting & Important Features
Entity Framework Core for Enterprise Applications
Learn. Imagine. Build. .NET Conf
ADO.NET Entity Framework
ADO.NEXT Advances in Data Access for 2008
Microsoft Build /15/2018 6:28 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Entity Framework Core.
SSDT and Database Project Basics
IT College 2016, Andres käver
Entity Framework Core for Enterprise Applications
Implementing Entity Framework with MVC Jump Start
Visual Studio + SQL Server Is Better
Data Access in .NET Core 3.0 Applications
Saravana Kumar Founder – Serverless360 / Microsoft MVP - Azure
Presentation transcript:

Stuart Leitch “Code First” & DbContext

ObjectContext DbContext DbSet ObjectSet Entity Client Conceptual / Mapping / Logical  Should have been V1  Simplifies  Discoverability  Does not replace Needed backward compatibility Wraps ObjectContext ObjectContext accessible  Recommended for all approaches Use ObjectContext only when needed.

 Database First  Model First  Code First

 Existing Database / DBA  Maximum control  Full T4 Template support (Self Tracking etc.)  Not great with large models (50+ tables)  Source Control merging headaches (XML)

 Generate Database / Migrate  Like to “Draw” model / Designer Fan  Less database centric  Full T4 Template support  Source Control merging nightmare (XML)

 Code Oriented / Dumb down DB  No automated migration support (vNext)  No T4 Template support / Self Tracking (yet)  Source Control Branch friendly  Cross EDMX easy  No SP’s, Compiled Queries

 Demo scenario / Client Brief  Creating the model in Code Basics & conventions Data annotations / Fluent API Relationships, inheritance, hierarchies & complex types Database generation & Seed data  Using the model with DbContext LINQ, Find / Local (cached) Lazy Loading, Prefetching Concurrency Common Patterns

 Web store with orders

 RTW releases this month (likely at MIX)  Coming soon: Self Tracking Entities Migrations Enum Support Stored Procedure Support