using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Web.DynamicData; using Aspnet.Samples.DynamicData; namespace TicketCenter_Data { // Attach the CurrentEventMetadata to the CurrentEvent class // Allow specified access to the Users role. //[Security(Role = "Users", Action = "Details")] //[Security(Role = "Users", Action = "Edit")] //[Security(Role = "Users", Action = "Insert")] //[Security(Role = "Users", Action = "List")] [MetadataType(typeof(CurrentEventMetadata))] public partial class CurrentEvent { } [TableName("Current Events")] public class CurrentEventMetadata { } }