Retrieving and Displaying a specific record with EF

We can use Language INtegrated Query (LINQ) in Entity Framework to query our database and find a selected entry. This will be useful for finding and displaying a specific blog entry.

In the last task, we redirected the user to a page, and placed the Id of the Blog Entry in the URL in the following format ViewBlogEntry.aspx?Id=1. The "?Id=1" portion of the URL is known as a query string, and allows us to pass parameters between pages. (It should be noted that these can be both seen and modified by the end user - this can have security implications depending on the nature of the web application)

We will use that Id's value and use it to retrieve the relevant blog entry.