Areas are some of the most important components of ASP.NET MVC projects. The main use of Areas are to physically partition web project in separate units. If you look into an ASP.NET MVC project, logical components like Model, Controller, and the View are kept physically in different folders, and ASP.NET MVC uses naming conventions to…… Continue reading Areas in ASP.NET MVC
Have you ever used filters with the ng-repeat directive as shown in the listing below? If so, then you’ve used a filter in an AngularJS application. AngularJS provides us many in-built directives like search. If required, AngularJS also allows us to create custom filters, which we’ll explore in this post. AngularJS gives us a simple…… Continue reading How to create Custom Filters in AngularJS
I have often seen entry level developers struggle with the differences between and usage of ViewData, ViewBag and TempData in ASP.NET MVC. And while there are many articles and blog posts on this topic out there, I’ll try to explain it simply. To start with, ViewData, ViewBag, and TempData all three are objects in ASP.NET…… Continue reading What are ViewData, ViewBag, and TempData in ASP.NET MVC?
The Entity Framework Code First approach allows us to create a model as a plain class and then the database gets created from the domain model or entity class. In the Code First approach, the database gets created from the classes. Some advantages of the Entity Framework Code First approach include (as stated in Scott…… Continue reading How to create relationships between entities in the Entity Framework Code First Approach