3 writes to Model
System.Web (3)
ModelBinding\ModelBindingContext.cs (1)
40
ModelMetadata.
Model
= value;
ModelBinding\MutableObjectModelBinder.cs (2)
108
bindingContext.ModelMetadata.
Model
= CreateModel(modelBindingExecutionContext, bindingContext);
190
propertyMetadata.
Model
= value;
19 references to Model
System.Web (19)
ModelBinding\CollectionModelBinderUtil.cs (2)
106
if (!closedSupportedInterfaceType.IsInstanceOfType(modelMetadata.
Model
)) {
111
bool collectionInstanceIsReadOnly = (bool)closedCollectionType.GetProperty("IsReadOnly").GetValue(modelMetadata.
Model
, null);
ModelBinding\DataAnnotationsModelMetadata.cs (2)
18
if (
Model
!= null) {
23
object simpleDisplayTextValue = displayColumnProperty.GetValue(
Model
, new object[0]);
ModelBinding\DataAnnotationsModelValidator.cs (2)
74
ValidationContext context = new ValidationContext(container ?? Metadata.
Model
, null, null);
84
ValidationResult result = Attribute.GetValidationResult(Metadata.
Model
, context);
ModelBinding\ModelBindingContext.cs (1)
36
return ModelMetadata.
Model
;
ModelBinding\ModelMetadata.cs (8)
164
_properties = Provider.GetMetadataForProperties(
Model
, RealModelType).OrderBy(m => m.Order);
188
if (
Model
!= null && !TypeHelpers.IsNullableValueType(ModelType)) {
189
_realModelType =
Model
.GetType();
383
if (
Model
== null) {
387
string toStringResult = Convert.ToString(
Model
, CultureInfo.CurrentCulture);
392
if (!toStringResult.Equals(
Model
.GetType().FullName, StringComparison.Ordinal)) {
401
if (firstProperty.
Model
== null) {
405
return Convert.ToString(firstProperty.
Model
, CultureInfo.CurrentCulture);
ModelBinding\ModelValidationNode.cs (2)
80
object containerInstance = parentNode.ModelMetadata.
Model
;
139
object model = ModelMetadata.
Model
;
ModelBinding\ModelValidator.cs (1)
51
foreach (ModelValidationResult propertyResult in propertyValidator.Validate(Metadata.
Model
)) {
ModelBinding\ValidatableObjectAdapter.cs (1)
17
object model = Metadata.
Model
;