11 writes to ViewData
Microsoft.AspNetCore.Mvc.RazorPages (3)
Infrastructure\PageActionInvokerProvider.cs (1)
85
ViewData
= cacheEntry.ViewDataFactory(_modelMetadataProvider, actionContext.ModelState),
Infrastructure\PageRequestDelegateFactory.cs (1)
99
pageContext.
ViewData
= cacheEntry.ViewDataFactory(_modelMetadataProvider, pageContext.ModelState);
Infrastructure\PageResultExecutor.cs (1)
90
pageContext.
ViewData
= currentViewContext.ViewData;
Microsoft.AspNetCore.Mvc.RazorPages.Test (8)
Infrastructure\DefaultPageFactoryProviderTest.cs (1)
221
ViewData
= new ViewDataDictionary<TestPage>(modelMetadataProvider, new ModelStateDictionary())
Infrastructure\PageActionInvokerTest.cs (1)
1514
pageContext.
ViewData
= viewDataFactory(new EmptyModelMetadataProvider(), pageContext.ModelState);
PageModelTest.cs (5)
1729
ViewData
= viewData,
1945
ViewData
= viewData
1969
ViewData
= viewData
1993
ViewData
= viewData,
2015
ViewData
= viewData,
PageTest.cs (1)
31
ViewData
= viewData,
17 references to ViewData
Microsoft.AspNetCore.Mvc.RazorPages (9)
Infrastructure\PageActionInvoker.cs (6)
113
_pageContext.
ViewData
,
125
pageResult.ViewData = pageResult.ViewData ?? _pageContext.
ViewData
;
142
_pageContext.
ViewData
.Model = _pageModel;
152
_pageContext.
ViewData
,
166
_pageContext.
ViewData
.Model = _page;
295
pageResult.ViewData = pageResult.ViewData ?? _pageContext.
ViewData
;
Infrastructure\PageResultExecutor.cs (2)
58
pageContext.
ViewData
.Model = result.Model;
100
viewDataValuesProvider?.ProvideViewDataValues(pageContext.
ViewData
);
PageModel.cs (1)
150
public ViewDataDictionary ViewData => PageContext?.
ViewData
!;
Microsoft.AspNetCore.Mvc.RazorPages.Test (7)
Infrastructure\DefaultPageFactoryProviderTest.cs (2)
230
ViewData = pageContext.
ViewData
,
242
Assert.Same(pageContext.
ViewData
, testPage.ViewData);
Infrastructure\PageActionInvokerProviderTest.cs (1)
145
Assert.NotNull(Assert.IsType<ViewDataDictionary<TestPageModel>>(pageContext.
ViewData
));
Infrastructure\PageActionInvokerTest.cs (4)
256
Assert.IsType<ViewDataDictionary<PocoModel>>(page.PageContext.
ViewData
);
257
Assert.Null(page.PageContext.
ViewData
.Model);
316
Assert.IsType<ViewDataDictionary<TestPageModel>>(pageModel.PageContext.
ViewData
);
322
Assert.Same(pageModel.PageContext.
ViewData
, pageResult.ViewData);
RazorBuildWebSite.Views (1)
Pages\Rzc\Page.cs (1)
37
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<Page_Model> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<Page_Model>)PageContext?.
ViewData
;