1 implementation of CreateModelExpression
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
ModelExpressionProvider.cs (1)
45
public ModelExpression
CreateModelExpression
<TModel, TValue>(
13 references to CreateModelExpression
Microsoft.AspNetCore.Mvc.Razor.Test (13)
RazorPageCreateModelExpressionTest.cs (13)
137
var result = page.ModelExpressionProvider.
CreateModelExpression
(page.ViewData, model => somethingElse);
155
var result = page.ModelExpressionProvider.
CreateModelExpression
(page.ViewData, model => model.Id);
173
var result = page.ModelExpressionProvider.
CreateModelExpression
(page.ViewData, model => model.SubModel.Id);
191
var result = page.ModelExpressionProvider.
CreateModelExpression
(page.ViewData, model => model.SubModel.SubSubModel.Id);
210
var result = page.ModelExpressionProvider.
CreateModelExpression
(page.ViewData, model => somethingElse);
228
var result = page.ModelExpressionProvider.
CreateModelExpression
(page.ViewData, model => model.Name);
246
var result = page.ModelExpressionProvider.
CreateModelExpression
(page.ViewData, model => model.SubModel.SubSubModel.Name);
264
var result = page.ModelExpressionProvider.
CreateModelExpression
(page.ViewData, model => model.SubModel.Name);
337
return ModelExpressionProvider.
CreateModelExpression
(ViewData, m => m);
342
return ModelExpressionProvider.
CreateModelExpression
(ViewData, m => Model);
355
return ModelExpressionProvider.
CreateModelExpression
(ViewData, m => m.Model);
360
return ModelExpressionProvider.
CreateModelExpression
(ViewData, m => ViewData.Model);
365
return ModelExpressionProvider.
CreateModelExpression
(ViewData, m => ViewContext.ViewData.Model);