1 type derived from CompareAttribute
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
CompareAttributeAdapter.cs (1)
48private sealed class CompareAttributeWrapper : CompareAttribute
8 instantiations of CompareAttribute
Microsoft.AspNetCore.Identity.UI (8)
Areas\Identity\Pages\V4\Account\Manage\ChangePassword.cshtml.cs (1)
63[Compare("NewPassword", ErrorMessage = "The new password and confirmation password do not match.")]
Areas\Identity\Pages\V4\Account\Manage\SetPassword.cshtml.cs (1)
53[Compare("NewPassword", ErrorMessage = "The new password and confirmation password do not match.")]
Areas\Identity\Pages\V4\Account\Register.cshtml.cs (1)
76[Compare("Password", ErrorMessage = "The password and confirmation password do not match.")]
Areas\Identity\Pages\V4\Account\ResetPassword.cshtml.cs (1)
57[Compare("Password", ErrorMessage = "The password and confirmation password do not match.")]
Areas\Identity\Pages\V5\Account\Manage\ChangePassword.cshtml.cs (1)
63[Compare("NewPassword", ErrorMessage = "The new password and confirmation password do not match.")]
Areas\Identity\Pages\V5\Account\Manage\SetPassword.cshtml.cs (1)
53[Compare("NewPassword", ErrorMessage = "The new password and confirmation password do not match.")]
Areas\Identity\Pages\V5\Account\Register.cshtml.cs (1)
76[Compare("Password", ErrorMessage = "The password and confirmation password do not match.")]
Areas\Identity\Pages\V5\Account\ResetPassword.cshtml.cs (1)
57[Compare("Password", ErrorMessage = "The password and confirmation password do not match.")]
10 references to CompareAttribute
Microsoft.AspNetCore.Components.Forms (1)
ClientValidation\DefaultClientValidationService.cs (1)
118case CompareAttribute ca:
Microsoft.AspNetCore.Mvc.DataAnnotations (6)
CompareAttributeAdapter.cs (4)
12internal sealed class CompareAttributeAdapter : AttributeAdapterBase<CompareAttribute> 16public CompareAttributeAdapter(CompareAttribute attribute, IStringLocalizer? stringLocalizer) 52public CompareAttributeWrapper(CompareAttribute attribute) 80CompareAttribute attribute)
ValidationAttributeAdapterProvider.cs (2)
38else if (typeof(CompareAttribute).IsAssignableFrom(type)) 40return new CompareAttributeAdapter((CompareAttribute)attribute, stringLocalizer);
Microsoft.Extensions.Validation.Localization (2)
BuiltInFormatters.cs (1)
9internal sealed class CompareAttributeFormatter(CompareAttribute attribute) : IValidationAttributeFormatter
ValidationAttributeFormatterRegistry.cs (1)
72AddFormatter<CompareAttribute>(a => new CompareAttributeFormatter(a));
System.ComponentModel.DataAnnotations (1)
System.ComponentModel.DataAnnotations.cs (1)
6[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.DataAnnotations.CompareAttribute))]