Understanding how to load and retrieve information from a database using a controller using ASP.NET.
I am currently working on a project where I need to retrieve data from a database and order and sort it.
Examining the Generated Code: https://learn.microsoft.com/en-us/aspnet/mvc/overview/getting-started/introduction/accessing-your-models-data-from-a-controller
I have never done this before. And I have been advised to look at the documentation tutorial.
Upon reviewing it I fail to understand the process. Is Moviecontext a super object that we pass properties and abilities to it through inheritance and value assignment?
Do we use properties to assign capabilities?
And than also how is the information passed to the view and ordered?
Do we use DbSet<Entity> properties to add capabilites to the object we are trying to pass to the view?
DbContext options configure the DdbBontext object.
Textbook example
in this example its not loading anything.
Examining the Generated Code: https://learn.microsoft.com/en-us/aspnet/mvc/overview/getting-started/introduction/accessing-your-models-data-from-a-controller
I have never done this before. And I have been advised to look at the documentation tutorial.
Upon reviewing it I fail to understand the process. Is Moviecontext a super object that we pass properties and abilities to it through inheritance and value assignment?
Do we use properties to assign capabilities?
And than also how is the information passed to the view and ordered?
Do we use DbSet<Entity> properties to add capabilites to the object we are trying to pass to the view?
DbContext options configure the DdbBontext object.
Textbook example
in this example its not loading anything.
In this section, you'll create a new
MoviesController class and write code that retrieves the movie data and displays it in the browser using a view template.
