using System; using System.Collections; using System.Collections.Generic; namespace AIMSObjectQuery { internal partial class QualityControlMap:IMap { private Dictionary dictionary = new Dictionary(); public QualityControlMap() { dictionary.Add("id", "Id"); dictionary.Add("name", "Name"); dictionary.Add("excelColName", "ExcelColName"); dictionary.Add("isvalid", "IsValid"); dictionary.Add("targetValue", "TargetValue"); dictionary.Add("remark", "Remark"); } #region IMap 成员 public string this[string propertyName] { get { try { return dictionary[propertyName.ToLower()]; } catch (KeyNotFoundException) { throw new Exception(propertyName + "属性不存在"); } } } #endregion } }