/// <summary>
 /// 得到车辆对应的历史存储表信息
 /// </summary>
 /// <param name="vehicleCode"></param>
 /// <returns></returns>
 public EHistoryDataStoreConfig GetVehicleStoreTableConfig(Guid vehicleCode)
 {
     var tableConfig = new GpsHistoryDataStoreConfigDAL().GetVehicleStoreTableConfig(vehicleCode); //GetStoreTableConfig(vehicleCode);
     if (tableConfig == null)
     {
         Logger.Info(string.Format("车辆编号为{0}没找到对应的存储历史表", vehicleCode));
         throw new Exception(string.Format("车辆编号为{0}没找到对应的存储历史表", vehicleCode));
     }
     return tableConfig;
 }
 /// <summary>
 /// 得到车辆对应的历史存储表信息
 /// </summary>
 /// <param name="vehicleCodes"></param>
 /// <returns></returns>
 public List<EHistoryDataStoreConfig> GetVehicleStoreTableConfig(IList<Guid> vehicleCodes)
 {
     //using (IRepository repository = SessionManager.CreateRepository(typeof(EHistoryDataStoreConfig)))
     //{
     //    Expression expression = Expression.CreateExpression("VehicleCode", PolynaryOperatorType.In, vehicleCodes);
     //    Query query = new Query(typeof(EHistoryDataStoreConfig));
     //    query.Expression = expression;
     //    return repository.List<EHistoryDataStoreConfig>(query).ToList();
     //}
     GpsHistoryDataStoreConfigDAL dal = new GpsHistoryDataStoreConfigDAL();
     return dal.GetVehicleStoreTableConfigList(vehicleCodes);
 }