56 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			56 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System;
 | |
| using System.Collections;
 | |
| using System.Collections.Generic;
 | |
| 
 | |
| namespace AIMSObjectQuery
 | |
| {
 | |
|     internal partial class ProviderMap:IMap
 | |
| 	{
 | |
| 	    private Dictionary<string, string> dictionary = new Dictionary<string, string>();
 | |
|         public ProviderMap()
 | |
|         {
 | |
|         	dictionary.Add("id", "Id");
 | |
|         	dictionary.Add("name", "Name");
 | |
|         	dictionary.Add("helpcode", "HelpCode");
 | |
|         	dictionary.Add("businesslicence", "BusinessLicence");
 | |
|         	dictionary.Add("businesslicencevaliddate", "BusinessLicenceValidDate");
 | |
|         	dictionary.Add("farelicence", "FareLicence");
 | |
|         	dictionary.Add("farelicencevaliddate", "FareLicenceValidDate");
 | |
|         	dictionary.Add("taxcheckincertificate", "TaxCheckinCertificate");
 | |
|         	dictionary.Add("organisecodecertificate", "OrganiseCodeCertificate");
 | |
|         	dictionary.Add("organisecodecertificatevaliddate", "OrganiseCodeCertificateValidDate");
 | |
|         	dictionary.Add("accreditinfo", "AccreditInfo");
 | |
|         	dictionary.Add("businesslicenceyearisvalid", "BusinessLicenceYearIsValid");
 | |
|         	dictionary.Add("isvalid", "IsValid");
 | |
|         	dictionary.Add("operatorno", "OperatorNo");
 | |
|         	dictionary.Add("operatorname", "OperatorName");
 | |
|         	dictionary.Add("operatedate", "OperateDate");
 | |
|         	dictionary.Add("institucionais", "Institucionais");
 | |
|         	dictionary.Add("registeraddress", "RegisterAddress");
 | |
|         	dictionary.Add("bankname", "BankName");
 | |
|         	dictionary.Add("bankaddress", "BankAddress");
 | |
|         	dictionary.Add("registermoney", "RegisterMoney");
 | |
|         	dictionary.Add("registerdate", "RegisterDate");
 | |
|         }
 | |
| 
 | |
|         #region IMap 成员
 | |
| 
 | |
|         public string this[string propertyName]
 | |
|         {
 | |
|             get
 | |
| 			{ 
 | |
| 				try
 | |
| 				{
 | |
| 					return dictionary[propertyName.ToLower()]; 
 | |
| 				}
 | |
| 				catch (KeyNotFoundException)
 | |
| 				{
 | |
| 					throw new Exception(propertyName + "属性不存在");
 | |
| 				}
 | |
| 			}
 | |
|         }
 | |
| 
 | |
|         #endregion
 | |
| 	}
 | |
| }
 |