44 instantiations of DefaultMetadataDetails
Microsoft.AspNetCore.Mvc.Core (4)
ModelBinding\Metadata\DefaultModelMetadataProvider.cs (4)
247var constructorDetails = new DefaultMetadataDetails(constructorKey, ModelAttributes.Empty); 366var propertyEntry = new DefaultMetadataDetails(propertyKey, attributes); 397return new DefaultMetadataDetails( 411return new DefaultMetadataDetails(
Microsoft.AspNetCore.Mvc.Core.Test (37)
ModelBinding\Metadata\DefaultModelMetadataTest.cs (36)
24var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 84var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 103var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], new object[0], null)); 128var cache = new DefaultMetadataDetails(key, attributes) 165var cache = new DefaultMetadataDetails(key, attributes) 202var cache = new DefaultMetadataDetails(key, attributes) 237var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 264var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 298var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)) 325var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)) 358var cache = new DefaultMetadataDetails(key, new ModelAttributes(Array.Empty<object>(), null, null)); 381var cache = new DefaultMetadataDetails(key, new ModelAttributes(Array.Empty<object>(), null, null)); 402var cache = new DefaultMetadataDetails(key, new ModelAttributes(Array.Empty<object>(), null, null)); 424var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 445var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 471new DefaultMetadataDetails( 477new DefaultMetadataDetails( 487var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 547new DefaultMetadataDetails( 559var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 649var propertyCache = new DefaultMetadataDetails( 671var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 691var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 712var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 733var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)) 758var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 777var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 796var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 820var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 847var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 879var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)) 904var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)) 929var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)) 952var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 972var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 1601new DefaultMetadataDetails(modelIdentity, new ModelAttributes(new object[0], new object[0], new object[0])));
ModelBinding\Validation\DefaultComplexObjectValidationStrategyTest.cs (1)
172var cache = new DefaultMetadataDetails(key, new ModelAttributes(Array.Empty<object>(), null, null));
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (2)
ModelMetadataProviderTest.cs (2)
1064return new DefaultMetadataDetails( 1080return new DefaultMetadataDetails(
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
FormatWeekHelperTest.cs (1)
25var cache = new DefaultMetadataDetails(key, new ModelAttributes(
64 references to DefaultMetadataDetails
Microsoft.AspNetCore.Mvc.Core (27)
ModelBinding\Metadata\DefaultMetadataDetails.cs (1)
17/// Creates a new <see cref="DefaultMetadataDetails"/>.
ModelBinding\Metadata\DefaultModelMetadata.cs (6)
20private readonly DefaultMetadataDetails _details; 42/// <param name="details">The <see cref="DefaultMetadataDetails"/>.</param> 46DefaultMetadataDetails details) 56/// <param name="details">The <see cref="DefaultMetadataDetails"/>.</param> 61DefaultMetadataDetails details, 556internal DefaultMetadataDetails Details => _details;
ModelBinding\Metadata\DefaultModelMetadataProvider.cs (20)
192DefaultMetadataDetails details; 215private static DefaultMetadataDetails CreateSinglePropertyDetails(ModelMetadataIdentity propertyKey) 231private DefaultMetadataDetails CreateConstructorDetails(ModelMetadataIdentity constructorKey) 241var parameterDetails = CreateParameterDetails(ModelMetadataIdentity.ForParameter(parameter)); 247var constructorDetails = new DefaultMetadataDetails(constructorKey, ModelAttributes.Empty); 306/// Creates a new <see cref="ModelMetadata"/> from a <see cref="DefaultMetadataDetails"/>. 308/// <param name="entry">The <see cref="DefaultMetadataDetails"/> entry with cached data.</param> 315protected virtual ModelMetadata CreateModelMetadata(DefaultMetadataDetails entry) 321/// Creates the <see cref="DefaultMetadataDetails"/> entries for the properties of a model 333protected virtual DefaultMetadataDetails[] CreatePropertyDetails(ModelMetadataIdentity key) 337var propertyEntries = new List<DefaultMetadataDetails>(propertyHelpers.Length); 347var propertyEntry = CreateSinglePropertyDetails(propertyKey, propertyHelper); 354private static DefaultMetadataDetails CreateSinglePropertyDetails( 366var propertyEntry = new DefaultMetadataDetails(propertyKey, attributes); 384/// Creates the <see cref="DefaultMetadataDetails"/> entry for a model <see cref="Type"/>. 395protected virtual DefaultMetadataDetails CreateTypeDetails(ModelMetadataIdentity key) 403/// Creates the <see cref="DefaultMetadataDetails"/> entry for a parameter <see cref="Type"/>. 409protected virtual DefaultMetadataDetails CreateParameterDetails(ModelMetadataIdentity key) 418public ModelMetadataCacheEntry(ModelMetadata metadata, DefaultMetadataDetails details) 426public DefaultMetadataDetails Details { get; }
Microsoft.AspNetCore.Mvc.Core.Test (33)
ModelBinding\Metadata\DefaultModelMetadataTest.cs (32)
24var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 84var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 103var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], new object[0], null)); 128var cache = new DefaultMetadataDetails(key, attributes) 165var cache = new DefaultMetadataDetails(key, attributes) 202var cache = new DefaultMetadataDetails(key, attributes) 237var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 264var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 298var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)) 325var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)) 358var cache = new DefaultMetadataDetails(key, new ModelAttributes(Array.Empty<object>(), null, null)); 381var cache = new DefaultMetadataDetails(key, new ModelAttributes(Array.Empty<object>(), null, null)); 402var cache = new DefaultMetadataDetails(key, new ModelAttributes(Array.Empty<object>(), null, null)); 424var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 445var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 487var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 559var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 649var propertyCache = new DefaultMetadataDetails( 671var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 691var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 712var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 733var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)) 758var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 777var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 796var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 820var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 847var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 879var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)) 904var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)) 929var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)) 952var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null)); 972var cache = new DefaultMetadataDetails(key, new ModelAttributes(new object[0], null, null));
ModelBinding\Validation\DefaultComplexObjectValidationStrategyTest.cs (1)
172var cache = new DefaultMetadataDetails(key, new ModelAttributes(Array.Empty<object>(), null, null));
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (3)
ModelMetadataProviderTest.cs (3)
1059protected override DefaultMetadataDetails CreateTypeDetails(ModelMetadataIdentity key) 1061var entry = base.CreateTypeDetails(key); 1075protected override DefaultMetadataDetails[] CreatePropertyDetails(ModelMetadataIdentity key)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
FormatWeekHelperTest.cs (1)
25var cache = new DefaultMetadataDetails(key, new ModelAttributes(