URI:
   DIR Return Create A Forum - Home
       ---------------------------------------------------------
       Trade BTC currency on Paypal
  HTML https://xcryptoexchange.createaforum.com
       ---------------------------------------------------------
       *****************************************************
   DIR Return to: General Discussion
       *****************************************************
       #Post#: 53--------------------------------------------------
        Entity Framework runs a query
       By: asim km Date: September 3, 2023, 11:28 pm
       ---------------------------------------------------------
       So, for example, if a request equals to , it should be handled
       by a controller named using the method (or action). I'll explain
       routing in more detail later. In this method: we need to write
       the code to handle requests from . This means we need to get the
       list of videos from the database and display them in the view.
       Change the code as follows, and then I'll explain how everything
       works: What's going on here? First, I added two statements at
       the top to import the required namespaces. Next, I declared a
       private field of type in the controller and initialized it in
       the constructor.
       In the indexing operation, we use to get the video from the
       database. Remember how we added to ? I told you this represents
       a collection (or a table) in the Phone Number List
  HTML https://agbdirectory.com/
       database. So, here represents the
       video collection. Methods are extension methods provided by .
       When we call this method,  against the database and fetches all
       the videos from the database. If you need a better understanding
       of and extension methods, check out my advanced course on . As
       you can see, using Entity Framework, getting data from the
       database can be as simple as one line of code.
       [img]
  HTML https://scontent.fdac5-2.fna.fbcdn.net/v/t39.30808-6/375057161_263421249912062_5916241705508741292_n.jpg?_nc_cat=101&ccb=1-7&_nc_sid=49d041&_nc_ohc=X8atlqaGutgAX82Qsso&_nc_ht=scontent.fdac5-2.fna&oh=00_AfC7LvvObNo1o0z7LPAzwR1_80uIRLyAnIbWEAoyTshxKw&oe=64F889F9[/img]
  HTML https://agbdirectory.com/
       We never have to worry about using normal objects such as
       connections, commands, etc. Ours handles all this complexity.
       Finally, in the last line of the action, we call the method and
       pass it the video object. This method is a helper method defined
       in the base controller. It returns an instance of the class. By
       returning an instance of , we tell the runtime to return the
       view when processing this request. In more complex applications
       we don't always return views from operations. Sometimes we may
       want to redirect the user to a new , or return an object. This
       is why the return type of our operation is.
       *****************************************************