Commit Graph

45021 Commits

Author SHA1 Message Date
Pranav K db793c4d48 Updating to aspnetlitedev. 2015-08-18 14:00:25 -07:00
Pranav K f57146f3e8 Updating to aspnetlitedev. 2015-08-18 14:00:25 -07:00
Pranav K f754586b06 Merge branch 'release' into dev 2015-08-18 14:00:25 -07:00
Pranav K bda9e54359 Merge branch 'release' into dev 2015-08-18 14:00:25 -07:00
Pranav K 8982b41640 Updating to aspnetliterelease. 2015-08-18 14:00:25 -07:00
Pranav K eafd8b4714 Updating to aspnetliterelease. 2015-08-18 14:00:25 -07:00
Pranav K 4b748fee1f Updating to aspnetliterelease. 2015-08-18 14:00:24 -07:00
Pranav K dfd3dd0cb4 Updating to aspnetlitedev. 2015-08-18 14:00:24 -07:00
Pranav K a1bf2ecbc0 Updating to aspnetlitedev. 2015-08-18 14:00:24 -07:00
Pranav K 8a19c4e805 Updating to aspnetlitedev. 2015-08-18 14:00:24 -07:00
Pranav K 3c0b96afbe Merge branch 'release' into dev 2015-08-18 14:00:24 -07:00
Pranav K 4c61aa86aa Merge branch 'release' into dev 2015-08-18 14:00:24 -07:00
Pranav K 2956633cf3 Updating to aspnetliterelease. 2015-08-18 14:00:24 -07:00
Pranav K 67407226bc Updating to aspnetlitedev. 2015-08-18 14:00:23 -07:00
Pranav K cc82be0b18 Updating to aspnetlitedev. 2015-08-18 14:00:23 -07:00
Pranav K 3ec97f57ca Merge branch 'release' into dev 2015-08-18 14:00:23 -07:00
Pranav K 6bb85c32af Merge branch 'release' into dev 2015-08-18 14:00:23 -07:00
Pranav K c2a07c365a Merge branch 'release' into dev 2015-08-18 14:00:23 -07:00
Pranav K a89c269a06 Updating to aspnetliterelease. 2015-08-18 14:00:23 -07:00
Pranav K b5348cff40 Updating to aspnetliterelease. 2015-08-18 14:00:23 -07:00
Pranav K a8c4ea2425 Updating to aspnetliterelease. 2015-08-18 14:00:23 -07:00
Pranav K 06551cda3d Updating to aspnetliterelease. 2015-08-18 14:00:22 -07:00
Pranav K 59db2da45d Updating to aspnetlitedev. 2015-08-18 14:00:22 -07:00
Pranav K b9dec6acfe Updating to aspnetlitedev. 2015-08-18 14:00:22 -07:00
Pranav K 8c91ef70cc Merge branch 'release' into dev 2015-08-18 14:00:22 -07:00
Pranav K d4b686ebea Merge branch 'release' into dev 2015-08-18 14:00:22 -07:00
Pranav K 5d0ae6f722 Updating to aspnetliterelease. 2015-08-18 14:00:22 -07:00
Pranav K 3480d53e1c Updating to aspnetlitedev. 2015-08-18 14:00:21 -07:00
Pranav K b360f66326 Updating to aspnetlitedev. 2015-08-18 14:00:20 -07:00
Pranav K 5e38bd0e2c Merge branch 'release' into dev 2015-08-18 14:00:20 -07:00
Pranav K 1ab94f0891 Merge branch 'release' into dev 2015-08-18 14:00:20 -07:00
Pranav K a9fe23a2c6 Updating to aspnetliterelease. 2015-08-18 14:00:20 -07:00
Pranav K ef0456183b Updating to aspnetliterelease. 2015-08-18 14:00:20 -07:00
Pranav K aa0f6c37bb Updating to aspnetlitedev. 2015-08-18 14:00:19 -07:00
Pranav K df3168a53a Updating to aspnetlitedev. 2015-08-18 14:00:18 -07:00
Pranav K ced0f989ab Merge branch 'release' into dev 2015-08-18 14:00:18 -07:00
Pranav K 6ff976be65 Merge branch 'release' into dev 2015-08-18 14:00:18 -07:00
Pranav K bbeea8ba4a Updating to aspnetliterelease. 2015-08-18 14:00:18 -07:00
Pranav K 86c2d546fa Updating to aspnetliterelease. 2015-08-18 14:00:17 -07:00
Pranav K 8c8392cc6f Updating to aspnetlitedev. 2015-08-18 14:00:13 -07:00
Pranav K 599f05e134 Updating to aspnetliterelease. 2015-08-18 14:00:12 -07:00
Pranav K 830e9904b1 Merge branch 'release' into dev 2015-08-18 14:00:12 -07:00
Kiran Challa 7b8f895f3b Merge branch 'release' into dev 2015-08-18 11:08:40 -07:00
Kiran Challa 3c6749ba9b Typescript build changes 2015-08-18 11:07:55 -07:00
Doug Bunting f10a071da3 Preserve `ViewDataDictionary.ModelType` for `Nullable<T>` properties when `Model` is non-`null`
- #2539
- reuse `ModelMetadata` and occasionally `ModelExplorer` when `ModelType` is `Nullable<T>`
2015-08-18 10:33:40 -07:00
Doug Bunting c2347e4d4b Merge branch 'release' into dev 2015-08-18 10:30:04 -07:00
Doug Bunting 48f09d0e8d Do not trounce existing property values that are not bound in `TryUpdateModel` scenarios
- #2836

Part 1: Use existing property values when recursing in `MutableObjectModelBinder`
- remove `ComplexModelDTO` because that indirection made fixing this issue more difficult and doesn't add value
  - started with an old closed PR (#2241) which did some of this work
- correct `MutableObjectModelBinderTest` tests that exercised behaviour that can't occur
  - the old `dto.Results` dictionary was never incomplete; nor could it contain `null` values

Part 2: Change `MutableObjectModelBinder` to pass complex property values into binding system
- model binding no longer trounces nodes in the model tree that aren't bound
- create model instances less often in `TryUpdateModel` scenarios
  - refactor `EnsureModel()` to `GetModel()` and use appropriately
- reorder logic in `SetProperty()` and `AddToProperty()` to avoid copying to / from the same collection
  - also cleans up some code duplication

nits:
- clean up `MutableObjectModelBinderTest`
  - fix odd line wrappings and indentation
  - use `nameof()` more
  - use `string.Empty` more
  - simplify a couple of `Returns()` expressions
- make assertions in `TryUpdateModelIntegrationTest` more readable
  - no need to work through `ModelStateDictionary.Keys`
  - also use `Length` instead of `Count()`; test code but we don't need Linq at all in that test class
2015-08-18 09:57:41 -07:00
Stephen Halter 58292c6620 Update "Kestrel" dependency in samples after rename 2015-08-17 15:55:04 -07:00
Pranav K fba99312e3 Merge branch 'release' into dev 2015-08-17 14:49:41 -07:00
Pranav K 8a1d9f4a12 Updating to release NuGet.config. 2015-08-17 14:49:39 -07:00