Skip to content

Entity Framework

AlmantasK edited this page Jun 20, 2021 · 11 revisions

Introduction

What is a an ORM, persistence.

Using 3rd party code to build an application.

Persistence

ORM

NuGet

Entity Framework

Install

Data or DbSet

DbContext- Container of all Data

Setting up Context

Providers and Future Considerations

Initialization

CRUD

Create

Read

Update

Delete

Lazy vs Eager Loading

Testing EF

LINQ

Basic Raw SQL

Provider-specific Raw SQL

Pitfalls Of Persistence

My Model is Not Suitable For Persistance

  • Create a new model and map non-suitable model to a stuiable model.

Homework

Did I understand the Topic?

Clone this wiki locally