From the course: Practical Application Architecture with Entity Framework Core

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Debugging errors

Debugging errors - Entity Framework Tutorial

From the course: Practical Application Architecture with Entity Framework Core

Start my 1-month free trial

Debugging errors

- [Narrator] Real software is not complete without some de-bugging. So let's look at some strategies for de-bugging errors when using Entity Framework Core. In the last video, we talked about problems with a database model mismatch. So let's create this error and see how we can handle it in the Debugger. In the DAL, let's go to the Context and go down to the Model Builder section for Order. Let's delete the Order Date property and the related index. Now let's go to the Order Model and delete the Order Date there. Now open the Order Service in the Core and we'll change the Order By and Get Orders with Customers. We'll change it to Create a Date, for now. We also need to go down to the View in the web project. Order, Views, Order Index and change the Order Date to Create a Date here. Finally, we'll go to the Order Repository and remove the Order Date. In the Create method. Now we'll run the application and create a new order. We'll click on Orders. Notice that the application had no…

Contents