Pranav K
756f8be49c
CompositeValueProvider.GetKeysFromPrefixAsync throws null if provider is not an
...
IEnumerableValueProvider
Fixes #1419
2014-10-23 11:05:06 -07:00
sornaks
1dd1652dcf
Issue #220 - Flags enum does not bind
...
Fix - After TypeConverter support this works. Adding tests for the same.
2014-10-22 13:55:28 -07:00
Ryan Nowak
61f218c8e4
Renaming IBinderMarker and friends to some more descriptive names.
2014-10-17 20:32:03 -07:00
jacalvar
98d749d03c
[ Fixes #1389 ] Can't bind complex type data from route parameters.
...
Changed DictionaryBasedValueProvider to do a prefix check instead of just checking if the underlying
dictionary contains the key.
2014-10-17 15:32:21 -07:00
Pranav K
66f626b828
Remove unnecessary references from project.json
2014-10-17 14:26:58 -07:00
Harsh Gupta
8f933b2ac3
[Fixefor #860 ]- Adding Support for [FromFormData] [FromQuery] and [FromRoute],
...
also updates FromBody to use the new pattern for model binding.
2014-10-16 10:20:15 -07:00
sornaks
5fa8a91111
-Issue #913 - Model-binding is being case-sensitive when binding Url data to Enum parameter.
...
Fix: Using TypeConverter solves this problem.
-Issue #1123 - TypeConverterModelBinder cannot bind "byte" and "short".
Fix: Modified code to use TypeConverter which can handle these scenarios.
-Removing the GetConverterDelegate method and making the code similar to the WebApi.
2014-10-14 15:36:52 -07:00
David Fowler
34add2249e
Updated to use the new target framework in project.json
2014-09-04 02:02:40 -07:00
jacalvar
b6fb7ac7df
Take advantage of nameof to improve our usage of MemberData across the code base.
...
Substituted all instances of [MemberData("PropertyName")] for [MemberData(nameof(PropertyName))]
This change enables us to take advantage of IDE features like Navigate to source,
find all references, etc. When using Visual Studio.
2014-09-02 13:53:03 -07:00
Chris Ross
76ecb73040
Fix abstractions break in tests.
2014-08-20 14:33:39 -07:00
harshgMSFT
d97a427b3d
Adding Input Formatters to MVC Options and using HeaderValueAbstractions
2014-08-18 10:25:19 -07:00
Chris Ross
3aae5cb4fa
Fix one more test.
2014-06-26 11:06:26 -07:00
Ryan Nowak
7f34c94de7
Adding a context class for ValueProviderFactories
...
This allows model binding to once again be independent of routing. Sending
RouteContext into model binding was an odd choice from a layering
point-of-view.
2014-06-11 18:03:09 -07:00
Ryan Nowak
69034b78b8
Issue #65 merge RoutingContext and RequestContext
...
See the relevant PR in aspnet/Routing#60 .
This incorporates the breaking changes.
2014-06-06 10:49:55 -07:00
Pranav K
97e06138ed
Cleaning up StyleCop errors
2014-06-04 13:28:30 -07:00
Pranav K
d8ba998dec
Change IValueProviderFactory.GetValueProvider to be synchronous.
2014-05-27 14:08:13 -07:00
Andrew Peters
f13865dedc
Updating copyright headers
2014-05-08 23:01:20 -07:00
Ryan Nowak
abbaa11212
Incorporate name changes: HttpAbstractions
2014-05-05 17:14:08 -07:00
anpete
8208cd6b2f
Update file headers
2014-05-01 17:42:33 -07:00
Pranav K
d61915149c
DictionaryBasedValueProvider results null when value is not found
...
* Guard against Dictionary returning null values
2014-04-24 18:10:06 -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
c8ede78582
Expanding ValueProviderResult to support more data types
...
* Reviving tests for ValueProviderResult
2014-04-09 09:33:29 -07:00
Pranav K
af7d61113b
Updating test projects to use Microsoft.AspNet.Testing
2014-03-25 15:10:58 -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
Pranav K
f1c4a8e497
Change FormValueProviderFactory to use GetContentType for media type matching
...
Fixes #68
2014-03-21 12:10:12 -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
d920003194
Introduce FormValueProviderFactory to expose form data as a value provider
2014-02-28 11:05:39 -08:00
Pranav K
b6c78de4ea
Reintroduce model binding
2014-02-23 15:23:58 -08:00