Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

system.componentmodel.dataannotations hide field

// Nuget package System.ComponentModel.Annotations
using System.ComponentModel.DataAnnotations;

public class Item
{
  	// NOTE: This attribute is set to true by default
	[DisplayAttribute(AutoGenerateField = false)]
	public int Id { get; set; }
}
 
PREVIOUS NEXT
Tagged: #hide #field
ADD COMMENT
Topic
Name
2+3 =