9 writes to Prompt
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (6)
DataAnnotationsMetadataProviderTest.cs (4)
38
{ new DisplayAttribute() {
Prompt
= "Enter Value" }, d => d.Placeholder(), "Enter Value" },
512
Prompt
= nameof(DataAnnotations.Test.Resources.DisplayAttribute_Prompt),
541
Prompt
= nameof(DataAnnotations.Test.Resources.DisplayAttribute_Prompt),
588
Prompt
= "Model_Prompt"
ModelMetadataProviderTest.cs (2)
194
new DisplayAttribute {
Prompt
= "value" }, metadata => metadata.Placeholder
428
var display = new DisplayAttribute() {
Prompt
= "prompt" };
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (3)
Rendering\HtmlHelperPasswordTest.cs (1)
537
[Display(
Prompt
= "placeholder")]
Rendering\HtmlHelperTextAreaTest.cs (1)
162
[Display(
Prompt
= "placeholder")]
Rendering\HtmlHelperTextBoxTest.cs (1)
180
[Display(
Prompt
= "placeholder")]
11 references to Prompt
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\ModelMetadata.cs (1)
384
/// By default, this is configured using <see cref="System.ComponentModel.DataAnnotations.DisplayAttribute.
Prompt
" />.
Microsoft.AspNetCore.Mvc.DataAnnotations (2)
DataAnnotationsMetadataProvider.cs (2)
257
!string.IsNullOrEmpty(displayAttribute.
Prompt
) &&
260
displayMetadata.Placeholder = () => localizer[displayAttribute.
Prompt
];
System.ComponentModel.Annotations (8)
System\ComponentModel\DataAnnotations\DisplayAttribute.cs (8)
24
private readonly LocalizableString _prompt = new LocalizableString(nameof(
Prompt
));
168
/// <see cref="Name" />, <see cref="Description" />, <see cref="
Prompt
" />, and <see cref="GroupName" />.
360
/// This can be either a literal, non-localized string provided to <see cref="
Prompt
" /> or the
361
/// localized string found when <see cref="ResourceType" /> has been specified and <see cref="
Prompt
" />
367
/// <see cref="
Prompt
" /> will be returned.
369
/// When <see cref="ResourceType" /> has been specified and <see cref="
Prompt
" />
374
/// After setting both the <see cref="ResourceType" /> property and the <see cref="
Prompt
" /> property,
375
/// but a public static property with a name matching the <see cref="
Prompt
" /> value couldn't be found