RSS

Blog posts tagged with 'ASP-NET MVC'

Use of FluentValidation for creating a sophisticated data validation framework in ASP.NET MVC

Written by Lavish Kumar

written by Lavish Kumar

Data validation is quite critical when it comes to usability and data integrity of any software or application. It helps in improving the quality of the data as well as it ensures the data consistency. Data annotations is still one of the most popular ways to do model validation in ASP.NET MVC. But, a lot of developers and projects are leaning towards Fluent Validation library these days. Why? Well, Fluent Validation is quite versatile and offers advantages.
Learn about the open-source project that sets the tone on how to use Entity Framework (EF) Code-First approach

Written by Lavish Kumar

written by Lavish Kumar

Entity Framework (EF) is an Object Relational Mapper (ORM) that enables developers to work with relational data using domain-specific objects. In other words, it allows developers to access and store data in the database via an automated mechanism. Before we dive deep into the details of code-first approach, we should understand the transference in a way the modern applications are being developed. 
Overview of registering new routes in nopCommerce

Written by Lavish Kumar

written by Lavish Kumar

ASP.NET routing enables you to use URLs that do not have to map to specific files in a Web site. Because the URL does not have to map to a file, you can use URLs that are descriptive of the user's action and therefore are more easily understood by users.The ASP.NET MVC framework and ASP.NET Dynamic Data extend routing to provide features that are used only in MVC applications and in Dynamic Data applications. You can find more information here.

You can also look into this example that explains the ASP.NET routing. The ASP.NET Routing module is responsible for mapping incoming browser requests to particular MVC controller actions.

nopCommerce follows the IRouteProvider interface which is used for route registration during application start-up. All core routes are registered in the RouteProvider class located in the Nop.Web project.