Tag Archives: asp.net MVC

How to Implement the Repository Pattern in ASP.NET MVC Application

The Repository Pattern is one of the most popular patterns to create an enterprise level application. It restricts us to work directly with the data in the application and creates new layers for database operations, business logic and the application’s UI. If an application does not follow the Repository Pattern, it may have the following… Read More »

Creating Unit Tests for ASP.NET MVC Controllers

In this blog post, we will learn to write unit tests for various MVC controller’s behaviors, such as view’s return types, redirecting to different actions etc. Specifically, we’ll cover writing Unit Tests for: ViewData of the Controller TempData of the Controller ViewBag of the Controller View of the Controller Let’s get started! Creating the MVC… Read More »

Grid in MVC Using Grid.MVC

In ASP.NET MVC, the new concept begins MVC Grid. MVC Grid is lightweight for showing data in tabular format like GridView in Asp.net. Here i will explain how to use MVC Grid in asp.net MVC with entity framework. In below HomeController, we are passing user details data to view. public class HomeController : Controller {… Read More »

ASP.NET MVC

ASP.NET MVC is a web development framework from Microsoft that is based on MVC (Model-View-Controller) architectural design pattern. Microsoft has streamlined the development of MVC based applications using ASP.NET MVC framework. ASP.NET Web Forms uses Page controller pattern approach for rendering layout, whereas ASP.NET MVC uses Front controller approach. In case of Page controller approach,… Read More »

Entity Framework

The Microsoft ADO.NET Entity Framework is an Object/Relational Mapping (ORM) framework that enables developers to work with relational data as domain-specific objects, eliminating the need for most of the data access plumbing code that developers usually need to write. It enabling developers to deal with data as objects and properties. Using the Entity Framework, developers issue… Read More »