aspnetcore/test/WebSites/ModelBindingWebSite
Ryan Nowak f77493dffe Part 1 of #1712 - Remove reflection in MutableObjectModelBinder
This change introduces a new property to ModelMetadata called
IsBindingRequired, which specifies whether or not a model value must be
present on the wire during model binding.

[DataMember(IsRequired = true)] is currently the only thing that will set
this property.

Updated tests and documentation for clarity on the difference in meaning
between MM.IsRequired and MM.IsBindingRequired. Moved setting for
IsRequired to ValidationMetadata which is a better fit.

Also added functional tests for [BindingBehavior] and [DataMember] in
model binding because they were totally missing.
2015-04-16 12:07:33 -07:00
..
Controllers Part 1 of #1712 - Remove reflection in MutableObjectModelBinder 2015-04-16 12:07:33 -07:00
Models Part 1 of #1712 - Remove reflection in MutableObjectModelBinder 2015-04-16 12:07:33 -07:00
Services
ViewModels
Views/Vehicle
wwwroot Fixing Readme 2015-02-19 10:20:16 -08:00
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 Additional functional tests for ElementalValueProvider 2015-02-25 10:22:43 -08:00
FromNonExistantBinderAttribute.cs Removing ModelMetadataProvider.GetModelMetadataForParameters 2015-03-19 16:42:54 -07:00
FromTestAttribute.cs
ICalculator.cs
ITestService.cs Adding support for model binding specifically marked controller properties. 2015-03-20 17:37:09 -07:00
ModelBindingWebSite.xproj Update .xproj files for Microsoft.Web.AspNet.* -> Microsoft.DNX.* rename 2015-04-02 13:49:27 -07:00
ModelMetadataExtensions.cs
Result.cs
Startup.cs * Simplify MvcOptions 2015-04-07 14:45:53 -07:00
TestBindingSourceModelBinder.cs Refactor of the model metadata provider 2015-03-05 13:19:10 -08:00
TestService.cs Adding support for model binding specifically marked controller properties. 2015-03-20 17:37:09 -07:00
project.json Remove BOM from project.json, *.cmd, *.sh and *.shade files. 2015-03-09 12:56:42 -07:00
readme.md Fixing Readme 2015-02-19 10:20:16 -08:00

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.