Tag Archives: asp.net MVC

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 »

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 »

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 »

In ASP.NET MVC, the new concept begins WebGrid. WebGrid is lightweight for showing data in tabular format like GridView in Asp.net. Here i will explain how to use WebGrid in asp.net MVC with entity framework. In below HomeController, we used ViewBag to store user data and use this ViewBag in WebGrid(in View) to show. public… Read More »

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 »