Archive of ‘ASP.NET MVC’ category

Validation Components in ASP.NET MVC

Validating the user input and showing a user-friendly error message is an important step in Web Application development. ASP.NET MVC framework provides validation features which helps developer to validate model values. The validation features in MVC allows you to write the validation using attributes which is called data annotations. This post outlines the data annotation […]

Seeding a Database in Entity Framework

The code-first approach of Entity Framework creates the database in LocalDB instance of SQL Server Express. The Entity Framework uses the model’s property names and data types to create the tables.Entity Framework uses EdmMetadata table to synchronize model classes with the database schema. To keep the database in sync with the model you need to […]

Scaffolding in ASP.NET MVC4

What is Scaffolding? Scaffolding in ASP.NET MVC generates the code for create, read, update and delete operations in your application. This post outlines the different Scaffolding templates available in MVC4. If you do not like the default scaffolding then you can customise the code generation.You need a model to start working with scaffolding so build […]

ASP.NET MVC Release History

ASP.NET MVC is a framework for developing web applications and first version was released on year 2009. Thanks to ScootGu who introduced this framework for ASP.NET Web Development. If you wonder why Microsoft released another framework when there is Web Forms then read this post. This post outlines the ASP.NET MVC release history and their […]