26 instantiations of ModelExplorer
Microsoft.AspNetCore.Mvc.ViewFeatures (14)
DefaultDisplayTemplates.cs (1)
120
var modelExplorer = new
ModelExplorer
(
DefaultEditorTemplates.cs (1)
102
var modelExplorer = new
ModelExplorer
(
HtmlHelper.cs (1)
666
modelExplorer = new
ModelExplorer
(
ModelExplorer.cs (8)
220
return new
ModelExplorer
(_metadataProvider, Metadata, model);
224
return new
ModelExplorer
(_metadataProvider, Container, Metadata, model);
272
return new
ModelExplorer
(_metadataProvider, this, propertyMetadata, modelAccessor);
297
return new
ModelExplorer
(_metadataProvider, this, propertyMetadata, model);
345
return new
ModelExplorer
(_metadataProvider, this, metadata, model);
394
return new
ModelExplorer
(_metadataProvider, this, metadata, modelAccessor);
416
return new
ModelExplorer
(_metadataProvider, this, propertyMetadata, modelAccessor: null);
424
return new
ModelExplorer
(_metadataProvider, this, propertyMetadata, modelAccessor);
ModelMetadataProviderExtensions.cs (1)
32
return new
ModelExplorer
(provider, modelMetadata, model);
ViewDataDictionary.cs (2)
223
ModelExplorer = new
ModelExplorer
(
477
ModelExplorer = new
ModelExplorer
(_metadataProvider, ModelExplorer.Container, ModelMetadata, value);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (12)
DefaultHtmlGeneratorTest.cs (9)
200
var modelExplorer = new
ModelExplorer
(metadataProvider, modelMetadata, null);
224
var modelExplorer = new
ModelExplorer
(metadataProvider, modelMetadata, null);
248
var modelExplorer = new
ModelExplorer
(metadataProvider, modelMetadata, null);
270
var modelExplorer = new
ModelExplorer
(metadataProvider, modelMetadata, null);
292
var modelExplorer = new
ModelExplorer
(metadataProvider, modelMetadata, null);
315
var modelExplorer = new
ModelExplorer
(metadataProvider, modelMetadata, null);
368
var modelExplorer = new
ModelExplorer
(metadataProvider, modelMetadata, null);
398
var modelExplorer = new
ModelExplorer
(metadataProvider, modelMetadata, null);
423
var modelExplorer = new
ModelExplorer
(metadataProvider, modelMetadata, null);
FormatWeekHelperTest.cs (1)
33
var modelExplorer = new
ModelExplorer
(provider, metadata, model);
ViewDataDictionaryTest.cs (2)
350
var explorer = new
ModelExplorer
(metadataProvider, metadata, model: null);
375
var explorer = new
ModelExplorer
(metadataProvider, metadata, model: null);
307 references to ModelExplorer
Microsoft.AspNetCore.Mvc.Razor.Test (3)
RazorPageCreateModelExpressionTest.cs (3)
24
var
modelExplorer = viewContext.ViewData.ModelExplorer.GetExplorerForProperty(
49
var
modelExplorer = viewContext.ViewData.ModelExplorer.GetExplorerForProperty(
110
var
modelExplorer = viewData.ModelExplorer;
Microsoft.AspNetCore.Mvc.TagHelpers (9)
InputTagHelper.cs (9)
181
var
modelExplorer = For.ModelExplorer;
278
/// <param name="modelExplorer">The <see cref="
ModelExplorer
"/> to use.</param>
282
protected string GetInputType(
ModelExplorer
modelExplorer, out string inputTypeHint)
298
ModelExplorer
modelExplorer,
374
private TagBuilder GenerateRadio(
ModelExplorer
modelExplorer, IDictionary<string, object> htmlAttributes)
396
ModelExplorer
modelExplorer,
450
private TagBuilder GenerateHidden(
ModelExplorer
modelExplorer, IDictionary<string, object> htmlAttributes)
472
private string GetFormat(
ModelExplorer
modelExplorer, string inputTypeHint, string inputType)
524
private static IEnumerable<string> GetInputTypeHints(
ModelExplorer
modelExplorer)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (47)
InputTagHelperTest.cs (14)
264
var
modelExplorer = metadataProvider.GetModelExplorerForType(typeof(bool), model);
307
var
modelExplorer = metadataProvider.GetModelExplorerForType(typeof(int), model);
359
var
modelExplorer = metadataProvider.GetModelExplorerForType(typeof(bool), model);
415
var
modelExplorer = metadataProvider.GetModelExplorerForType(typeof(bool), model);
471
var
modelExplorer = metadataProvider.GetModelExplorerForType(typeof(string), model);
520
var
modelExplorer = metadataProvider.GetModelExplorerForType(typeof(int), model);
846
var
modelExplorer = metadataProvider.GetModelExplorerForType(typeof(bool), model);
921
var
modelExplorer = metadataProvider.GetModelExplorerForType(typeof(bool), model);
980
var
modelExplorer = metadataProvider.GetModelExplorerForType(typeof(bool), model);
1040
var
modelExplorer = metadataProvider.GetModelExplorerForType(typeof(bool), model);
1100
var
modelExplorer = metadataProvider.GetModelExplorerForType(typeof(bool), model);
1342
var
modelExplorer = metadataProvider.GetModelExplorerForType(typeof(bool), model);
2401
var
containerExplorer = metadataProvider.GetModelExplorerForType(containerType, container);
2404
var
modelExplorer = containerExplorer.GetExplorerForExpression(propertyMetadata, model);
LabelTagHelperTest.cs (4)
169
var
containerExplorer = metadataProvider.GetModelExplorerForType(containerType, model);
172
var
modelExplorer = containerExplorer.GetExplorerForExpression(propertyMetadata, modelAccessor());
299
var
containerExplorer = metadataProvider.GetModelExplorerForType(typeof(NestedModel), model: null);
300
var
modelExplorer = containerExplorer.GetExplorerForProperty(name);
PartialTagHelperTest.cs (12)
69
var
containerModelExplorer = modelMetadataProvider.GetModelExplorerForType(
72
var
propertyModelExplorer = containerModelExplorer.GetExplorerForProperty(nameof(TestModel.Property));
110
var
containerModelExplorer = modelMetadataProvider.GetModelExplorerForType(
113
var
propertyModelExplorer = containerModelExplorer.GetExplorerForProperty(nameof(TestModel.Property));
132
var
containerModelExplorer = modelMetadataProvider.GetModelExplorerForType(
135
var
propertyModelExplorer = containerModelExplorer.GetExplorerForProperty(nameof(TestModel.Property));
319
var
containerModelExplorer = modelMetadataProvider.GetModelExplorerForType(
322
var
propertyModelExplorer = containerModelExplorer.GetExplorerForProperty(nameof(TestModel.Property));
366
var
containerModelExplorer = modelMetadataProvider.GetModelExplorerForType(
369
var
propertyModelExplorer = containerModelExplorer.GetExplorerForProperty(nameof(TestModel.Property));
413
var
containerModelExplorer = modelMetadataProvider.GetModelExplorerForType(
416
var
propertyModelExplorer = containerModelExplorer.GetExplorerForProperty(nameof(TestModel.Property));
SelectTagHelperTest.cs (10)
191
var
containerExplorer = metadataProvider.GetModelExplorerForType(containerType, model);
194
var
modelExplorer = containerExplorer.GetExplorerForExpression(propertyMetadata, modelAccessor());
281
var
containerExplorer = metadataProvider.GetModelExplorerForType(containerType, model);
284
var
modelExplorer = containerExplorer.GetExplorerForExpression(propertyMetadata, modelAccessor());
461
var
containerExplorer = metadataProvider.GetModelExplorerForType(containerType, model);
464
var
modelExplorer = containerExplorer.GetExplorerForExpression(propertyMetadata, modelAccessor());
574
var
modelExplorer = metadataProvider.GetModelExplorerForType(typeof(string), model);
655
var
modelExplorer = metadataProvider.GetModelExplorerForType(modelType, model);
714
var
modelExplorer = metadataProvider.GetModelExplorerForType(typeof(string), model);
746
var
modelExplorer = metadataProvider.GetModelExplorerForType(typeof(string), model);
TestableHtmlGenerator.cs (1)
113
ModelExplorer
modelExplorer,
TextAreaTagHelperTest.cs (4)
100
var
containerExplorer = metadataProvider.GetModelExplorerForType(containerType, container);
103
var
modelExplorer = containerExplorer.GetExplorerForExpression(propertyMetadata, model);
169
var
modelExplorer = metadataProvider.GetModelExplorerForType(typeof(string), model);
202
var
modelExplorer = metadataProvider.GetModelExplorerForType(typeof(string), model);
ValidationMessageTagHelperTest.cs (2)
309
It.IsAny<
ModelExplorer
>(),
372
It.IsAny<
ModelExplorer
>(),
Microsoft.AspNetCore.Mvc.ViewFeatures (184)
DefaultDisplayTemplates.cs (4)
120
var
modelExplorer = new ModelExplorer(
190
var
modelExplorer = viewData.ModelExplorer;
213
foreach (
var
propertyExplorer in modelExplorer.PropertiesInternal)
258
private static bool ShouldShow(
ModelExplorer
modelExplorer, TemplateInfo templateInfo)
DefaultEditorTemplates.cs (4)
102
var
modelExplorer = new ModelExplorer(
232
var
modelExplorer = viewData.ModelExplorer;
255
foreach (
var
propertyExplorer in modelExplorer.PropertiesInternal)
326
private static bool ShouldShow(
ModelExplorer
modelExplorer, TemplateInfo templateInfo)
DefaultHtmlGenerator.cs (20)
189
ModelExplorer
modelExplorer,
235
ModelExplorer
modelExplorer,
330
ModelExplorer
modelExplorer,
362
ModelExplorer
modelExplorer,
400
ModelExplorer
modelExplorer,
425
ModelExplorer
modelExplorer,
507
ModelExplorer
modelExplorer,
531
ModelExplorer
modelExplorer,
598
ModelExplorer
modelExplorer,
686
ModelExplorer
modelExplorer,
712
ModelExplorer
modelExplorer,
902
ModelExplorer
modelExplorer,
1119
/// <param name="modelExplorer">The <see cref="
ModelExplorer
"/>.</param>
1132
ModelExplorer
modelExplorer,
1300
/// <param name="modelExplorer">The <see cref="
ModelExplorer
"/> for the <paramref name="expression"/>.</param>
1305
ModelExplorer
modelExplorer,
1325
/// <param name="modelExplorer">The <see cref="
ModelExplorer
"/> for the <paramref name="expression"/>.</param>
1330
ModelExplorer
modelExplorer,
1363
/// <param name="modelExplorer">The <see cref="
ModelExplorer
"/> for the <paramref name="expression"/>.</param>
1368
ModelExplorer
modelExplorer,
DefaultValidationHtmlAttributeProvider.cs (1)
46
ModelExplorer
modelExplorer,
ExpressionMetadataProvider.cs (7)
14
public static
ModelExplorer
FromLambdaExpression<TModel, TResult>(
125
/// Gets <see cref="
ModelExplorer
"/> for named <paramref name="expression"/> in given
134
/// <see cref="
ModelExplorer
"/> for named <paramref name="expression"/> in given <paramref name="viewData"/>.
136
public static
ModelExplorer
FromStringExpression(
147
var
propertyExplorer = viewData.ModelExplorer.GetExplorerForProperty(expression);
165
ModelExplorer
containerExplorer = viewData.ModelExplorer;
195
private static
ModelExplorer
FromModel(
FormatWeekHelper.cs (1)
10
public static string GetFormattedWeek(
ModelExplorer
modelExplorer)
HtmlHelper.cs (33)
311
var
metadata = ExpressionMetadataProvider.FromStringExpression(expression, ViewData, MetadataProvider);
323
var
modelExplorer = ExpressionMetadataProvider.FromStringExpression(expression, ViewData, MetadataProvider);
330
var
modelExplorer = ExpressionMetadataProvider.FromStringExpression(expression, ViewData, MetadataProvider);
356
var
modelExplorer = ExpressionMetadataProvider.FromStringExpression(expression, ViewData, MetadataProvider);
420
var
modelExplorer = ExpressionMetadataProvider.FromStringExpression(expression, ViewData, MetadataProvider);
471
/// <param name="modelExplorer">The <see cref="
ModelExplorer
"/>.</param>
477
ModelExplorer
modelExplorer,
657
var
modelExplorer = ExpressionMetadataProvider.FromStringExpression(expression, ViewData, MetadataProvider);
706
/// <param name="modelExplorer">The <see cref="
ModelExplorer
"/>.</param>
715
ModelExplorer
modelExplorer,
766
/// <param name="modelExplorer">The <see cref="
ModelExplorer
"/>.</param>
769
protected virtual string GenerateDisplayName(
ModelExplorer
modelExplorer, string expression)
797
/// <param name="modelExplorer">The <see cref="
ModelExplorer
"/>.</param>
799
protected virtual string GenerateDisplayText(
ModelExplorer
modelExplorer)
807
/// <param name="modelExplorer">The <see cref="
ModelExplorer
"/>.</param>
817
ModelExplorer
modelExplorer,
842
/// <param name="modelExplorer">The <see cref="
ModelExplorer
"/>.</param>
848
ModelExplorer
modelExplorer,
995
ModelExplorer
modelExplorer,
1031
/// <param name="modelExplorer">The <see cref="
ModelExplorer
"/>.</param>
1040
ModelExplorer
modelExplorer,
1083
/// <param name="modelExplorer">The <see cref="
ModelExplorer
"/>.</param>
1092
ModelExplorer
modelExplorer,
1127
/// <param name="modelExplorer">The <see cref="
ModelExplorer
"/>.</param>
1136
ModelExplorer
modelExplorer,
1158
/// <param name="modelExplorer">The <see cref="
ModelExplorer
"/>.</param>
1168
ModelExplorer
modelExplorer,
1192
/// <param name="modelExplorer">The <see cref="
ModelExplorer
"/>.</param>
1202
ModelExplorer
modelExplorer,
1226
/// <param name="modelExplorer">The <see cref="
ModelExplorer
"/>.</param>
1236
ModelExplorer
modelExplorer,
1260
/// <param name="modelExplorer">The <see cref="
ModelExplorer
"/>.</param>
1270
ModelExplorer
modelExplorer,
HtmlHelperOfT.cs (3)
327
/// Gets the <see cref="
ModelExplorer
"/> for <paramref name="expression"/>.
331
/// <returns>The <see cref="
ModelExplorer
"/>.</returns>
332
protected
ModelExplorer
GetModelExplorer<TResult>(Expression<Func<TModel, TResult>> expression)
IHtmlGenerator.cs (23)
123
/// <param name="modelExplorer">The <see cref="
ModelExplorer
"/> for the <paramref name="expression"/>.</param>
135
ModelExplorer
modelExplorer,
147
ModelExplorer
modelExplorer,
241
/// <param name="modelExplorer">The <see cref="
ModelExplorer
"/> for the <paramref name="expression"/>.</param>
254
ModelExplorer
modelExplorer,
264
/// <param name="modelExplorer">The <see cref="
ModelExplorer
"/> for the <paramref name="expression"/>.</param>
276
ModelExplorer
modelExplorer,
285
/// <param name="modelExplorer">The <see cref="
ModelExplorer
"/> for the <paramref name="expression"/>.</param>
297
ModelExplorer
modelExplorer,
306
/// <param name="modelExplorer">The <see cref="
ModelExplorer
"/> for the <paramref name="expression"/>.</param>
319
ModelExplorer
modelExplorer,
362
/// <see cref="
ModelExplorer
"/> for the <paramref name="expression"/>. If <c>null</c>, determines validation
393
ModelExplorer
modelExplorer,
405
/// <see cref="
ModelExplorer
"/> for the <paramref name="expression"/>. If <c>null</c>, determines validation
442
ModelExplorer
modelExplorer,
467
/// <param name="modelExplorer">The <see cref="
ModelExplorer
"/> for the <paramref name="expression"/>.</param>
480
ModelExplorer
modelExplorer,
490
/// <param name="modelExplorer">The <see cref="
ModelExplorer
"/> for the <paramref name="expression"/>.</param>
503
ModelExplorer
modelExplorer,
514
/// <param name="modelExplorer">The <see cref="
ModelExplorer
"/> for the <paramref name="expression"/>.</param>
533
ModelExplorer
modelExplorer,
565
/// <see cref="
ModelExplorer
"/> for the <paramref name="expression"/>. If <c>null</c>, calculates the
596
ModelExplorer
modelExplorer,
ModelExplorer.cs (57)
20
private
ModelExplorer
[] _properties;
23
/// Creates a new <see cref="
ModelExplorer
"/>.
42
/// Creates a new <see cref="
ModelExplorer
"/>.
45
/// <param name="container">The container <see cref="
ModelExplorer
"/>.</param>
50
ModelExplorer
container,
65
/// Creates a new <see cref="
ModelExplorer
"/>.
68
/// <param name="container">The container <see cref="
ModelExplorer
"/>.</param>
73
ModelExplorer
container,
87
/// Gets the container <see cref="
ModelExplorer
"/>.
92
/// <see cref="GetExplorerForProperty(string)"/>. In this case, the returned <see cref="
ModelExplorer
"/> will
99
/// occur when constructing a <see cref="
ModelExplorer
"/> based on evaluation of a complex
103
/// If calling code relies on a parent-child relationship between <see cref="
ModelExplorer
"/>
107
public
ModelExplorer
Container { get; }
119
/// <see cref="
ModelExplorer
"/> was provided with one.
140
/// <see cref="
ModelExplorer
"/> was provided with one.
170
/// Includes a <see cref="
ModelExplorer
"/> for each property of the <see cref="ModelMetadata"/>
173
public IEnumerable<
ModelExplorer
> Properties => PropertiesInternal;
175
internal
ModelExplorer
[] PropertiesInternal
185
_properties = new
ModelExplorer
[properties.Count];
212
/// Gets a <see cref="
ModelExplorer
"/> for the given <paramref name="model"/> value.
215
/// <returns>A <see cref="
ModelExplorer
"/>.</returns>
216
public
ModelExplorer
GetExplorerForModel(object model)
229
/// Gets a <see cref="
ModelExplorer
"/> for the property with given <paramref name="name"/>, or <c>null</c> if
233
/// <returns>A <see cref="
ModelExplorer
"/>, or <c>null</c>.</returns>
234
public
ModelExplorer
GetExplorerForProperty(string name)
240
var
property = PropertiesInternal[i];
251
/// Gets a <see cref="
ModelExplorer
"/> for the property with given <paramref name="name"/>, or <c>null</c> if
256
/// <returns>A <see cref="
ModelExplorer
"/>, or <c>null</c>.</returns>
260
public
ModelExplorer
GetExplorerForProperty(string name, Func<object, object> modelAccessor)
276
/// Gets a <see cref="
ModelExplorer
"/> for the property with given <paramref name="name"/>, or <c>null</c> if
281
/// <returns>A <see cref="
ModelExplorer
"/>, or <c>null</c>.</returns>
285
public
ModelExplorer
GetExplorerForProperty(string name, object model)
301
/// Gets a <see cref="
ModelExplorer
"/> for the provided model value and model <see cref="Type"/>.
305
/// <returns>A <see cref="
ModelExplorer
"/>.</returns>
308
/// A <see cref="
ModelExplorer
"/> created by <see cref="GetExplorerForExpression(Type, object)"/>
310
/// in the current <see cref="
ModelExplorer
"/> instance.
313
/// The returned <see cref="
ModelExplorer
"/> will have the current instance set as its <see cref="Container"/>.
316
public
ModelExplorer
GetExplorerForExpression(Type modelType, object model)
325
/// Gets a <see cref="
ModelExplorer
"/> for the provided model value and model <see cref="Type"/>.
329
/// <returns>A <see cref="
ModelExplorer
"/>.</returns>
332
/// A <see cref="
ModelExplorer
"/> created by
335
/// in the current <see cref="
ModelExplorer
"/> instance.
338
/// The returned <see cref="
ModelExplorer
"/> will have the current instance set as its <see cref="Container"/>.
341
public
ModelExplorer
GetExplorerForExpression(ModelMetadata metadata, object model)
349
/// Gets a <see cref="
ModelExplorer
"/> for the provided model value and model <see cref="Type"/>.
353
/// <returns>A <see cref="
ModelExplorer
"/>.</returns>
356
/// A <see cref="
ModelExplorer
"/> created by
359
/// in the current <see cref="
ModelExplorer
"/> instance.
362
/// The returned <see cref="
ModelExplorer
"/> will have the current instance set as its <see cref="Container"/>.
365
public
ModelExplorer
GetExplorerForExpression(Type modelType, Func<object, object> modelAccessor)
374
/// Gets a <see cref="
ModelExplorer
"/> for the provided model value and model <see cref="Type"/>.
378
/// <returns>A <see cref="
ModelExplorer
"/>.</returns>
381
/// A <see cref="
ModelExplorer
"/> created by
384
/// in the current <see cref="
ModelExplorer
"/> instance.
387
/// The returned <see cref="
ModelExplorer
"/> will have the current instance set as its <see cref="Container"/>.
390
public
ModelExplorer
GetExplorerForExpression(ModelMetadata metadata, Func<object, object> modelAccessor)
410
private
ModelExplorer
CreateExplorerForProperty(
ModelExplorerExtensions.cs (7)
10
/// Extension methods for <see cref="
ModelExplorer
"/>.
15
/// Gets a simple display string for the <see cref="
ModelExplorer
.Model"/> property
18
/// <param name="modelExplorer">The <see cref="
ModelExplorer
"/>.</param>
23
/// <see cref="
ModelExplorer
.Model" /> converted to string (if the result is interesting),
29
public static string GetSimpleDisplayText(this
ModelExplorer
modelExplorer)
35
var
propertyExplorer = modelExplorer.GetExplorerForProperty(
80
var
firstProperty = modelExplorer.PropertiesInternal[0];
ModelExpression.cs (3)
22
public ModelExpression(string name,
ModelExplorer
modelExplorer)
54
/// Getting <see cref="
ModelExplorer
.Model"/> will evaluate a compiled version of the original
57
public
ModelExplorer
ModelExplorer { get; }
ModelExpressionProvider.cs (2)
53
var
modelExplorer = ExpressionMetadataProvider.FromLambdaExpression(expression, viewData, _modelMetadataProvider);
78
var
modelExplorer = ExpressionMetadataProvider.FromStringExpression(expression, viewData, _modelMetadataProvider);
ModelMetadataProviderExtensions.cs (3)
14
/// Gets a <see cref="
ModelExplorer
"/> for the provided <paramref name="modelType"/> and
21
/// A <see cref="
ModelExplorer
"/> for the <paramref name="modelType"/> and <paramref name="model"/>.
23
public static
ModelExplorer
GetModelExplorerForType(
TemplateBuilder.cs (2)
20
private readonly
ModelExplorer
_modelExplorer;
33
ModelExplorer
modelExplorer,
TemplateInfo.cs (2)
113
/// <param name="modelExplorer">The <see cref="
ModelExplorer
"/>.</param>
115
public bool Visited(
ModelExplorer
modelExplorer)
ValidationHelpers.cs (1)
27
ModelExplorer
modelExplorer)
ValidationHtmlAttributeProvider.cs (4)
18
/// <param name="modelExplorer">The <see cref="
ModelExplorer
"/> for an expression.</param>
29
ModelExplorer
modelExplorer,
38
/// <param name="modelExplorer">The <see cref="
ModelExplorer
"/> for the <paramref name="expression"/>.</param>
52
ModelExplorer
modelExplorer,
ViewDataDictionary.cs (7)
31
/// <see cref="IModelMetadataProvider"/> instance used to create <see cref="ViewFeatures.
ModelExplorer
"/>
68
/// <see cref="IModelMetadataProvider"/> instance used to create <see cref="ViewFeatures.
ModelExplorer
"/>
81
/// <see cref="IModelMetadataProvider"/> instance used to create <see cref="ViewFeatures.
ModelExplorer
"/>
101
/// <see cref="IModelMetadataProvider"/> instance used to create <see cref="ViewFeatures.
ModelExplorer
"/>
294
/// Gets or sets the <see cref="ViewFeatures.
ModelExplorer
"/> for the <see cref="Model"/>.
296
public
ModelExplorer
ModelExplorer { get; set; } = default!;
434
/// Set <see cref="ModelExplorer"/> to ensure <see cref="Model"/> and <see cref="
ModelExplorer
.Model"/>
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (64)
DefaultHtmlGeneratorTest.cs (20)
54
var
modelExplorer = metadataProvider.GetModelExplorerForType(typeof(string), model: null);
74
var
modelExplorer = metadataProvider.GetModelExplorerForType(typeof(string), model: null);
87
var
modelExplorer = metadataProvider.GetModelExplorerForType(typeof(string), model: null);
115
var
modelExplorer = metadataProvider.GetModelExplorerForType(typeof(string), model: null);
143
var
modelExplorer = metadataProvider.GetModelExplorerForType(typeof(string), model: null);
170
var
modelExplorer = metadataProvider.GetModelExplorerForType(typeof(string), model: null);
200
var
modelExplorer = new ModelExplorer(metadataProvider, modelMetadata, null);
224
var
modelExplorer = new ModelExplorer(metadataProvider, modelMetadata, null);
248
var
modelExplorer = new ModelExplorer(metadataProvider, modelMetadata, null);
270
var
modelExplorer = new ModelExplorer(metadataProvider, modelMetadata, null);
292
var
modelExplorer = new ModelExplorer(metadataProvider, modelMetadata, null);
315
var
modelExplorer = new ModelExplorer(metadataProvider, modelMetadata, null);
368
var
modelExplorer = new ModelExplorer(metadataProvider, modelMetadata, null);
398
var
modelExplorer = new ModelExplorer(metadataProvider, modelMetadata, null);
423
var
modelExplorer = new ModelExplorer(metadataProvider, modelMetadata, null);
443
var
modelExplorer = metadataProvider.GetModelExplorerForType(typeof(string), model: null);
470
var
modelExplorer = metadataProvider.GetModelExplorerForType(typeof(string), model: null);
620
var
modelExplorer = metadataProvider.GetModelExplorerForType(typeof(string), "ignored model value");
668
var
modelExplorer = metadataProvider.GetModelExplorerForType(typeof(string), rawValue);
774
var
modelExplorer =
DefaultValidationHtmlAttributeProviderTest.cs (11)
30
var
modelExplorer = metadataProvider
65
var
modelExplorer = metadataProvider
101
var
modelExplorer = metadataProvider
124
var
modelExplorer = metadataProvider
132
It.IsAny<
ModelExplorer
>(),
149
It.IsAny<
ModelExplorer
>(),
165
var
modelExplorer = metadataProvider
199
var
modelExplorer = metadataProvider
207
It.IsAny<
ModelExplorer
>(),
224
It.IsAny<
ModelExplorer
>(),
237
var
modelExplorer = metadataProvider
ExpressionMetadataProviderTest.cs (10)
25
var
explorer = ExpressionMetadataProvider.FromLambdaExpression(m => m, viewData, provider);
43
var
explorer = ExpressionMetadataProvider.FromLambdaExpression(m => m.SelectedCategory, viewData, provider);
61
var
explorer = ExpressionMetadataProvider.FromLambdaExpression(m => m[23], viewData, provider);
80
var
explorer = ExpressionMetadataProvider.FromLambdaExpression(
103
var
metadata = ExpressionMetadataProvider.FromLambdaExpression<TestModel, Category>(
127
var
explorer = ExpressionMetadataProvider.FromStringExpression(expression, viewData, provider);
147
var
metadata = ExpressionMetadataProvider.FromStringExpression("Object.SelectedCategory",
165
var
explorer = ExpressionMetadataProvider.FromLambdaExpression(
187
var
explorer = ExpressionMetadataProvider.FromLambdaExpression(
209
var
explorer = ExpressionMetadataProvider.FromLambdaExpression(
FormatWeekHelperTest.cs (1)
33
var
modelExplorer = new ModelExplorer(provider, metadata, model);
ModelExplorerExtensionsTest.cs (1)
52
var
modelExplorer = provider.GetModelExplorerForType(modelType, model);
ModelExplorerTest.cs (13)
15
var
modelExplorer = provider.GetModelExplorerForType(typeof(BaseClass), new DerivedClass());
29
var
modelExplorer = provider.GetModelExplorerForType(typeof(BaseClass), model: null);
43
var
modelExplorer = provider.GetModelExplorerForType(typeof(BaseClass), new DerivedClass());
51
var
baseProperty = Assert.Single(properties, p => p.Metadata.PropertyName == "Base1");
56
var
derivedProperty = Assert.Single(properties, p => p.Metadata.PropertyName == "Derived1");
67
var
modelExplorer = provider.GetModelExplorerForType(typeof(BaseClass), model: null);
75
var
baseProperty = Assert.Single(properties, p => p.Metadata.PropertyName == "Base1");
91
var
modelExplorer = provider.GetModelExplorerForType(typeof(BaseClass), model);
94
var
propertyExplorer = modelExplorer.GetExplorerForProperty("Base1");
109
var
modelExplorer = provider.GetModelExplorerForType(typeof(BaseClass), model: null);
111
var
propertyExplorer = modelExplorer.GetExplorerForProperty("Base1");
130
var
modelExplorer = provider.GetModelExplorerForType(typeof(BaseClass), model);
133
var
propertyExplorer = modelExplorer.GetExplorerForProperty("BadName");
Rendering\DefaultTemplatesUtilities.cs (2)
330
var
modelExplorer = helper.MetadataProvider.GetModelExplorerForType(model.GetType(), model);
334
private static string FormatOutput(
ModelExplorer
modelExplorer)
Rendering\HtmlHelperLabelExtensionsTest.cs (1)
115
var
modelExplorer = provider
ViewDataDictionaryTest.cs (5)
328
var
originalExplorer = viewData.ModelExplorer;
350
var
explorer = new ModelExplorer(metadataProvider, metadata, model: null);
375
var
explorer = new ModelExplorer(metadataProvider, metadata, model: null);
420
var
originalExplorer = viewData.ModelExplorer;
447
var
originalExplorer = viewData.ModelExplorer;