26 writes to Metadata
Microsoft.AspNetCore.Mvc.Core (3)
Controllers\ControllerBinderDelegateProvider.cs (2)
152
Metadata
= metadata,
182
Metadata
= metadata,
ModelBinding\ModelBindingHelper.cs (1)
253
Metadata
= modelMetadata,
Microsoft.AspNetCore.Mvc.Core.Test (18)
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (1)
1095
Metadata
= metadata,
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (1)
1259
Metadata
= metadata,
ModelBinding\Binders\HeaderModelBinderTests.cs (1)
378
Metadata
= metadata,
ModelBinding\ModelBinderFactoryTest.cs (15)
30
Metadata
= metadataProvider.GetMetadataForType(typeof(string)),
52
Metadata
= metadataProvider.GetMetadataForType(typeof(string)),
88
Metadata
= metadataProvider.GetMetadataForType(typeof(Widget)),
127
Metadata
= metadataProvider.GetMetadataForProperty(typeof(Widget), nameof(Widget.Id)),
167
Metadata
= metadataProvider.GetMetadataForType(typeof(Widget)),
207
Metadata
= metadataProvider.GetMetadataForType(typeof(Employee)),
237
Metadata
= metadataProvider.GetMetadataForType(typeof(Employee)),
268
Metadata
= metadataProvider.GetMetadataForType(typeof(Employee)),
379
Metadata
= metadataProvider.GetMetadataForType(typeof(Employee)),
435
Metadata
= metadataProvider.GetMetadataForType(typeof(Widget)),
497
Metadata
= metadataProvider.GetMetadataForType(typeof(Widget)),
551
Metadata
= metadataProvider.GetMetadataForType(typeof(Widget)),
558
context.
Metadata
= context.Metadata.Properties[nameof(Widget.Id)];
615
Metadata
= metadataProvider.GetMetadataForType(typeof(Widget)),
622
context.
Metadata
= context.Metadata.Properties[nameof(Widget.Id)];
Microsoft.AspNetCore.Mvc.IntegrationTests (3)
ComplexRecordIntegrationTest.cs (1)
4258
Metadata
= metadata,
ComplexTypeIntegrationTestBase.cs (1)
3757
Metadata
= metadata,
ParameterBinderExtensions.cs (1)
70
Metadata
= modelMetadata,
Microsoft.AspNetCore.Mvc.RazorPages (2)
Infrastructure\PageBinderFactory.cs (2)
37
Metadata
= metadata,
118
Metadata
= metadata,
7 references to Metadata
Microsoft.AspNetCore.Mvc.Core (3)
ModelBinding\ModelBinderFactory.cs (3)
63
if (TryGetCachedBinder(context.
Metadata
, context.CacheToken, out var binder))
80
AddToCache(context.
Metadata
, context.CacheToken, binder);
209
Metadata = factoryContext.
Metadata
;
Microsoft.AspNetCore.Mvc.Core.Test (4)
ModelBinding\ModelBinderFactoryTest.cs (4)
558
context.Metadata = context.
Metadata
.Properties[nameof(Widget.Id)];
559
context.CacheToken = context.
Metadata
;
622
context.Metadata = context.
Metadata
.Properties[nameof(Widget.Id)];
623
context.CacheToken = context.
Metadata
;