Go to file
Ryan Nowak b557ca55d9 Fix behavior of StartsWithPrefix
This undoes a behavior change introduced in
7b18d1d3f1.

The intent was to have ClearValidationState do the right thing for a case
where a collection was bound to the empty prefix, and then used again with
TryUpdateModel.

This change was implemented by saying that a key like "[0].Foo" is a match
for the prefix of "Foo". This isn't really right, and it's only
interesting for the ClearValidationState case.

The problem is that we don't know what the keys look like for a
collection. We can assume that they start with [0] but that's not really a
guarantee, it's a guess.

This change fixes the behavior of StartsWithModel, and move the
responsibility for this case back into ClearValidationState.

This change also removes the call to ClearValidationState from
TryUpdateModel. If you need this behavior, then call ClearValidationState
manually. Trying to bind and then re-bind a model object isn't really what
we intend.
2016-02-17 11:16:16 -08:00
samples [Fixes #4051] Split OutputFormatter into OutputFormatter and TextOutputFormatter 2016-02-12 12:04:18 -08:00
src Fix behavior of StartsWithPrefix 2016-02-17 11:16:16 -08:00
test Fix behavior of StartsWithPrefix 2016-02-17 11:16:16 -08:00
tools Strong name everything. 2015-11-03 21:16:49 -08:00
.gitattributes
.gitignore Add `launchSettings.json` to `.gitignore`. 2015-11-11 12:12:16 -08:00
.travis.yml Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
CONTRIBUTING.md
LICENSE.txt
Mvc.NoFun.sln Reducing ModelBindingContext allocations 2016-02-02 12:10:43 -08:00
Mvc.sln Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
NuGet.config Revert DependencyContext changes untill dotnet-cli packages get sorted out 2016-01-08 15:59:53 -08:00
NuGetPackageVerifier.json Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
README.md Add link to ASP.NET MVC Boilerplate 2015-12-31 11:41:12 -08:00
Settings.StyleCop
appveyor.yml
build.cmd Fix local build break 2015-10-12 12:59:16 -07:00
build.sh React to aspnet/Universe#290 fix 2015-10-12 10:42:45 -07:00
global.json Undo global.json change 2015-12-28 11:03:17 -08: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.

Related community projects:

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.