34 instantiations of DisplayFormatAttribute
HtmlGenerationWebSite (1)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (27)
DataAnnotationsMetadataProviderTest.cs (10)
42{ new DisplayFormatAttribute() { ConvertEmptyStringToNull = true }, d => d.ConvertEmptyStringToNull, true },
43{ new DisplayFormatAttribute() { DataFormatString = "{0:G}" }, d => d.DisplayFormatString, "{0:G}" },
45new DisplayFormatAttribute() { DataFormatString = "{0:G}" },
50new DisplayFormatAttribute() { DataFormatString = "{0:G}", ApplyFormatInEditMode = true },
55new DisplayFormatAttribute() { DataFormatString = "{0:G}", ApplyFormatInEditMode = true },
60new DisplayFormatAttribute() { DataFormatString = "{0:G}", ApplyFormatInEditMode = true },
64{ new DisplayFormatAttribute() { HtmlEncode = false }, d => d.HtmlEncode, false },
65{ new DisplayFormatAttribute() { NullDisplayText = "(null)" }, d => d.NullDisplayText, "(null)" },
67new DisplayFormatAttribute() { NullDisplayText = "(null)" },
131var displayFormat = new DisplayFormatAttribute() // But these values override the values from DataType
ModelMetadataProviderTest.cs (17)
197new DisplayFormatAttribute { DataFormatString = "value" },
202new DisplayFormatAttribute { ApplyFormatInEditMode = true, DataFormatString = "value" },
206new DisplayFormatAttribute { ApplyFormatInEditMode = true, DataFormatString = "value" },
210new DisplayFormatAttribute { NullDisplayText = "value" }, metadata => metadata.NullDisplayText
274new DisplayFormatAttribute { ConvertEmptyStringToNull = false },
279new DisplayFormatAttribute { ConvertEmptyStringToNull = true },
285new DisplayFormatAttribute { DataFormatString = "value" },
290new DisplayFormatAttribute { ApplyFormatInEditMode = true, DataFormatString = "value" },
295new DisplayFormatAttribute { HtmlEncode = false },
300new DisplayFormatAttribute { HtmlEncode = true },
496var displayFormat = new DisplayFormatAttribute { HtmlEncode = true, };
513var displayFormat = new DisplayFormatAttribute { HtmlEncode = false, };
531var displayFormat = new DisplayFormatAttribute { HtmlEncode = false, };
549var displayFormat = new DisplayFormatAttribute { DataFormatString = expected, };
567var displayFormat = new DisplayFormatAttribute
931DisplayFormat = new DisplayFormatAttribute
942DisplayFormat = new DisplayFormatAttribute
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
System.ComponentModel.Annotations (3)
TagHelpersWebSite (2)
11 references to DisplayFormatAttribute
Microsoft.AspNetCore.Mvc.DataAnnotations (2)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (7)
System.ComponentModel.Annotations (1)
System.ComponentModel.DataAnnotations (1)