20 references to IsComplexType
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
DefaultApiDescriptionProvider.cs (2)
609
!modelMetadata.
IsComplexType
||
688
if (!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>
177
return metadata.
IsComplexType
;
ModelBinding\Binders\ComplexObjectModelBinder.cs (1)
448
property.
IsComplexType
&&
ModelBinding\Binders\ComplexObjectModelBinderProvider.cs (1)
22
if (metadata.
IsComplexType
&& !metadata.IsCollectionType)
ModelBinding\Binders\ComplexTypeModelBinder.cs (1)
268
property.
IsComplexType
&&
ModelBinding\Binders\ComplexTypeModelBinderProvider.cs (1)
22
if (context.Metadata.
IsComplexType
&& !context.Metadata.IsCollectionType)
ModelBinding\Binders\HeaderModelBinderProvider.cs (1)
62
return !metadata.
IsComplexType
;
ModelBinding\Metadata\DefaultModelMetadata.cs (2)
427
else if (
IsComplexType
|| IsEnumerableType)
509
else 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)
413
else if (modelMetadata.
IsComplexType
)
ModelBinding\Validation\ValidationVisitor.cs (1)
359
if (Metadata.
IsComplexType
)
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
DefaultDisplayTemplates.cs (1)
262
!modelExplorer.Metadata.
IsComplexType
&&
DefaultEditorTemplates.cs (1)
331
!modelExplorer.Metadata.
IsComplexType
&&
TemplateRenderer.cs (1)
184
else if (!modelMetadata.
IsComplexType
)