diving into entity framework code first

20
Diving Into Entity Framework Nitesh Luharuka Entrepreneur | C# Corner MVP | Kolkata Chapter Lead | Startup Buff

Upload: nitesh-luharuka

Post on 21-Mar-2017

232 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Diving Into Entity Framework Code First

Diving Into Entity FrameworkNitesh LuharukaEntrepreneur | C# Corner MVP | Kolkata Chapter Lead | Startup Buff

Page 2: Diving Into Entity Framework Code First

Agenda

Entity Framework Usage of EF Model Creation Options Future of EF Demo Data Annotations Fluent API

Page 3: Diving Into Entity Framework Code First

Entity Framework

Create Connections Create Commands Execute Commands

Create & Execute Queries Process Results

Page 4: Diving Into Entity Framework Code First

EF vs. Other ORMs

Page 5: Diving Into Entity Framework Code First

Why EF?

Page 6: Diving Into Entity Framework Code First

EF Usage

Page 7: Diving Into Entity Framework Code First

How EF Works

Page 8: Diving Into Entity Framework Code First

Model Creation Options

Database First Model First Code First

Page 9: Diving Into Entity Framework Code First

EF6 & EF7

Page 10: Diving Into Entity Framework Code First

DEMO

Page 11: Diving Into Entity Framework Code First
Page 12: Diving Into Entity Framework Code First

Standard Conventions

Page 13: Diving Into Entity Framework Code First

Standard Conventions contd…

Page 14: Diving Into Entity Framework Code First

Configuring Domain Classes

Data Annotations

Fluent API

Page 15: Diving Into Entity Framework Code First

Data Annotations

Uses System.ComponentModel.DataAnnotations namespace

Based on Attributes

Page 16: Diving Into Entity Framework Code First

Attributes from Data Annotations

Page 17: Diving Into Entity Framework Code First

Fluent API

Page 18: Diving Into Entity Framework Code First

DEMO

Page 20: Diving Into Entity Framework Code First

Thank YOU!!!!

Let’s Q&A