using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.ComponentModel.DataAnnotations; using Sleis.Validation.Attribute; namespace Sleis.Models { public abstract class RegulationProgram : BaseIdentityModel { public virtual string ProgramCode { get; set; } //Text describing the non-federal regulation applicable to the emissions unit or process. public virtual string Text { get; set; } //The year in which the emissions unit or process became subject to the regulation public virtual int? Year { get; set; } public virtual decimal Index { get; set; } public override void SetContext(string parentContext) { ValidationContxt = String.Format("{0} Regulation Program:{1}-{2}", parentContext, ProgramCode, Year); } } }