26 references to IsComplexType
Microsoft.AspNetCore.Mvc.Abstractions.Test (4)
ModelBinding\ModelMetadataTest.cs (4)
30Assert.False(modelMetadata.IsComplexType); 44Assert.True(modelMetadata.IsComplexType); 422Assert.Throws<NotSupportedException>(() => metadata.IsComplexType); 440Assert.False(metadata.IsComplexType);
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
DefaultApiDescriptionProvider.cs (2)
593!modelMetadata.IsComplexType || 672if (!metadata.IsComplexType)
Microsoft.AspNetCore.Mvc.Core (15)
ApiBehaviorOptions.cs (2)
43/// Parameters that are complex (<see cref="ModelMetadata.IsComplexType"/>) and are registered in the DI Container (<see cref="IServiceCollection"/>) are assumed to be bound from the services <see cref="BindingSource.Services"/>, unless this 45/// Parameters that are complex (<see cref="ModelMetadata.IsComplexType"/>) are assumed to be bound from the body (<see cref="BindingSource.Body"/>).
ApplicationModels\InferParameterBindingInfoConvention.cs (3)
20/// <item>A complex type parameter (<see cref="ModelMetadata.IsComplexType"/>), registered in the DI container, is assigned <see cref="BindingSource.Services"/>.</item> 21/// <item>A complex type parameter (<see cref="ModelMetadata.IsComplexType"/>), not registered in the DI container, is assigned <see cref="BindingSource.Body"/>.</item> 177return metadata.IsComplexType;
ModelBinding\Binders\ComplexObjectModelBinder.cs (1)
448property.IsComplexType &&
ModelBinding\Binders\ComplexObjectModelBinderProvider.cs (1)
22if (metadata.IsComplexType && !metadata.IsCollectionType)
ModelBinding\Binders\ComplexTypeModelBinder.cs (1)
268property.IsComplexType &&
ModelBinding\Binders\ComplexTypeModelBinderProvider.cs (1)
22if (context.Metadata.IsComplexType && !context.Metadata.IsCollectionType)
ModelBinding\Binders\HeaderModelBinderProvider.cs (1)
62return !metadata.IsComplexType;
ModelBinding\Metadata\DefaultModelMetadata.cs (2)
427else if (IsComplexType || IsEnumerableType) 509else if (defaultModelMetadata.IsComplexType)
ModelBinding\Metadata\ValidationMetadata.cs (1)
32/// <see cref="ModelMetadata.IsComplexType"/> or <see cref="ModelMetadata.IsEnumerableType"/> is <c>true</c>;
ModelBinding\ModelBindingHelper.cs (1)
413else if (modelMetadata.IsComplexType)
ModelBinding\Validation\ValidationVisitor.cs (1)
364if (Metadata.IsComplexType)
Microsoft.AspNetCore.Mvc.Core.Test (2)
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (1)
1584if (context.Metadata.IsComplexType)
ModelBinding\Metadata\DefaultModelMetadataTest.cs (1)
41Assert.False(metadata.IsComplexType);
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
DefaultDisplayTemplates.cs (1)
262!modelExplorer.Metadata.IsComplexType &&
DefaultEditorTemplates.cs (1)
330!modelExplorer.Metadata.IsComplexType &&
TemplateRenderer.cs (1)
184else if (!modelMetadata.IsComplexType)