Learn your way! Get started

Entity Framework 6.1, Part 2 of 6: Data Model

with expert Don Kiely


Watch trailer


Course at a glance

Included in these subscriptions:

  • Dev & IT Pro Video
  • Dev & IT Pro Power Pack

Release date 8/4/2014
Level Advanced
Runtime 2h 4m
Closed captioning Included
Transcript Included
eBooks / courseware Included
Hands-on labs N/A
Sample code N/A
Exams Included


Enterprise Solutions

Need reporting, custom learning tracks, or SCORM? Learn More



Course description

In this course you’ll explore some of the ways that you can create data models using the tools provided with Entity Framework and SQL Server Data Tools in Visual Studio. Then we’ll reach down into the guts of the XML that makes up the three Entity Data models, conceptual, storage and mapping. So that you have a good understanding of how Entity Framework implements many of its features. The XML might be intimidating just from the sheer volume of it, even for a simple data base. Put you’ll see how it is pretty straight forward and quite understandable.

Prerequisites

This course assumes that you are experienced with relational database design and programming concepts. Entity Framework is all about data access, and the course doesn’t spend any time on data fundamentals. You’ll also need a good understanding of object-oriented programming in C#, so that you know how to use the entity data objects that Entity Framework generates from your data model. You’ll also need to have a working knowledge of Language INtegrated Queries (LINQ) in C#. The course uses Entity Framework with various SQL Server databases, so you should know enough about SQL Server to know how to perform various tasks and be able to connect to a database. But you don’t need deep knowledge of SQL Server to use Entity Framework productively. You should have already viewed the Entity Framework 6.1: Introduction course before taking this course.

Learning Paths

This course will help you prepare for the following certification and exam:
MCSD: Web Applications
70-487: Developing Windows Azure and Web Services

This course is part of the following LearnNowOnline SuccessPaths™:
Accessing Data Services for Win Dev
Accessing Data Services

Meet the expert

Don Kiely is a featured instructor on many of our SQL Server and Visual Studio courses. He is a nationally recognized author, instructor, and consultant specializing in Microsoft technologies. Don has many years of teaching experience, is the author or co-author of several programming books, and has spoken at many industry conferences and user groups. In addition, Don is a consultant for a variety of companies that develop distributed applications for public and private organizations.

Course outline



Designing a Data Model

Intro to Entity Data Model (16:33)
  • Introduction (00:39)
  • Introduction (02:23)
  • The Models within the Model (01:59)
  • Creating and Using an ED Model (01:38)
  • Demo: Creating a Model (04:18)
  • Demo: Model - finishing (04:44)
  • Summary (00:49)
Data Model Designer (24:10)
  • Introduction (00:36)
  • Demo: EDM Model Designer (04:49)
  • Demo: Designer - multiplicity (04:12)
  • Demo: Object properties (03:36)
  • Demo: Datatype Facets (05:08)
  • Demo: Property Relationship (05:09)
  • Summary (00:37)
Using Model First Design (20:59)
  • Introduction (00:42)
  • Creating Using Model-First (01:44)
  • Model-First Design Example (03:41)
  • Demo: Model First Design (04:07)
  • Demo: Adding Items (04:33)
  • Demo: Add More Properities (05:33)
  • Summary (00:37)

Model

Objects and Associations (23:16)
  • Introduction (00:44)
  • Demo: Derived Objects (04:17)
  • Demo: Derived Associations (04:46)
  • Demo: Create Database (03:54)
  • Demo: Tables (04:50)
  • Demo: Model Browser (04:04)
  • Summary (00:38)
In the Raw Designer Section (09:42)
  • Introduction (00:56)
  • Entity Data Model in the Raw (02:22)
  • Demo: EDMX File (02:41)
  • Demo: EDMX Designer (03:16)
  • Summary (00:26)
In the Raw Conceptual Model (13:33)
  • Introduction (00:33)
  • Demo: EDMX Conceptual Model (04:42)
  • Demo: Conceptual Entity (03:36)
  • Demo: Conceptual Views (04:02)
  • Summary (00:38)
Storage and Mapping Models (16:12)
  • Introduction (00:33)
  • Demo: Storage Model (05:39)
  • Demo: Comparisons (00:45)
  • Demo: Mapping (05:02)
  • Model Build Mechanics (01:07)
  • Demo: Back in the Designer (02:17)
  • Summary (00:48)