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
AdditionalValuesMetadataProvider.cs
CaculatorContext.cs
DefaultCalculator.cs
DefaultCalculatorContext.cs
FromNonExistantBinderAttribute.cs
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
TestService.cs Adding support for model binding specifically marked controller properties. 2015-03-20 17:37:09 -07:00
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.