C# – Learn about advanced scenarios – ASP.NET MVC with EF Core

Exactly 1 month and 5 days after the first video tutorial for the ASP.NET MVC with EF Core series, the last 10th video tutorial, following the Microsoft ones, is published. It is about advanced scenarios, and I have mentioned the following points in it:

  • Perform raw SQL queries
  • Call a query to return entities
  • Call a query to return other types
  • Call an update query
  • Examine SQL queries

Interesting part is calling an update query, which shows with minimal code, once again how to add a view and controller to our application:

And the View():

Last (and probably least) is the line for adding the ActionLink to the Index.cshtml of the Views>Courses:

@Html.ActionLink("Update Course Credits", "UpdateCourseCredits","Courses")

The whole code is available in GitHub!

Enjoy it!

Tagged with: , , , ,