Course info
Jun 11, 2015
2h 37m

When you're developing an ASP.NET project, knowing how to handle data and validation can be confusing. Phrases like view-models, data transfer objects and entities are thrown about casually and some developers can be confused about what to use when. In this course, Shawn Wildermuth will attempt to clarify the best practices by showing you how entities, validation, and view models work together in ASP.NET MVC and ASP.NET Web API.

About the author
About the author

Shawn Wildermuth has been tinkering with computers and software since he got a Vic-20 back in the early '80s. As a Microsoft MVP since 2002, he's also involved with Microsoft as an ASP.NET Insider and ClientDev Insider.

More from the author
Building an API with ASP.NET Web API
2h 42m
Mar 25, 2019
Building an API with ASP.NET Core
2h 31m
Jan 9, 2019
Less: Getting Started
1h 11m
Sep 19, 2018
More courses by Shawn Wildermuth
Section Introduction Transcripts
Section Introduction Transcripts

Welcome to the Best Practices, Building ASP. NET apps with Entities, Validation, and View Models. In this first module we'll talk about entities. Before you start this course, you should have some basic knowledge. You should have a basic understanding of ASP. NET and C#. You should have been exposed to ASP. NET MVC. You should have used a database before in software development and you'll want to learn the best practices in building websites. This course will go over how to design entities, how to handle modeling in ASP. NET MVC, the effective use of validation in web applications, and working with models inside Web API.

View Models
In this next module let's talk about View Models. First we'll define what view models are. We'll differentiate between entities and view models. We'll see how view models can be used in views, how view models can be used in forms, and finally the difficulty in mapping view models to your data structures. Let's get started.

In this next module I'll talk about Model Validation. My name is Shawn Wildermuth of Wilder Minds. In this module you'll learn about model validation. We'll start and talk about why you need to handle validation, the difference between client-side and server-side validation, the difference between validation and database rules. We'll introduce you to validation attributes and then show you how to write custom validation attributes. Let's get started.

Models in ASP.NET Web API
Welcome to the last module of the Best Practices with ASP. NET, Entities, Models, and Validation. My name is Shawn Wildermuth of Wilder Minds. In this module we'll talk about models in ASP. NET Web API, that'll include the role of models, models and resources, validation, as well as the versioning of models. Let's get started.