Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Add a feature that allows binding properties stashed in the TempDataDictionary #5600

Closed
pranavkm opened this issue Dec 6, 2016 · 2 comments

Comments

@pranavkm
Copy link
Contributor

pranavkm commented Dec 6, 2016

This is based on a feature prototype in Razor pages. Essentially properties annotated with TempData attribute are round-tripped for a single request. Some cleverness is required to determine if the value of the property was changed to determine if it needs to be stashed again in TempData (https://github.com/aspnet/RazorPages/blob/master/src/Microsoft.AspNetCore.Mvc.RazorPages/TempDataPropertyTracker.cs).

@pranavkm
Copy link
Contributor Author

pranavkm commented Dec 6, 2016

cc @rynowak \ @DamianEdwards

@DamianEdwards
Copy link
Member

The idea is we'd implement this as a filter (filters?) so that it would be supported on Controllers and Pages, and possibly even things like Formatters and Tag Helpers. In theory, it could be supported on any MVC primitive that's activated per-request.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants