---
title: "Describe basic workflow for entity framework?"  
description: "Describe basic workflow for entity framework?"  
author: "Pedro Araez"  
published: 2020-01-29  
updated: 2020-01-29  
canonical: https://www.mindstick.com/forum/155757/describe-basic-workflow-for-entity-framework  
category: "ado.net"  
tags: ["ado.net"]  
reading_time: 2 minutes  

---

# Describe basic workflow for entity framework?

[explain me](https://www.mindstick.com/forum/34220/can-anyone-explain-me-about-off-page-activity) about the [basic](https://www.mindstick.com/forum/161830/what-are-the-security-risks-of-using-basic-authentication) [workflow](https://answers.mindstick.com/qa/33777/what-is-the-difference-between-trigger-and-workflow) for the [entity framework](https://www.mindstick.com/articles/1566/crud-operations-using-entity-framework-code-first-approach) in [ado.net](https://www.mindstick.com/articles/804/connection-pooling-in-ado-dot-net) with suitable picture.

## Replies

### Reply by Nishi Tiwari

**Basic Workflow in [Entity](https://www.mindstick.com/forum/160562/database-connectivity-using-entity-framework-database-first-approach) [Framework](https://www.mindstick.com/forum/34615/software-framework-vs-library)**

Here we will learn about the basic CRUD workflow using Entity Framework.

![Describe basic workflow for entity framework?](https://www.mindstick.com/mindstickforums/2241f3de-0129-4a5b-8887-bd475d9e15f2/images/f6d9d254-99b0-4d09-bf1b-60c724f69d8b.png)

Let's understand the above EF workflow:

1. First we need to define our model. Defining the model may includes defining our domain classes, context class derived from DbContext, and configurations if any exits. EF will perform [**CRUD operations based on our model.**](https://www.mindstick.com/forum/155758/describe-architecture-for-entity-framework)

2. To insert data, add a domain object to a context and then call the SaveChanges() method. Entity Framework API will build on an appropriate INSERT command and which execute it on the database.

3. To read data, first execute the LINQ-to-Entities query in our preferred language (C#/VB.NET). EF API will then convert this query into SQL query for the underlying relational database and finally execute it. The result will be transformed into domain that is entity objects and displayed on the UI.

4. To edit or delete data also update or remove entity objects from a context and call the SaveChanges() method. EF API will build on the appropriate UPDATE or DELETE command and execute it on the database.


---

Original Source: https://www.mindstick.com/forum/155757/describe-basic-workflow-for-entity-framework

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
