using System; using System.Collections.Generic; using System.Text; using System.ComponentModel.DataAnnotations; namespace CertAuth.Domain { public class Items { [Key] [Display(Name = "Row ID")] public int Id { get; set; } [Display(Name = "Item Type")] [Required] public string ItemType { get; set; } [Display(Name = "Item Sub-Type")] public string ItemSubType { get; set; } [Display(Name = "Sub-Category")] public string SubCategory { get; set; } [Display(Name = "Category")] [Required] public string Category { get; set; } [Display(Name = "League")] public string League { get; set; } [Display(Name = "Team")] public string Team { get; set; } [StringLength(maximumLength: 50, ErrorMessage = "Field Length: Maximum 50")] [Display(Name = "Individual")] public string Entity { get; set; } [Display(Name = "Item Name")] [Required] [StringLength(maximumLength: 50, ErrorMessage = "Field Length: Maximum 50")] public string ItemName { get; set; } [Display(Name = "Description")] [Required] [StringLength(maximumLength: 2000, ErrorMessage = "Field Length: Maximum 2000")] public string Description { get; set; } [Display(Name = "Authentication Date")] [DataType(DataType.DateTime)] public DateTime InitialDate { get; set; } [Display(Name = "Authenticated By")] public System.Nullable InitialVendorKey { get; set; } [Display(Name ="RFID Key")] public System.Nullable RFIDKey { get; set; } [Display(Name = "Status")] public string Status { get; set; } [Display(Name = "Last Update")] [DataType(DataType.DateTime)] public DateTime TimeStamp { get; set; } } public class Items_WD { [Key] [Display(Name = "Row ID")] public int Id { get; set; } [Display(Name = "Item Type")] [Required] public string ItemType { get; set; } [Display(Name = "Item Sub-Type")] public string ItemSubType { get; set; } [Display(Name = "Sub-Category")] public string SubCategory { get; set; } [Display(Name = "Category")] [Required] public string Category { get; set; } [Display(Name = "League")] public string League { get; set; } [Display(Name = "Team")] public string Team { get; set; } [StringLength(maximumLength: 50, ErrorMessage = "Field Length: Maximum 50")] [Display(Name = "Individual")] public string Entity { get; set; } [Display(Name = "Item Name")] [Required] [StringLength(maximumLength: 50, ErrorMessage = "Field Length: Maximum 50")] public string ItemName { get; set; } [Display(Name = "Description")] [Required] [StringLength(maximumLength: 2000, ErrorMessage = "Field Length: Maximum 2000")] public string Description { get; set; } [Display(Name = "Authentication Date")] [DataType(DataType.DateTime)] public DateTime InitialDate { get; set; } [Display(Name = "Authenticated By")] public int InitialVendorKey { get; set; } [Display(Name = "Authenticated By")] public string InitialVendorName { get; set; } [Display(Name = "RFID Key")] public int RFIDKey { get; set; } [Display(Name = "Tag UID")] public string TagUID { get; set; } [Display(Name = "Status")] [Required] [DataType(DataType.DateTime)] public string Status { get; set; } [Display(Name = "Status")] public string StatusDesc { get; set; } [Display(Name = "Last Update")] [DataType(DataType.DateTime)] public DateTime TimeStamp { get; set; } } }