Pranav K
9c545aa343
Updating System.Xml.ReaderWriter to 4.0.10.0
2014-07-29 22:11:50 -07:00
sornaks
cee73c0af3
1. Introducing XML Input Formatters.
...
2. Adding DelegatingStream class
3. Unit + Functional tests for formatters.
2014-07-29 15:04:23 -07:00
dougbu
43d1253936
Cleanup unused `FormContext` members due to legacy validation removal
...
- provide new property back for customer use
- remove unused FieldValidationMetadataClass
2014-07-29 10:44:12 -07:00
dougbu
b5dcc9895d
Fix #620 , Remove legacy / non-unobtrusive client side validation
...
- remove `ViewContext.UnobtrusiveJavaScriptEnabled` property and all references
- avoid `ViewContext.GetFormContextForClientValidation()` calls since
ternary expression is more explicit and we were inconsistent
- improve `ValidationMessage()` comments
- don't treat `ModelState.IsValid` as if it were still nullable
2014-07-29 10:43:19 -07:00
dougbu
cd0285183e
Fix StyleCop issues
2014-07-25 10:51:40 -07:00
Pranav K
da0bf6f7d8
Commonizing code in option provider
...
* Adding ValueProviderFactoryProvider and CompositeValueProviderFactory to
maintain parity in pattern with other option types.
Fixes #818
2014-07-25 06:52:00 -07:00
dougbu
48085eea08
Correct `ModelMetadata.IsRequired` to honour overrides
...
- subclasses would not calculate a value because `ModelMetadata` constructor
set this property
- meant presence of a `[Required]` attribute in the model was ignored
2014-07-24 18:32:13 -07:00
dougbu
80a27c6f3b
Add `ModelMetadata.DisplayName` property
...
- value comes from `Name` property of `[Display]` attribute
- use new property in `@Html.DisplayName()` and `@Html.Label()`; remove associated TODO comments
2014-07-24 18:31:48 -07:00
dougbu
f4b582f654
Remove incorrect override of `ModelMetadata.GetDisplayName()`
...
- this method delegates to a number of `ModelMetadata` properties
- no use cases for overriding; should not be `virtual`
- `ModelMetadata.DisplayName` override using `DisplayAttribute.GetName()` coming in next commit
2014-07-24 16:49:02 -07:00
Pranav K
f6106e424e
Reacting to System.Collections versioning change
2014-07-14 15:54:00 -07:00
David Fowler
7e7c56ce48
Renamed configurations to frameworks in project.json
2014-07-13 21:58:12 -07:00
Pranav K
2aacdeca4a
Modify AssociatedMetadataProvider to use PropertyHelper to create accessor
...
Additionally change it to use TypeExtensions.GetReadableProperties to get
property list. This causes it to ignore indexers which should not be
considered.
Fixes #595
2014-06-27 10:50:37 -07:00
Pranav K
3c092cb083
Moving model binders from DI to MvcOptions
2014-06-26 21:49:46 -07:00
Chris Ross
1d3e6b0dd0
Fix breaks from GetFormAsync, IReadableStringCollection.Keys.
2014-06-26 10:56:56 -07:00
Pranav K
24e1ac7ca1
Revive ModelMetadata.ShowForDisplay and ModelMetadata.ShowForEdit
...
Fixes #679
2014-06-23 16:50:09 -07:00
Brice Lambson
172dcd179b
Bump version to 6.0.0-*
2014-06-19 11:21:43 -07:00
Yishai Galatzer
14c43c351d
Use request services instead of application services by default
2014-06-16 19:17:12 -07:00
Yishai Galatzer
6aa1f84420
Add Service monitoring as middleware to make sure the monitoring doesn't affect autofac services counts
...
Scoping of three services
Caching of action binding context.
Make input formatters lazy
2014-06-16 19:03:30 -07:00
Pranav K
fdbac041f9
Updating designer files by re-running build resx
2014-06-16 16:27:30 -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
sornaks
28516a0ae9
Changes to support DisplayColumn attribute. Updating the MvcSample as well to start using DisplayColumn attribute. Adding UnitTests for the same.
2014-06-10 16:45:55 -07:00
Pranav K
7396f58d99
Support ModelMetaData.IsRequired
...
* Update DataAnnotationsModelValidatorProvider to use ModelMetadata.IsRequired
* Adding tests and updating existing ones that didn't work with IsRequired
Fixes #533
2014-06-10 10:20:24 -07:00
Pranav K
cc0dadc6b6
More Stylecop cleanup for ModelBinding and Razor
2014-06-09 14:27:12 -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
David Fowler
7388dece9f
Fixed project.json casing
2014-05-26 02:50:43 -07:00
Pranav K
a834928f1a
Change IsValid method in ModelStateDictionary to GetValidationState
...
Fixes #400
2014-05-21 19:33:36 -07:00
Pranav K
1adcf14b3d
Renaming Common to Microsoft.AspNet.Mvc.Common
2014-05-21 19:16:45 -07:00
Pranav K
a53e378cf4
Updating kproj file to match tooling changes
2014-05-18 20:13:56 -07:00
Yishai Galatzer
db3cdfb97a
Remove content (and versions from AssemblyInfo)
2014-05-11 08:42:32 -07:00
Andrew Peters
f13865dedc
Updating copyright headers
2014-05-08 23:01:20 -07:00
Pranav K
4566947e33
Change ModelState.IsValid back to bool
2014-05-07 17:41:47 -07:00
Ryan Nowak
b2c9b3b5d3
Unblocking the CI
...
DataAnnotations used to reference System.Reflection.Compatibility, which
was giving us a reference to some methods "for free". Really we should
have been pulling in this package all along.
2014-05-07 15:58:24 -07:00
lajones
235707ec8a
Microsoft.ComponentModel.DataAnnotations is being renamed to Microsoft.DataAnnotations
2014-05-07 13:35:36 -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
Ryan Nowak
abbaa11212
Incorporate name changes: HttpAbstractions
2014-05-05 17:14:08 -07:00
Ryan Nowak
4ece9969bf
HttpAbstractions
2014-05-05 16:29:14 -07:00
Ryan Nowak
a9a7663cbd
Update MVC for reflection package changes
2014-05-05 10:38:07 -07:00
Louis DeJardin
bbcac43aaa
Updating DataAnnotations version reference
2014-05-02 20:53:12 -07:00
anpete
8208cd6b2f
Update file headers
2014-05-01 17:42:33 -07:00
sornaks
d63d998e95
Introducing DisplayText, DisplayTextFor, Id, IdFor, IdForModel.
...
Fixing CachedDataAnnotationsModelMetadata to support NullDisplayText.
2014-04-30 10:23:25 -07:00
sornaks
e21688ffb5
#190 Tighten protections around `ModelStateDictionary` additions
2014-04-28 08:46:47 -07:00
Pranav K
f740aabb79
Reviving RangeAttributeAdapter, RequiredAttributeAdapter,
...
StringLengthAttributeAdapter
* Adding remaining DataTypeAttribute adapter rules
2014-04-26 11:39:29 -07:00
harshgMSFT
f26cc51e2e
Introducing AntiForgery System :
...
- Config is cleaned up to not have IAdditionalDataProvider and SuppressIdentityChecks.
- Added a DefaultClaimUidExtractor which looks for NameIdentifier and if not present serializes entire claims.
- Added HtmlHelper.
- AntiForgery now returns an AntiForgeryTokenSet which represents a tuple of cookie and form tokens.
2014-04-24 18:12:11 -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
2ba8780ee0
Reviving MinLength and MaxLength attribute adapters
2014-04-24 15:52:05 -07:00
Pranav K
b0c7dc9220
Make IModelBinder and IValueProvider methods async
2014-04-24 15:16:27 -07:00
Pranav K
3671e8c5b4
Reviving CompareAttributeAdapter and ModelClientValidationEqualToRule
2014-04-22 23:11:24 -07:00