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

42 lines
1017 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
namespace AIMSObjectQuery
{
internal partial class HospitalInfoMap:IMap
{
private Dictionary<string, string> dictionary = new Dictionary<string, string>();
public HospitalInfoMap()
{
dictionary.Add("id", "Id");
dictionary.Add("no", "No");
dictionary.Add("hospitalname", "HospitalName");
dictionary.Add("systemname", "SystemName");
dictionary.Add("address", "Address");
dictionary.Add("operatorno", "OperatorNo");
dictionary.Add("operatorname", "OperatorName");
dictionary.Add("operatedate", "OperateDate");
}
#region IMap
public string this[string propertyName]
{
get
{
try
{
return dictionary[propertyName.ToLower()];
}
catch (KeyNotFoundException)
{
throw new Exception(propertyName + "属性不存在");
}
}
}
#endregion
}
}