OVERVIEW ON HOW ENTITY FRAMEWORK CODE FIRST CAN EASE THE DEVELOPMENT PROCESS Entity Framework Code First 11/19/2013 Joe Walling Copyright Walling Info.

Slides:



Advertisements
Similar presentations
Introduction to NHibernate By Andrew Smith. The Basics Object Relation Mapper Maps POCOs to database tables Based on Java Hibernate. V stable Generates.
Advertisements

SolidWorks Enterprise PDM Data Loading Strategies
Entity Framework Code First Migrations

SQL Server Accelerator for Business Intelligence (SSABI)
Nikolay Kostov Telerik Software Academy academy.telerik.com Senior Software Developer and Technical Trainer
Telerik Software Academy Telerik School Academy.
Chapter 14 Getting to First Base: Introduction to Database Concepts.
Implementing An Extensible Role-Based Security Module in a Java Web Development Framework Joe Hesse Technology Director, UCSF Memory and Aging Center Dept.
Introduction to Entity Framework Part 1 Tom Perkins NTPCUG.
Part 05 – Code First Migrations and Azure Deployment Entity Framework and MVC Series Tom Perkins NTPCUG.
Using ERWin to model your data Supplied by Computer Associates as part of AllFusion.
ORM Technologies and Entity Framework (EF)
5 Copyright © 2009, Oracle. All rights reserved. Defining ETL Mappings for Staging Data.
Rice KRAD Data Layer JPA Design Eric Westfall July 2013.
Neo.NET Entity Objects Design Goals Copyright © Erik Dörnenburg – Last updated: May 2004.
Module 3: Table Selection
Entity Framework Code First End to End
Progress Report Amin Farmahini Farahani BME763. What’s been done: Database Fundamentals Giving a talk about the fundamentals of database Table, record,
Intro to Entity Framework By Shahed Chowdhuri Don’t drown in database design during WakeUpAndCode.com.
Eric Westfall – Indiana University Jeremy Hanson – Iowa State University Building Applications with the KNS.
Part 06 – A More Complex Data Model Entity Framework and MVC NTPCUG Tom Perkins.
IS-907 Java EE JPA: Simple Object-Relational Mapping.
Copyright  Oracle Corporation, All rights reserved. 4 CMIS Powell Oracle Designer: Creating the Database Design CMIS Powell.
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 -
Entity Framework Overview. Entity Framework A set of technologies in ADO.NET that support the development of data-oriented software applications A component.
Introduction to ASP.NET MVC Information for this presentation was taken from Pluralsight Building Applications with ASP.NET MVC 4.
Object Oriented Analysis and Design 1 Chapter 7 Database Design  UML Specification for Data Modeling  The Relational Data Model and Object Model  Persistence.
Building Applications with the KNS. The History of the KNS KFS spent a large amount of development time up front, using the best talent from each of the.
Customizing ClientSpace With Dataforms Tim Borntreger, Director of Client Services.
Entity Framework Code First – Beyond the Basics Sergey Barskiy, Magenic Microsoft MVP – Data Platform Principal Consultant.
Entity Framework: Code First SoftUni Team Technical Trainers Software University
DAY 15: ACCESS CHAPTER 1 Rahul Kavi October 6,
ModelPedia Model Driven Engineering Graphical User Interfaces for Web 2.0 Sites Centro de Informática – CIn/UFPe ORCAS Group Eclipse GMF Fábio M. Pereira.
6 th Annual Focus Users’ Conference 6 th Annual Focus Users’ Conference Import Testing Data Presented by: Adrian Ruiz Presented by: Adrian Ruiz.
1 ER Modeling BUAD/American University Mapping ER modeling to Relationships.
Reference Data Management for a strong SOA Foundation Management of Look up Codes using Siperian MDM Hub.
Entity Framework Code First – Beyond the Basics Sergey Barskiy, Magenic Microsoft MVP – Data Platform Magenic, Principal Consultant Level: Introductory.
Java Persistence API part 1 INFORMATICS ENGINEERING – UNIVERSITY OF BRAWIJAYA Eriq Muhammad Adams J
Entity Framework Code First
Simplifying the Code First Approach in the Entity Framework Dhananjay Kumar Infragistics Consultant Microsoft MVP
Fundamentals of MyBATIS
Oracle eBusiness Financials R12 Oracle Assets Functional Overview TCS Oracle Practice.
IS-907 Java EE Introduction to JPA. Java Persistence API A framework for using relational databases in Java programs mapping between tables and classes,
Python: Building Geoprocessing Tools David Wynne, Ghislain Prince.
Entity Framework Database Connection with ASP Notes from started/getting-started-with-ef-using-mvc/creating-an-
Overview of Basic 3D Experience (Enovia V6) Concepts
Copyright 2015 Varigence, Inc. Unit and Integration Testing in SSIS A New Approach Scott @varigence.
ASP.NET Core* Shahed Chowdhuri Sr. Technical WakeUpAndCode.com A Quick Overview of ASP.NET Core * aka ASP.NET 5 before.
Top 10 Entity Framework Features Every Developer Should Know
Working with Fluent API Inheritance Strategies
Introduction to Entity framework
Building Web Applications with Microsoft ASP
Introduction to .NET Florin Olariu
EF Code First (Advanced)
EF Relations Object Composition
Entity Framework: Code First
Entity Framework DB From Code, OOP Introduction
Entity Framework: Relations
A very brief introduction
Entity Framework By: Casey Griffin.
Data Modeling II XML Schema & JAXB Marc Dumontier May 4, 2004
Entity Framework Code-First Migrations
IT College 2016, Andres käver
C# - EF Core IT College, Andres Käver, , Fall semester
Data Access Layer (Con’t) (Overview)
02 | Beginning Code First Adam Tuliper | Technical Evangelist
New Applications Modeled
Presentation transcript:

OVERVIEW ON HOW ENTITY FRAMEWORK CODE FIRST CAN EASE THE DEVELOPMENT PROCESS Entity Framework Code First 11/19/2013 Joe Walling Copyright Walling Info Systems

What is Code First You focus on domain design, creating classes that match your database and the code first apis create the db on the fly. Basic workflow  Create code first classes  F5  Database auto created  Default data added (if specified)  Launch application 11/19/2013 Joe Walling Copyright Walling Info Systems

Convention Based Persistence Mapping 11/19/2013 Joe Walling Copyright Walling Info Systems No tools or XML mapping files are required to create mappings between model and database This is because of convention over configuration You can override default behavior but the default requires little to work Pluralize entity name for table name Properties map to columns in table Id or tablenameid maps to primary key Show simple example

DB Initialization How it works Strategies  CreateDatabaseIfNotExists  DropCreateDatabaseIfModelChanges  DropCreateDatabaseAlways  Custom Where to set  Code  Config  Turning off DbInitializer  Show examples 11/19/2013 Joe Walling Copyright Walling Info Systems

Configure Domain Classes Create data model Create data context Customize using  Data annotations  Fluent API 11/19/2013 Joe Walling Copyright Walling Info Systems

Migrations Automated – run Nuget package manager Code based  Add-migration  Update-database Show migration file and history Rollback and when needed When each is used Implications on group development 11/19/2013 Joe Walling Copyright Walling Info Systems

Configure Relationship One to one One to many Many to may 11/19/2013 Joe Walling Copyright Walling Info Systems

Annotations Validation Attributes  Required  MinLength  MaxLength  StringLength Database Schema Related  Table  Column  Key  Timestamp  ForeignKey  NotMapped  DatabaseGenerated  Inverse property  ConcurrencyCheck 11/19/2013 Joe Walling Copyright Walling Info Systems