Computer Magic Logo

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.

public string Name { get; set; }

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

using CMUmbracoTools.DataAnnotations;