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