50 lines
1.4 KiB
C#
50 lines
1.4 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
|
|
namespace AIMSObjectQuery
|
|
{
|
|
internal partial class NotesRecordMap:IMap
|
|
{
|
|
private Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
|
public NotesRecordMap()
|
|
{
|
|
dictionary.Add("id", "Id");
|
|
dictionary.Add("notename", "NoteName");
|
|
dictionary.Add("recordtime", "RecordTime");
|
|
dictionary.Add("content1", "Content1");
|
|
dictionary.Add("content2", "Content2");
|
|
dictionary.Add("content3", "Content3");
|
|
dictionary.Add("content4", "Content4");
|
|
dictionary.Add("content5", "Content5");
|
|
dictionary.Add("content6", "Content6");
|
|
dictionary.Add("content7", "Content7");
|
|
dictionary.Add("content8", "Content8");
|
|
dictionary.Add("content9", "Content9");
|
|
dictionary.Add("execwork", "ExecWork");
|
|
dictionary.Add("operatorid", "OperatorId");
|
|
dictionary.Add("operatortime", "OperatorTime");
|
|
dictionary.Add("remark", "Remark");
|
|
}
|
|
|
|
#region IMap 成员
|
|
|
|
public string this[string propertyName]
|
|
{
|
|
get
|
|
{
|
|
try
|
|
{
|
|
return dictionary[propertyName.ToLower()];
|
|
}
|
|
catch (KeyNotFoundException)
|
|
{
|
|
throw new Exception(propertyName + "属性不存在");
|
|
}
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|