The class that encapsulates data-access logic is called a .The business logic class includes both business-logic methods and data-access methods, but the data-access methods call the repository to perform data-access tasks.You can also download the application that is created by the complete tutorial series.The Contoso University sample web application demonstrates how to create ASP.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.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.If you didn't complete the earlier tutorials, as a starting point for this tutorial you can download the application that you would have created.
For an example of how to specify a cascading delete, see The Entity Framework and ASP. page that you will be creating, you want to provide a drop-down list of instructors, with names in "last, first" format so that users can select department administrators.
You will begin by creating web pages in which the control to that class instead of to the repository class.
You will also create unit tests for the validation logic.
To make it easier to do that, you will create a view in the database.
The view will consist of just the data needed by the drop-down list: the full name (properly formatted) and the record key.