dougbu
655b329dd0
Increment System.Threading.Tasks package version
...
- today's build break, mark II
also remove dangling reference to TestCommon
2014-03-27 19:56:27 -07:00
Pranav K
44af396da9
Prefer string.Equals static method over the Equals instance method
2014-03-26 22:24:38 -07:00
Pranav K
8e495158ef
Modifying ModelStateDictionary to derive from IDictionary
...
* Reintroducing methods that weren't ported over earlier
2014-03-26 17:29:45 -07:00
Pranav K
12632c5fc3
Replacing not null checks in ModelBinding with NotNullAttribute : part deux
2014-03-25 15:10:57 -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
f1c4a8e497
Change FormValueProviderFactory to use GetContentType for media type matching
...
Fixes #68
2014-03-21 12:10:12 -07:00
Pranav K
683c5bf9b3
Adding JsonInputFormatter for reading json encoded data from the request
...
body
2014-03-20 20:48:25 -07:00
dougbu
5875452755
Quick fix-ups
...
- Move .NET test projects back into net45 folder
- Catch up with latest System.Runtime.InteropServices version
2014-03-19 23:41:17 -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
072e2cc1f1
Updating DataAnnotations version in project.json
2014-03-18 20:56:08 -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
90e6897247
Fixing build
2014-03-14 10:22:37 -07:00
Pranav K
d86298ffe1
Switching over placeholder attributes to use DataAnnotation attributes
2014-03-14 09:48:40 -07:00
Pranav K
e434918337
Reintroduce model validation
2014-03-12 21:55:50 -07:00
Ryan Nowak
5867a6a5fc
CR feedback that didnt get merged
2014-03-11 13:06:01 -07:00
Ryan Nowak
86f18f5da7
Moving ViewContext to rendering, breaking coupling to RequestContext
2014-03-10 16:15:46 -07:00
dougbu
59eaa8f642
Fix 4 unit test failures
...
- NRE in TypeExtensions.IsCompatibleWith()
- ComplexModelDtoResultTest.Constructor_ThrowsIfValidationNodeIsNull() won't work w/o validation
- BindModel_Error_FormatExceptionsTurnedIntoStringsInModelState() looking for wrong message
- BindModel_Error_FormatExceptionsTurnedIntoStringsInModelState_ErrorNotAddedIfCallbackReturnsNull() a dupe
- Also add [NotNull] attributes in TypeExtensions
2014-03-10 12:27:32 -07:00
David Fowler
360f81d0a8
Added required packages for K
2014-03-08 01:10:02 -08:00
Pranav K
28b7597779
Introducing NotNullAttribute for null argument checks
2014-03-07 14:03:28 -08:00
Pranav K
e87f8c372c
Consume ModelBinding from Mvc
...
* Modify ReflectedActionInvoker to model bind parameters
* Introduce IBodyReader for reading request bodies
* Introduce types for per-action-context specific binders, value providers
and body readers
2014-03-05 10:13:52 -08:00
Pranav K
48738b91f4
Updating resx designer file to use updated format
2014-03-03 12:05:00 -08:00
Pranav K
d920003194
Introduce FormValueProviderFactory to expose form data as a value provider
2014-02-28 11:05:39 -08: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
Ryan Nowak
9d056167e8
Overload Resolution Skeleton
2014-02-20 11:37:33 -08:00
Ryan Nowak
4a801b6c7a
integrating routing with WebFX
2014-02-12 18:48:17 -08:00
Pranav K
b51fd08bab
Update ViewDataOfT.SetModel to check for type compatibility when setting
...
model instance.
2014-02-05 14:33:11 -08:00
Pranav K
6c8485b1ef
Removing VirtualFileSystem from Razor
...
* Paths rooted by a leading slash (e.g. /foo) are correctly resolved by the
PhysicalFileSystem. This change is an experiment to determine if we can
get away with not having virtual paths in WebFx.
* Additionally removing types (MetadataVirtualPathViewFactory,
VirtualPathAttribute) that are currently unused.
2014-02-04 22:08:27 -08:00
Pranav K
cc414e0fef
* Renaming Mvc.Forms to Mvc.Rendering
...
* Moving data types to Mvc.ModelBinding
2014-01-30 16:45:40 -08:00