aspnetcore/test/Microsoft.AspNet.Mvc.ModelB...
Ryan Nowak 784021cf85 Fix ModelMetadata.IsRequired
The DataAnnotationsMetadataProvider was setting the bool? IsRequired, all of the
time instead of only setting it to true when we found a RequiredAttribute.
So we never actually executed the fallback logic here. Found
this while working on removing some reflection code from the validator,
and wanted to split it out because it's simple.
2015-03-23 15:32:43 -07:00
..
Binders
Metadata Fix ModelMetadata.IsRequired 2015-03-23 15:32:43 -07:00
Properties
Utils
Validation
ValueProviders
BindAttributeTest.cs
Microsoft.AspNet.Mvc.ModelBinding.Test.xproj
Resources.resx
SimpleTypeExcludeFilterTest.cs
TestResources.cs Add USE_REAL_RESOURCES to easily test if `[Display]` usability has improved 2015-03-21 17:40:26 -07:00
TestValueProvider.cs
project.json Add `enum`-related details to `ModelMetadata` 2015-03-21 17:38:40 -07:00