Like the Getting Started series, this tutorial series uses the ASP. The control gives you more flexibility in other ways as well.NET Web Forms model and assumes you know how to work with ASP. Because you write your own data-access code, it's easier to do more than just read, insert, update, or delete a specific entity type, which are the tasks that the control is designed to perform.The following illustration shows the difference between a business-logic class that includes data-access logic without a repository and one that uses a repository.You will begin by creating web pages in which the control to that class instead of to the repository class.It includes functionality such as student admission, course creation, and instructor assignments. The downloadable sample contains code in both C# and Visual Basic. NET MVC framework, see Getting Started with the Entity Framework using ASP. One way to implement this structure is to use the pages using a control that has many of the same features as other data-source controls.There are three ways you can work with data in the Entity Framework: . For information about the differences between these workflows and guidance on how to choose the best one for your scenario, see Entity Framework Development Workflows. This lets you combine the advantages of an n-tier approach with the benefits of using a Web Forms control for data access.In one of those tutorials, you made changes in the designer manually to synchronize the data model with the database after a database change.
For testing, you provide a repository object that works with data stored in a way that you can easily manipulate, such as class variables defined as collections.NET Web Forms applications using the Entity Framework 4.0 and Visual Studio 2010.The sample application is a website for a fictional Contoso University. To implement this architecture, you separate the presentation layer from the business logic layer (BLL) and the data access layer (DAL).The pages you create in this tutorial work with the entity set of the data model that you created in the Getting Started tutorial series.You will begin this tutorial by making two changes to the database, both of which require corresponding changes to the data model that you created in the Getting Started with the Entity Framework and Web Forms tutorials.