aspnetcore/test/WebSites/ModelBindingWebSite
Doug Bunting e31eab0391 `ByteArrayModelBinder` should return `null` only when type is not matched
- #2456
- visible behaviours now match MVC 5
- prevent `CollectionModelBinder` from converting no value to `byte[0]`
- prevent `TypeConverterModelBinder` from converting empty value to `byte[] { '\0' }`

nit:
- remove additional delegates `ModelBindingTestHelper.GetOperationBindingContext()` calls
 - a few left despite #2625 cleanup
2015-06-01 12:20:17 -07:00
..
Controllers `ByteArrayModelBinder` should return `null` only when type is not matched 2015-06-01 12:20:17 -07:00
Models
Services
ViewModels
Views/Vehicle
wwwroot
AdditionalValuesMetadataProvider.cs
CaculatorContext.cs
DefaultCalculator.cs
DefaultCalculatorContext.cs
FromNonExistantBinderAttribute.cs
FromTestAttribute.cs
ICalculator.cs
ITestService.cs
ModelBindingWebSite.xproj
ModelMetadataExtensions.cs
Result.cs
Startup.cs
TestBindingSourceModelBinder.cs
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.