19 instantiations of MinLengthAttribute
BasicWebSite (2)
Models\Product.cs (1)
13[MinLength(15)]
Models\User.cs (1)
12[MinLength(4)]
FormatterWebSite (4)
Models\Employee.cs (1)
13[MinLength(15)]
Models\Project.cs (1)
14[MinLength(2)]
Models\SimpleTypePropertiesModel.cs (1)
16[MinLength(2)]
Models\User.cs (1)
17[Required, MinLength(5)]
HtmlGenerationWebSite (1)
Models\Warehouse.cs (1)
10[MinLength(2)]
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (6)
DataAnnotationsModelValidatorTest.cs (1)
470new MinLengthAttribute(length) { ErrorMessage = LocalizationKey },
MinLengthAttributeAdapterTest.cs (4)
23var attribute = new MinLengthAttribute(6); 57var attribute = new MinLengthAttribute(6); 85var attribute = new MinLengthAttribute(2) { ErrorMessage = "Array must have at least {1} items." }; 113var attribute = new MinLengthAttribute(2) { ErrorMessage = "Array must have at least {1} items." };
ValidationAttributeAdapterProviderTest.cs (1)
28new MinLengthAttribute(1),
Microsoft.AspNetCore.OpenApi.Tests (3)
Services\OpenApiSchemaService\OpenApiSchemaService.ParameterSchemas.cs (2)
338[([MinLength(2)] string id) => {}, (OpenApiSchema schema) => Assert.Equal(2, schema.MinLength)], 340[([MinLength(2)] int[] id) => {}, (OpenApiSchema schema) => Assert.Equal(2, schema.MinItems)],
Shared\SharedTypes.cs (1)
78[MinLength(5)]
Sample (2)
Controllers\TestController.cs (1)
33[MinLength(5)]
src\OpenApi\test\Microsoft.AspNetCore.OpenApi.Tests\Shared\SharedTypes.cs (1)
78[MinLength(5)]
XmlFormattersWebSite (1)
Models\Employee.cs (1)
13[MinLength(15)]
17 references to MinLengthAttribute
Microsoft.AspNetCore.Mvc.DataAnnotations (4)
MinLengthAttributeAdapter.cs (2)
11internal sealed class MinLengthAttributeAdapter : AttributeAdapterBase<MinLengthAttribute> 15public MinLengthAttributeAdapter(MinLengthAttribute attribute, IStringLocalizer? stringLocalizer)
ValidationAttributeAdapterProvider.cs (2)
42else if (typeof(MinLengthAttribute).IsAssignableFrom(type)) 44return new MinLengthAttributeAdapter((MinLengthAttribute)attribute, stringLocalizer);
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (4)
MinLengthAttributeAdapterTest.cs (4)
23var attribute = new MinLengthAttribute(6); 57var attribute = new MinLengthAttribute(6); 85var attribute = new MinLengthAttribute(2) { ErrorMessage = "Array must have at least {1} items." }; 113var attribute = new MinLengthAttribute(2) { ErrorMessage = "Array must have at least {1} items." };
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
121else if (attribute is MinLengthAttribute minLengthAttribute)
Microsoft.Extensions.Compliance.Redaction (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
18/// The standard <see cref="MinLengthAttribute" /> supports only non generic <see cref="Array"/> or <see cref="string"/> typed objects
Microsoft.Extensions.Diagnostics.Probes (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
18/// The standard <see cref="MinLengthAttribute" /> supports only non generic <see cref="Array"/> or <see cref="string"/> typed objects
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
18/// The standard <see cref="MinLengthAttribute" /> supports only non generic <see cref="Array"/> or <see cref="string"/> typed objects
Microsoft.Extensions.Http.Resilience (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
18/// The standard <see cref="MinLengthAttribute" /> supports only non generic <see cref="Array"/> or <see cref="string"/> typed objects
Microsoft.Extensions.Telemetry (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
18/// The standard <see cref="MinLengthAttribute" /> supports only non generic <see cref="Array"/> or <see cref="string"/> typed objects
Shared (1)
Data.Validation\LengthAttribute.cs (1)
18/// The standard <see cref="MinLengthAttribute" /> supports only non generic <see cref="Array"/> or <see cref="string"/> typed objects
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\MinLengthAttribute.cs (1)
17/// Initializes a new instance of the <see cref="MinLengthAttribute" /> class.
System.ComponentModel.DataAnnotations (1)
System.ComponentModel.DataAnnotations.cs (1)
24[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.DataAnnotations.MinLengthAttribute))]