Go to file
Doug Bunting 3fd4991959 Bind to readonly non-`null` collections
- part 1/2 of #2294
- handle readonly non-`null` collections in relevant binders
 - `CollectionModelBinder.CopyToModel()` and `MutableObjectModelBinder.AddToProperty()` methods
 - handle read-only controller properties in `DefaultControllerActionArgumentBinder`
 - do not copy into arrays e.g. add `CopyToModel()` override in `ArrayModelBinder`
- remove ability to set a private controller property
 - confirm `SetMethod.IsPublic` in `DefaultControllerActionArgumentBinder`
- avoid NREs in `GetModel()` overrides

Test handling of readonly collections
- previous tests barely touched this scenario
- also add more tests setting controller properties

nits:
- add missing `[NotNull]` attributes
- add missing doc comments
- consolidate a few `[Fact]`s into `[Theory]`s
- simplify some wrapping; shorten a few lines
- remove dead code in `DefaultControllerActionArgumentBinder` and `ControllerActionArgumentBinderTests`
2015-04-23 20:11:09 -07:00
samples Adding errors in ModelState 2015-04-22 13:44:09 -07:00
src Bind to readonly non-`null` collections 2015-04-23 20:11:09 -07:00
test Bind to readonly non-`null` collections 2015-04-23 20:11:09 -07:00
.gitattributes
.gitignore
.travis.yml Update .travis.yml and appveyor.yml to build quietly. 2015-04-07 16:16:05 -07:00
CONTRIBUTING.md
LICENSE.txt
Mvc.NoFun.sln The model state keys for body bound models which are bound at property will use the entire model name with this change for example 2015-04-22 14:02:08 -07:00
Mvc.sln The model state keys for body bound models which are bound at property will use the entire model name with this change for example 2015-04-22 14:02:08 -07:00
NuGet.Config
README.md Tables aren't cool anymore 2015-04-01 16:18:33 -07:00
Settings.StyleCop
appveyor.yml Update .travis.yml and appveyor.yml to build quietly. 2015-04-07 16:16:05 -07:00
build.cmd Do not use deprecated `dnvm -x86` switch 2015-03-11 19:29:10 -07:00
build.sh Remove k command and use dnx instead 2015-03-24 21:35:55 -07:00
global.json Update global.json, sources=>projects 2015-04-02 09:20:21 -07:00
makefile.shade

README.md

ASP.NET MVC

AppVeyor: AppVeyor

Travis: Travis

ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that enables a clean separation of concerns and gives you full control over markup for enjoyable, agile development. ASP.NET MVC includes many features that enable fast, TDD-friendly development for creating sophisticated applications that use the latest web standards.

ASP.NET MVC in ASP.NET 5 includes support for building web pages and HTTP services in a single aligned framework that can be hosted in IIS or self-hosted in your own process.

This project is part of ASP.NET 5. You can find samples, documentation and getting started instructions for ASP.NET 5 at the Home repo.