1 write to Name
Microsoft.Extensions.Validation (1)
ValidatablePropertyInfo.cs (1)
29
Name
= name;
8 references to Name
Microsoft.Extensions.Validation (8)
ValidatablePropertyInfo.cs (8)
63
var property = DeclaringType.GetProperty(
Name
) ?? throw new InvalidOperationException($"Property '{
Name
}' not found on type '{DeclaringType.Name}'.");
71
context.CurrentValidationPath =
Name
;
75
context.CurrentValidationPath = $"{originalPrefix}.{
Name
}";
79
context.ValidationContext.MemberName =
Name
;
88
context.AddValidationError(
Name
, context.CurrentValidationPath, [result.ErrorMessage], value);
95
ValidateValue(propertyValue,
Name
, context.CurrentValidationPath, validationAttributes, value);
101
$"Maximum validation depth of {context.ValidationOptions.MaxDepth} exceeded at '{context.CurrentValidationPath}' in '{DeclaringType.Name}.{
Name
}'. " +