Computer Magic Logo
CMUmbracoToolsDisplay

Wednesday, March 16, 2016

Published by Aristotelis Pitaridis

The CMUmbracoToolsDisplay attribute works the same way like the DisplayAttribute in ASP.NET MVC. It takes one parameter which is the name of the dictionary that we want to use as fields name.

[CMUmbracoToolsDisplay("Name")]
public string Name { get; set; }

In order to use the CMUmbracoToolsDisplay attribute we have to define the following using.

using CMUmbracoTools.DataAnnotations;