2 writes to Placeholder
Microsoft.AspNetCore.Mvc.DataAnnotations (2)
DataAnnotationsMetadataProvider.cs (2)
260
displayMetadata.
Placeholder
= () => localizer[displayAttribute.Prompt];
264
displayMetadata.
Placeholder
= displayAttribute.GetPrompt;
7 references to Placeholder
Microsoft.AspNetCore.Mvc.Core (2)
ModelBinding\Metadata\DefaultModelMetadata.cs (2)
350
if (DisplayMetadata.
Placeholder
== null)
355
return DisplayMetadata.
Placeholder
();
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (5)
DataAnnotationsMetadataProviderTest.cs (5)
38
{ new DisplayAttribute() { Prompt = "Enter Value" }, d => d.
Placeholder
(), "Enter Value" },
525
Assert.Equal("prompt from resources", context.DisplayMetadata.
Placeholder
());
554
Assert.Equal("prompt from resources", context.DisplayMetadata.
Placeholder
());
603
Assert.Equal("prompt from localizer en-US", context.DisplayMetadata.
Placeholder
());
609
Assert.Equal("prompt from localizer fr-FR", context.DisplayMetadata.
Placeholder
());