using System; using System.Collections; using System.Collections.Generic; namespace AIMSObjectQuery { internal partial class FactEventsMap:IMap { private Dictionary dictionary = new Dictionary(); public FactEventsMap() { dictionary.Add("id", "Id"); dictionary.Add("eventtypeid", "EventTypeId"); dictionary.Add("patientid", "PatientId"); dictionary.Add("eventid", "EventId"); dictionary.Add("eventbegintime", "EventBeginTime"); dictionary.Add("eventendtime", "EventEndTime"); dictionary.Add("iscontinue", "IsContinue"); dictionary.Add("remark", "Remark"); dictionary.Add("operatorno", "OperatorNo"); dictionary.Add("operatorname", "OperatorName"); dictionary.Add("operatedate", "OperateDate"); dictionary.Add("eventvalue", "EventValue"); dictionary.Add("extend1", "Extend1"); dictionary.Add("extend2", "Extend2"); dictionary.Add("extend3", "Extend3"); } #region IMap 成员 public string this[string propertyName] { get { try { return dictionary[propertyName.ToLower()]; } catch (KeyNotFoundException) { throw new Exception(propertyName + "属性不存在"); } } } #endregion } }