42 lines
1.1 KiB
C#
42 lines
1.1 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
|
|
namespace AIMSObjectQuery
|
|
{
|
|
internal partial class AnaseDataQualityRecordMap:IMap
|
|
{
|
|
private Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
|
public AnaseDataQualityRecordMap()
|
|
{
|
|
dictionary.Add("id", "Id");
|
|
dictionary.Add("operationrecordid", "OperationRecordId");
|
|
dictionary.Add("adverseeventid", "AdverseEventId");
|
|
dictionary.Add("adverseevenlevel", "AdverseEvenLevel");
|
|
dictionary.Add("adverseevenname", "AdverseEvenName");
|
|
dictionary.Add("isvalid", "IsValid");
|
|
dictionary.Add("operatorid", "OperatorId");
|
|
dictionary.Add("opeatortime", "OpeatorTime");
|
|
}
|
|
|
|
#region IMap 成员
|
|
|
|
public string this[string propertyName]
|
|
{
|
|
get
|
|
{
|
|
try
|
|
{
|
|
return dictionary[propertyName.ToLower()];
|
|
}
|
|
catch (KeyNotFoundException)
|
|
{
|
|
throw new Exception(propertyName + "属性不存在");
|
|
}
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|