This basic tutorial will explain how to use bind GridView by selecting records from Table and using the attached sample code. This will also explain how to configure and use Entity Framework in ASP.NET websites and applications. We will also implement customized pagination using LINQ.
For this example, make use of Microsoft’s Northwind database. Once you have the database, configure and add Entity Framework and then connect it with the database. You will also need Entity Data Model to your project.
Then create a class to server data to the ObjectDataSource using either C# or VB.NET.
Read the rest of the tutorial here:Â http://aspsnippets.com/Articles/ASPNet-Entity-Framework-Basic-Tutorial-to-SELECT-records-and-display-in-GridView.aspx