8 writes to ModelMetadata
System.Web (8)
ModelBinding\CollectionModelBinder`1.cs (2)
30
ModelMetadata
= ModelMetadataProviders.Current.GetMetadataForType(null, typeof(TElement)),
81
ModelMetadata
= ModelMetadataProviders.Current.GetMetadataForType(null, typeof(TElement)),
ModelBinding\ComplexModelBinder.cs (1)
11
ModelMetadata
= propertyMetadata,
ModelBinding\DefaultModelBinder.cs (1)
24
ModelMetadata
= bindingContext.ModelMetadata
ModelBinding\KeyValuePairModelBinderUtil.cs (1)
7
ModelMetadata
= metadataProvider.GetMetadataForType(null, typeof(TModel)),
ModelBinding\MutableObjectModelBinder.cs (1)
75
ModelMetadata
= MetadataProvider.GetMetadataForType(() => originalComplexModel, typeof(ComplexModel)),
UI\Page.cs (1)
550
ModelMetadata
= ModelMetadataProviders.Current.GetMetadataForType(() => model, typeof(TModel)),
UI\WebControls\ModelDataSourceView.cs (1)
1018
ModelMetadata
= ModelMetadataProviders.Current.GetMetadataForType(null, parameterInfo.ParameterType),
18 references to ModelMetadata
System.Web (18)
ModelBinding\ArrayModelBinderProvider.cs (1)
9
if (!bindingContext.
ModelMetadata
.IsReadOnly && bindingContext.ModelType.IsArray &&
ModelBinding\CollectionModelBinderProvider.cs (1)
10
return CollectionModelBinderUtil.GetGenericBinder(typeof(ICollection<>), typeof(List<>), typeof(CollectionModelBinder<>), bindingContext.
ModelMetadata
);
ModelBinding\DefaultModelBinder.cs (2)
19
&& bindingContext.
ModelMetadata
.IsComplexType) {
24
ModelMetadata = bindingContext.
ModelMetadata
ModelBinding\DictionaryModelBinderProvider.cs (1)
10
return CollectionModelBinderUtil.GetGenericBinder(typeof(IDictionary<,>), typeof(Dictionary<,>), typeof(DictionaryModelBinder<,>), bindingContext.
ModelMetadata
);
ModelBinding\ModelBinderUtil.cs (1)
87
if (bindingContext.
ModelMetadata
== null) {
ModelBinding\ModelBindingContext.cs (6)
36
return
ModelMetadata
.Model;
40
ModelMetadata
.Model = value;
99
return
ModelMetadata
.ModelType;
106
_propertyMetadata =
ModelMetadata
.Properties.ToDictionary(m => m.PropertyName, StringComparer.OrdinalIgnoreCase);
116
_validationNode = new ModelValidationNode(
ModelMetadata
, ModelName);
141
if (
ModelMetadata
== null) {
ModelBinding\MutableObjectModelBinder.cs (3)
73
ComplexModel originalComplexModel = new ComplexModel(bindingContext.
ModelMetadata
, propertyMetadatas);
108
bindingContext.
ModelMetadata
.Model = CreateModel(modelBindingExecutionContext, bindingContext);
118
return from propertyMetadata in bindingContext.
ModelMetadata
.Properties
ModelBinding\TypeConverterModelBinder.cs (2)
25
string errorString = ModelBinderErrorMessageProviders.TypeConversionErrorMessageProvider(modelBindingExecutionContext, bindingContext.
ModelMetadata
, vpResult.AttemptedValue);
36
ModelBinderUtil.ReplaceEmptyStringWithNull(bindingContext.
ModelMetadata
, ref newModel);
ModelBinding\TypeMatchModelBinder.cs (1)
13
ModelBinderUtil.ReplaceEmptyStringWithNull(bindingContext.
ModelMetadata
, ref model);