In some organizations, the policies dictate whether all data access should be done using the procedures, functions, and views defined in the database. Another possibility is that our database is being used by multiple applications, and to ensure that every task is performed in the same manner by all the applications, the database-related tasks are defined in the data layer in the following forms:
Views
Stored procedures
Scalar functions
Table valued functions
Entity Framework makes it very easy for the application to use views, stored procedures, and functions defined in the database. Let's see how we can use Entity Framework to perform these activities.