aspnetcore/test/WebSites
Doug Bunting a0c8834c70 Preserve existing metadata in `ViewDataDictionary` where possible
- #4116
- generalize rules for `ModelMetadata` creation; minimize metadata changes when Model is updated
 - down to a single special case in VDD for `Nullable<T>`
 - note existing functional tests did not need to change
- remove `ViewDataDictionary(ViewDataDictionary, object)` constructor; use `new VDD<object>(source, model)`
- allow all `Model` assignments in a view component
 - copy-constructed VDD in `ViewComponentContext` previously preserved the source's declared type

nits:
- do not call `virtual SetModel()` method from constructor; now mostly redundant
 - logic in copy constructor and `SetModel()` is consistent but different enough to keep code separate
- add some missing doc comments
- fix doc comment property versus type confusion; never need to specify `ViewDataDictionary.` prefix
- fix a few `TemplateBuilder` comments and remove unnecessary `model: null` argument to VDD constructor
2016-04-08 14:44:36 -07:00
..
ApiExplorerWebSite Update samples and react to Kestrel extensions 2016-03-30 17:33:25 -07:00
ApplicationModelWebSite Update samples and react to Kestrel extensions 2016-03-30 17:33:25 -07:00
BasicWebSite [Fixes #3732] Simplify controller discovery. 2016-03-31 10:50:26 -07:00
ControllersFromServicesClassLibrary [Fixes #3732] Simplify controller discovery. 2016-03-31 10:50:26 -07:00
ControllersFromServicesWebSite [Fixes #4087] Add support for AddTagHelpersAsServices() 2016-04-02 10:32:48 -07:00
CorsWebSite Update samples and react to Kestrel extensions 2016-03-30 17:33:25 -07:00
ErrorPageMiddlewareWebSite Update samples and react to Kestrel extensions 2016-03-30 17:33:25 -07:00
FilesWebSite Update samples and react to Kestrel extensions 2016-03-30 17:33:25 -07:00
FiltersWebSite Update samples and react to Kestrel extensions 2016-03-30 17:33:25 -07:00
FormatterWebSite Update samples and react to Kestrel extensions 2016-03-30 17:33:25 -07:00
HtmlGenerationWebSite Preserve existing metadata in `ViewDataDictionary` where possible 2016-04-08 14:44:36 -07:00
Microsoft.AspNetCore.Mvc.TestConfiguration
RazorPageExecutionInstrumentationWebSite Update samples and react to Kestrel extensions 2016-03-30 17:33:25 -07:00
RazorWebSite Update samples and react to Kestrel extensions 2016-03-30 17:33:25 -07:00
RoutingWebSite Update samples and react to Kestrel extensions 2016-03-30 17:33:25 -07:00
SimpleWebSite Update samples and react to Kestrel extensions 2016-03-30 17:33:25 -07:00
TagHelpersWebSite Update samples and react to Kestrel extensions 2016-03-30 17:33:25 -07:00
UserClassLibrary
VersioningWebSite Update samples and react to Kestrel extensions 2016-03-30 17:33:25 -07:00
WebApiCompatShimWebSite Explicitly add tracesource dependency 2016-04-05 00:02:49 -07:00
XmlFormattersWebSite Update samples and react to Kestrel extensions 2016-03-30 17:33:25 -07:00