aspnetcore/test/WebSites/ModelBindingWebSite
Ryan Nowak 90cef3b9ca Refactor of the model metadata provider
Separates the MMP into two phases:
1). Creation of the ModelMetadata, discovery of properties and attributes
(reflection) is part of the MMP
2). Lookup of details based on attributes is now part of another phase,
and has its results cached.

Users can now implements and register an IFooMetadataProvider to customize
a single aspect of metadata (see how data annotations does it).
2015-03-05 13:19:10 -08:00
..
Controllers Refactor of the model metadata provider 2015-03-05 13:19:10 -08:00
Models
Services
ViewModels
Views/Vehicle
wwwroot
AdditionalValuesMetadataProvider.cs Refactor of the model metadata provider 2015-03-05 13:19:10 -08:00
CaculatorContext.cs
DefaultCalculator.cs Logging API changes 2015-03-04 21:07:45 -08:00
DefaultCalculatorContext.cs
FromNonExistantBinderAttribute.cs
FromTestAttribute.cs
ICalculator.cs
ITestService.cs
ModelBindingWebSite.kproj
ModelMetadataExtensions.cs
Result.cs
Startup.cs Refactor of the model metadata provider 2015-03-05 13:19:10 -08:00
TestBindingSourceModelBinder.cs Refactor of the model metadata provider 2015-03-05 13:19:10 -08:00
TestService.cs
project.json
readme.md

readme.md

ModelBindingWebSite

This web site illustrates how to use and configure various knobs of model binding to let the model binding system bind action parameters to the values which are present in the request. The website also uses model validation to validate the models created using model binding.