2 writes to Container
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
ModelExplorer.cs (2)
59
Container
= container;
81
Container
= container;
19 references to Container
Microsoft.AspNetCore.Mvc.ViewFeatures (14)
HtmlHelper.cs (1)
668
modelExplorer.
Container
,
ModelExplorer.cs (11)
91
/// The <see cref="
Container
"/> will most commonly be set as a result of calling
93
/// have it's <see cref="
Container
"/> set to the instance upon which <see cref="GetExplorerForProperty(string)"/>
97
/// This however is not a requirement. The <see cref="
Container
"/> is informational, and may not
127
Debug.Assert(
Container
!= null);
128
_model = _modelAccessor(
Container
.Model);
218
if (
Container
== null)
224
return new ModelExplorer(_metadataProvider,
Container
, Metadata, model);
313
/// The returned <see cref="ModelExplorer"/> will have the current instance set as its <see cref="
Container
"/>.
338
/// The returned <see cref="ModelExplorer"/> will have the current instance set as its <see cref="
Container
"/>.
362
/// The returned <see cref="ModelExplorer"/> will have the current instance set as its <see cref="
Container
"/>.
387
/// The returned <see cref="ModelExplorer"/> will have the current instance set as its <see cref="
Container
"/>.
ViewDataDictionary.cs (2)
225
source.ModelExplorer.
Container
,
477
ModelExplorer = new ModelExplorer(_metadataProvider, ModelExplorer.
Container
, ModelMetadata, value);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (5)
ExpressionMetadataProviderTest.cs (2)
109
Assert.Same(myModel, metadata.
Container
.Model);
152
Assert.Same(myModel, metadata.
Container
.Model);
ModelExplorerTest.cs (3)
54
Assert.Same(modelExplorer, baseProperty.
Container
);
59
Assert.Same(modelExplorer, derivedProperty.
Container
);
78
Assert.Same(modelExplorer, baseProperty.
Container
);