Pranav K
3c092cb083
Moving model binders from DI to MvcOptions
2014-06-26 21:49:46 -07:00
Pranav K
cc0dadc6b6
More Stylecop cleanup for ModelBinding and Razor
2014-06-09 14:27:12 -07:00
Pranav K
97e06138ed
Cleaning up StyleCop errors
2014-06-04 13:28:30 -07:00
Pranav K
a834928f1a
Change IsValid method in ModelStateDictionary to GetValidationState
...
Fixes #400
2014-05-21 19:33:36 -07:00
Andrew Peters
f13865dedc
Updating copyright headers
2014-05-08 23:01:20 -07:00
Pranav K
904c91d2b9
CompositeModelBinder should only validate the object graph at the top
...
level.
DataAnnotationsModelValidator should prefer the container to Metadata.Model
Fixes #247
2014-05-06 17:39:50 -07:00
Pranav K
076dedcca5
Reacting to package and namespace changes
2014-05-06 14:06:29 -07:00
anpete
8208cd6b2f
Update file headers
2014-05-01 17:42:33 -07:00
Pranav K
b0c7dc9220
Make IModelBinder and IValueProvider methods async
2014-04-24 15:16:27 -07:00
Pranav K
cc00d8cff7
Modify TypeConverterModelBinder to use ValueProviderResult.CanConvertFromString to determine if it can convert a
...
value
* Adding support for extra type conversions
2014-04-22 23:00:58 -07:00
Pranav K
c72c80c101
Add the ability to correctly determine if a particular field has been validated.
...
There are several portions of model validation that attempt to avoid
revalidating if a field has been validated. However the behavior of
ModelStateDictionary makes it difficult to distinguish between an
unvalidated field and a field without validation errors. This change
resolves this issue by letting the caller distinguish between the two
cases.
2014-03-31 12:40:38 -07:00
Pranav K
a2cea18529
Replacing argument not null checks in ModelBinding with NotNullAttribute
...
* Removing not null guard tests in ModelBinding
2014-03-25 12:35:33 -07:00
Ryan Nowak
89b53aab25
Fix API change in ITypeActivator
2014-03-21 18:16:02 -07:00
Pranav K
f8dd52dfe3
Reintroducing BindingBehaviorAttribute attribute
...
* Porting MutableObjectModelBinder tests
* Fix issues in MutableObjectModelBinder introduced by changing from
TypeDescriptors to reflection
2014-03-19 16:52:02 -07:00
dougbu
4bc7c36522
Merge two `TypeExtensions` classes into Common\TypeExtensions.cs
...
- add missing `[NotNull]` attributes
- remove now-unneeded usings for ...ModelBinding.Internal namespace
Also get ModelBinding test project working under CoreCLR
- create separate k10 and net45 folders under test in VS
- add `[InternalsVisibleTo]` to make `TypeExtensions` visible to test assembly
- correct tests' `CultureInfo` use to compile under CoreCLR
- ifdef out CoreCLR tests depending on Moq, ReadOnly, ...
- remove a couple of tests expecting TypeConverter to work
2014-03-19 09:53:40 -07:00
Pranav K
eae9d3a951
Update GenericModelBinder.BindModel to use correct overload of
...
Activator.CreateInstance
2014-03-18 16:34:18 -07:00
dougbu
478c220ddb
Revert "Merge two `TypeExtensions` classes into Common\TypeExtensions.cs"
...
This reverts commit d534471515 .
2014-03-17 22:53:36 -07:00
dougbu
d534471515
Merge two `TypeExtensions` classes into Common\TypeExtensions.cs
...
- add missing `[NotNull]` attributes
- remove now-unneeded usings for ...ModelBinding.Internal namespace
- remove TypeExtensionTests.cs; don't add .NET 4.5-only
`[InternalsVisibleTo]` for low-level `IsCompatibleWith()` extension
2014-03-17 21:02:25 -07:00
Ryan Nowak
51e5a5bf19
Fix for issue #57
...
Replaced ActivatorUtilties with ITypeActivator in WebFX.
2014-03-14 12:51:20 -07:00
Pranav K
e434918337
Reintroduce model validation
2014-03-12 21:55:50 -07:00
Pranav K
04c7b50726
Removing IsFromBody property from ModelMetadata
2014-02-26 13:40:35 -08:00
Pranav K
f1183f57af
* Remove unused method of IModelMetadataProvider
...
* Fix warning in CollectionModelBinder
2014-02-24 17:59:29 -08:00
Pranav K
b6c78de4ea
Reintroduce model binding
2014-02-23 15:23:58 -08:00