---
title: "What is the role of the Display data annotation to display name for a model property in .Net Core?"  
description: "What is the role of the Display data annotation to display name for a model property in .Net Core?"  
author: "Utpal Vishwas"  
published: 2023-10-20  
updated: 2023-10-22  
canonical: https://www.mindstick.com/forum/160249/what-is-the-role-of-the-display-data-annotation-to-display-name-for-a-model-property-in-dot-net-core  
category: ".net core"  
tags: ["asp.net core", ".net core", "data annotations"]  
reading_time: 2 minutes  

---

# What is the role of the Display data annotation to display name for a model property in .Net Core?

What is the [role](https://yourviews.mindstick.com/audio/1254/the-role-of-visualization-in-achieving-your-goals) of the Display [data annotation](https://www.mindstick.com/articles/12234/validation-using-data-annotation-using-entity-framework) to [display name](https://answers.mindstick.com/qa/103600/how-to-changing-skype-display-name) for a [model](https://yourviews.mindstick.com/view/81334/america-is-reopening-after-corona-lockdown-but-on-swedish-model) [property](https://www.mindstick.com/blog/205/property-notification-in-c-sharp) in .Net Core?

## Replies

### Reply by Aryan Kumar

In .NET Core, the **Display** [data](https://www.mindstick.com/articles/13050/salesforce-aiming-to-dominate-predictive-analytics-with-data-science) annotation is used to specify how a property of a model should be displayed in the user interface. It provides a user-friendly label or [name](https://yourviews.mindstick.com/view/87450/how-to-generate-a-brand-name-using-linkedin-comprehensive-guide) for the property and is commonly used in user interfaces to provide a more human-readable and meaningful label for data fields. The main role of the **Display** data annotation is to improve the presentation and usability of your application. Here's how it works:

## Display Name:

- The **Display** data annotation is typically applied to a model's property, and it includes a **Name** property that represents the user-friendly label or display name for that property.

```plaintext
using System.ComponentModel.DataAnnotations;

public class Person
{
    [Display(Name = "Full Name")]
    public string FullName { get; set; }
}
```

## User Interface and Validation:

User interface components such as HTML helpers in ASP.NET Core MVC can use the **Display** data annotation to automatically generate labels for input fields, improving the user experience by showing descriptive labels next to form fields.

Additionally, the **Display** data annotation can be used for validation error messages, helping to create more informative error messages for users when input doesn't meet validation criteria.

## Localization and Internationalization:

- The **Display** data annotation supports localization and internationalization. By providing localized resource files with translations for display names, you can use the same code structure to display user-friendly labels in different languages and regions.

## Customization and Styling:

- Developers can further customize the appearance and styling of labels and error messages by accessing the **Display** attribute values in the view templates, allowing for greater control over the presentation of the data.

Overall, the **Display** data annotation is a valuable tool for enhancing the user experience by providing meaningful display names for model properties in .NET Core applications. It makes your application more user-friendly and helps ensure that data input and validation are presented in a clear and understandable manner.


---

Original Source: https://www.mindstick.com/forum/160249/what-is-the-role-of-the-display-data-annotation-to-display-name-for-a-model-property-in-dot-net-core

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
