Download Database first approach Code First approach

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Microsoft SQL Server wikipedia , lookup

DBase wikipedia , lookup

Microsoft Access wikipedia , lookup

Serializability wikipedia , lookup

Extensible Storage Engine wikipedia , lookup

Entity–attribute–value model wikipedia , lookup

Oracle Database wikipedia , lookup

Open Database Connectivity wikipedia , lookup

IMDb wikipedia , lookup

Navitaire Inc v Easyjet Airline Co. and BulletProof Technologies, Inc. wikipedia , lookup

Ingres (database) wikipedia , lookup

Functional Database Model wikipedia , lookup

Relational model wikipedia , lookup

Microsoft Jet Database Engine wikipedia , lookup

Database wikipedia , lookup

Concurrency control wikipedia , lookup

Versant Object Database wikipedia , lookup

Database model wikipedia , lookup

Clusterpoint wikipedia , lookup

ContactPoint wikipedia , lookup

Transcript
Simplifying the Code First
Approach in the Entity Framework
Dhananjay Kumar
Infragistics Consultant
Microsoft MVP
http://debugmode.net
Host : Dhananjay Kumar
Infragistics Consultant
6 times Microsoft MVP
@debug_mode
Blog : http://debugmode.net
Email : [email protected]
Agenda
About
Code First
Approach
Create first
database
Managing
connection
strings
Data
Annotations
and Fluent
API
Relationship
between
entities
using the
Annotations
Database
creation
strategies
Database
initialization
and seed
methods
Enabling
migrations
Update
database
Code First approach
Database first approach
Database
modelling
Database first
approach
Code first
approach
DB
Code First approach
DB
Code First approach
Database gets created
from the domain
entities
First we model entities
and relationship in
classes and then
database gets created
from that
Very useful for domain
driven development
Easy for database
migration and seeding.
Code First approach
Develop without ever
having to open a designer
or define an XML mapping
file
Define your model objects
by simply writing “plain old
classes” with no base
classes required
Use a “convention over
configuration” approach
that enables database
persistence without
explicitly configuring
anything
Optionally override the
convention-based
persistence and use a fluent
code API to fully customize
the persistence mapping
Summary
 About Code First Approach
 Create first database
 Managing connection strings
 Data Annotations and Fluent API
 Relationship between entities using the Annotations
 Database creation strategies
 Database initialization and seed methods
 Enabling migrations
 Update database
What Infragistics can offer you?
•
We welcome all of you to take advantage of a FREE 30 Day Trial by downloading
the product at: http://www.infragistics.com/products/ultimate/download
•
Please reach out to us at [email protected] for any follow up questions
you may have. We welcome the opportunity to assist you.