AIMS/AIMSEntity/ObjectQuery/QualityControlDetailedRecordMap.cs
2022-08-23 21:12:59 +08:00

39 lines
878 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
namespace AIMSObjectQuery
{
internal partial class QualityControlDetailedRecordMap:IMap
{
private Dictionary<string, string> dictionary = new Dictionary<string, string>();
public QualityControlDetailedRecordMap()
{
dictionary.Add("id", "Id");
dictionary.Add("recordid", "RecordId");
dictionary.Add("qciid", "QCIId");
dictionary.Add("qcvalue", "QCValue");
dictionary.Add("qcvalue2", "QCValue2");
}
#region IMap
public string this[string propertyName]
{
get
{
try
{
return dictionary[propertyName.ToLower()];
}
catch (KeyNotFoundException)
{
throw new Exception(propertyName + "属性不存在");
}
}
}
#endregion
}
}