using System; using System.Collections; using System.Collections.Generic; namespace AIMSObjectQuery { internal partial class ApplyOperationInfoMap:IMap { private Dictionary dictionary = new Dictionary(); public ApplyOperationInfoMap() { dictionary.Add("id", "Id"); dictionary.Add("operationapplyid", "OperationApplyId"); dictionary.Add("operationid", "OperationId"); dictionary.Add("operatorno", "OperatorNo"); dictionary.Add("operatorname", "OperatorName"); dictionary.Add("operatedate", "OperateDate"); dictionary.Add("operationname", "OperationName"); dictionary.Add("leftremark", "LeftRemark"); dictionary.Add("rightremark", "RightRemark"); } #region IMap 成员 public string this[string propertyName] { get { try { return dictionary[propertyName.ToLower()]; } catch (KeyNotFoundException) { throw new Exception(propertyName + "属性不存在"); } } } #endregion } }