45 lines
1.2 KiB
C#
45 lines
1.2 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
|
|
namespace AIMSObjectQuery
|
|
{
|
|
internal partial class ApplianceRecordMap:IMap
|
|
{
|
|
private Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
|
public ApplianceRecordMap()
|
|
{
|
|
dictionary.Add("id", "Id");
|
|
dictionary.Add("operationrecordid", "OperationRecordId");
|
|
dictionary.Add("operationgoodsbillrecord", "OperationGoodsBillRecord");
|
|
dictionary.Add("applianceid", "ApplianceId");
|
|
dictionary.Add("appliancename", "ApplianceName");
|
|
dictionary.Add("opefront", "OpeFront");
|
|
dictionary.Add("opedoing", "OpeDoing");
|
|
dictionary.Add("closefront", "CloseFront");
|
|
dictionary.Add("closelast", "CloseLast");
|
|
dictionary.Add("skincloselast", "SkinCloseLast");
|
|
dictionary.Add("pack", "Pack");
|
|
}
|
|
|
|
#region IMap 成员
|
|
|
|
public string this[string propertyName]
|
|
{
|
|
get
|
|
{
|
|
try
|
|
{
|
|
return dictionary[propertyName.ToLower()];
|
|
}
|
|
catch (KeyNotFoundException)
|
|
{
|
|
throw new Exception(propertyName + "属性不存在");
|
|
}
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|