(asp.net dynamic data) In the db.cs file I have declared the below (relating to the 'Invoice Info' table)
[ScaffoldTable(true)]
[DisplayName("Invoice Info")]
[MetadataType(typeof(Invoice_Info_MetaData))]
[DropDownList(Role = "Role_AllPowerfulGroup")]
partial class Invoice_Info
{
}
public class Invoice_Info_MetaData
{
[Display(Name = "id", Order = 10)]
public object id { get; set; }
[Display(Name = "Name", Order = 20)]
[Required()]
public object Name { get; set; }
[Display(Name = "Address", Order = 30)]
[Required()]
public object Address { get; set; }
[Display(Name = "County", Order = 40)]
[Required()]
public object County { get; set; }
On screen this displays as:
I dont want the user to be able to delete this, so how can I remove it from the on screen options??(the icon the red arrow points to) Thanks