You can change this connection string according to your SQL server database setting. If you want use my database file then attach that file. If you are using your database, you need to replace column binding with your database table columns.This function is use to fetch data from the Vendor table, fills data in a Data Table object and find it to a Grid View control using the Data Source property. For more information I am attaching my test application and database, so download it for better result and if you liked this article or you have any advice about my any article don't be hesitate drop me a comment on c-sharpcorner comment section.aspdotnet-suresh offers C#articles and tutorials,csharp dot net,articles and tutorials, VB.This tutorial series builds on the Contoso University web application that is created by the Getting Started with the Entity Framework 4.0 tutorial series.For example, you can perform logging every time an entity is updated, archive data whenever an entity is deleted, or automatically check and update related data as needed when inserting a row with a foreign key value. For example, when you update a department, you might need to validate that no other departments have the same administrator because one person cannot be administrator of more than one department.In some that includes both business logic and data-access logic.
Like the Getting Started series, this tutorial series uses the ASP. This lets you combine the advantages of an n-tier approach with the benefits of using a Web Forms control for data access.In Visual Studio, open the Contoso University web application you created in the Getting Started with the Entity Framework and Web Forms tutorial series, and then open the table, but no foreign key relationship is defined in the database.