34 instantiations of ModelExpression
Microsoft.AspNetCore.Mvc.TagHelpers.Test (32)
InputTagHelperTest.cs (13)
265
var modelExpression = new
ModelExpression
(name: string.Empty, modelExplorer: modelExplorer);
308
var modelExpression = new
ModelExpression
(name: string.Empty, modelExplorer: modelExplorer);
360
var modelExpression = new
ModelExpression
(name: string.Empty, modelExplorer: modelExplorer);
416
var modelExpression = new
ModelExpression
(name: string.Empty, modelExplorer: modelExplorer);
472
var modelExpression = new
ModelExpression
(name: string.Empty, modelExplorer: modelExplorer);
521
var modelExpression = new
ModelExpression
(name: string.Empty, modelExplorer: modelExplorer);
847
var modelExpression = new
ModelExpression
(name: string.Empty, modelExplorer: modelExplorer);
922
var modelExpression = new
ModelExpression
(name: string.Empty, modelExplorer: modelExplorer);
981
var modelExpression = new
ModelExpression
(name: string.Empty, modelExplorer: modelExplorer);
1041
var modelExpression = new
ModelExpression
(name: string.Empty, modelExplorer: modelExplorer);
1101
var modelExpression = new
ModelExpression
(name: string.Empty, modelExplorer: modelExplorer);
1343
var modelExpression = new
ModelExpression
(name: string.Empty, modelExplorer: modelExplorer);
2406
var modelExpression = new
ModelExpression
(expressionName, modelExplorer);
LabelTagHelperTest.cs (2)
175
var modelExpression = new
ModelExpression
(propertyPath, modelExplorer);
301
var modelExpression = new
ModelExpression
(name, modelExplorer);
PartialTagHelperTest.cs (6)
75
For = new
ModelExpression
("Property", propertyModelExplorer),
117
For = new
ModelExpression
("Property", propertyModelExplorer),
139
For = new
ModelExpression
("Property", propertyModelExplorer),
324
var modelExpression = new
ModelExpression
("Property", propertyModelExplorer);
371
var modelExpression = new
ModelExpression
("Property", propertyModelExplorer);
418
var modelExpression = new
ModelExpression
("Property", propertyModelExplorer);
SelectTagHelperTest.cs (7)
196
var modelExpression = new
ModelExpression
(nameAndId.Name, modelExplorer);
286
var modelExpression = new
ModelExpression
(nameAndId.Name, modelExplorer);
466
var modelExpression = new
ModelExpression
(name: string.Empty, modelExplorer: modelExplorer);
580
var modelExpression = new
ModelExpression
(string.Empty, modelExplorer);
656
var modelExpression = new
ModelExpression
(propertyName, modelExplorer);
715
var modelExpression = new
ModelExpression
(name: string.Empty, modelExplorer: modelExplorer);
747
var modelExpression = new
ModelExpression
(name: string.Empty, modelExplorer: modelExplorer);
TextAreaTagHelperTest.cs (3)
114
var modelExpression = new
ModelExpression
(nameAndId.Name, modelExplorer);
170
var modelExpression = new
ModelExpression
(name: string.Empty, modelExplorer: modelExplorer);
203
var modelExpression = new
ModelExpression
(name: string.Empty, modelExplorer: modelExplorer);
ValidationMessageTagHelperTest.cs (1)
458
return new
ModelExpression
(
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
ModelExpressionProvider.cs (2)
60
return new
ModelExpression
(name, modelExplorer);
85
return new
ModelExpression
(expression, modelExplorer);
89 references to ModelExpression
Microsoft.AspNetCore.Mvc.Razor.Test (17)
RazorPageCreateModelExpressionTest.cs (17)
35
var
modelExpression = page.CreateModelExpression1();
60
var
modelExpression = page.CreateModelExpression2();
103
Func<NotQuiteIdentityRazorPage,
ModelExpression
> createModelExpression,
115
var
modelExpression = createModelExpression(page);
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);
335
public
ModelExpression
CreateModelExpression1()
340
public
ModelExpression
CreateModelExpression2()
353
public
ModelExpression
CreateModelExpression1()
358
public
ModelExpression
CreateModelExpression2()
363
public
ModelExpression
CreateModelExpression3()
Microsoft.AspNetCore.Mvc.TagHelpers (10)
InputTagHelper.cs (2)
93
public
ModelExpression
For { get; set; }
133
/// valid with an empty <see cref="
ModelExpression
.Name"/>.
LabelTagHelper.cs (1)
46
public
ModelExpression
For { get; set; }
PartialTagHelper.cs (2)
27
private
ModelExpression
_for;
54
public
ModelExpression
For
SelectTagHelper.cs (2)
54
public
ModelExpression
For { get; set; }
68
/// valid with an empty <see cref="
ModelExpression
.Name"/>.
TextAreaTagHelper.cs (2)
46
public
ModelExpression
For { get; set; }
53
/// valid with an empty <see cref="
ModelExpression
.Name"/>.
ValidationMessageTagHelper.cs (1)
48
public
ModelExpression
For { get; set; }
Microsoft.AspNetCore.Mvc.TagHelpers.Test (33)
InputTagHelperTest.cs (13)
265
var
modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer);
308
var
modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer);
360
var
modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer);
416
var
modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer);
472
var
modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer);
521
var
modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer);
847
var
modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer);
922
var
modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer);
981
var
modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer);
1041
var
modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer);
1101
var
modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer);
1343
var
modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer);
2406
var
modelExpression = new ModelExpression(expressionName, modelExplorer);
LabelTagHelperTest.cs (2)
175
var
modelExpression = new ModelExpression(propertyPath, modelExplorer);
301
var
modelExpression = new ModelExpression(name, modelExplorer);
PartialTagHelperTest.cs (3)
324
var
modelExpression = new ModelExpression("Property", propertyModelExplorer);
371
var
modelExpression = new ModelExpression("Property", propertyModelExplorer);
418
var
modelExpression = new ModelExpression("Property", propertyModelExplorer);
SelectTagHelperTest.cs (7)
196
var
modelExpression = new ModelExpression(nameAndId.Name, modelExplorer);
286
var
modelExpression = new ModelExpression(nameAndId.Name, modelExplorer);
466
var
modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer);
580
var
modelExpression = new ModelExpression(string.Empty, modelExplorer);
656
var
modelExpression = new ModelExpression(propertyName, modelExplorer);
715
var
modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer);
747
var
modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer);
TextAreaTagHelperTest.cs (3)
114
var
modelExpression = new ModelExpression(nameAndId.Name, modelExplorer);
170
var
modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer);
203
var
modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer);
ValidationMessageTagHelperTest.cs (5)
26
var
modelExpression = CreateModelExpression("Name");
98
var
modelExpression = CreateModelExpression(string.Empty);
140
var
modelExpression = CreateModelExpression(string.Empty);
238
var
modelExpression = CreateModelExpression("Hello");
455
private static
ModelExpression
CreateModelExpression(string name)
Microsoft.AspNetCore.Mvc.ViewFeatures (27)
HtmlHelperOfT.cs (17)
97
var
modelExpression = GetModelExpression(expression);
114
var
modelExpression = GetModelExpression(expression);
132
var
modelExpression = GetModelExpression(expression);
145
var
modelExpression = GetModelExpression(expression);
155
var
modelExpression = _modelExpressionProvider.CreateModelExpression(
179
var
modelExpression = GetModelExpression(expression);
194
var
modelExpression = GetModelExpression(expression);
219
var
modelExpression = GetModelExpression(expression);
231
var
modelExpression = GetModelExpression(expression);
253
var
modelExpression = GetModelExpression(expression);
270
var
modelExpression = GetModelExpression(expression);
288
var
modelExpression = GetModelExpression(expression);
300
var
modelExpression = GetModelExpression(expression);
309
private
ModelExpression
GetModelExpression<TResult>(Expression<Func<TModel, TResult>> expression)
336
var
modelExpression = GetModelExpression(expression);
349
var
modelExpression = GetModelExpression(expression);
363
var
modelExpression = GetModelExpression(expression);
IModelExpressionProvider.cs (4)
9
/// Provides <see cref="
ModelExpression
"/> for a Lambda expression.
14
/// Returns a <see cref="
ModelExpression
"/> instance describing the given <paramref name="expression"/>.
21
/// <returns>A new <see cref="
ModelExpression
"/> instance describing the given <paramref name="expression"/>.</returns>
22
ModelExpression
CreateModelExpression<TModel, TValue>(
ModelExpression.cs (1)
14
/// Initializes a new instance of the <see cref="
ModelExpression
"/> class.
ModelExpressionProvider.cs (5)
11
/// Provides <see cref="
ModelExpression
"/> for expressions.
45
public
ModelExpression
CreateModelExpression<TModel, TValue>(
64
/// Returns a <see cref="
ModelExpression
"/> instance describing the given <paramref name="expression"/>.
70
/// <returns>A new <see cref="
ModelExpression
"/> instance describing the given <paramref name="expression"/>.</returns>
71
public
ModelExpression
CreateModelExpression<TModel>(
TagHelpersWebSite (2)
TagHelpers\DictionaryPrefixTestTagHelper.cs (2)
14
public IDictionary<string,
ModelExpression
> PrefixValues { get; set; } = new Dictionary<string,
ModelExpression
>();