/// <summary>
 /// 获取细节数据
 /// </summary>
 /// <param name="channelType"></param>
 /// <returns></returns>
 public IEnumerable<DDPhotoDetail> SelectGalleryData(DDChannelType channelType, string tableName)
 {
     if (_detailDataHelper == null)
     {
         _detailDataHelper = new DDPhotoDetailDataHelper(_dbConn);
     }
     _detailDataHelper.PhotoDetailTable = tableName;
     return _detailDataHelper.SelectGalleryData(channelType);
 }
 /// <summary>
 /// 插入一个列表
 /// </summary>
 /// <param name="detailList"></param>
 /// <param name="channelType"></param>
 /// <returns></returns>
 public void InsertDataListToDetailTable(IEnumerable<DDPhotoDetail> detailList, DDChannelType channelType, string tableName)
 {
     if (_detailDataHelper == null)
     {
         _detailDataHelper = new DDPhotoDetailDataHelper(_dbConn);
     }
     _detailDataHelper.PhotoDetailTable = tableName;
     _detailDataHelper.InsertDataList(detailList, channelType);
 }
 /// <summary>
 /// 向内容细节表插入数据
 /// </summary>
 /// <param name="detail"></param>
 /// <param name="channelType"></param>
 /// <returns></returns>
 public bool InsertDataToDetailTable(DDPhotoDetail detail, DDChannelType channelType, string tableName)
 {
     if (_detailDataHelper == null)
     {
         _detailDataHelper = new DDPhotoDetailDataHelper(_dbConn);
     }
     _detailDataHelper.PhotoDetailTable = tableName;
     return _detailDataHelper.InsertData(detail, channelType);
 }
 /// <summary>
 /// 删除一条详情信息
 /// </summary>
 /// <param name="detail"></param>
 /// <returns></returns>
 public bool DeleteDetailData( string tableName, DDPhotoDetail detail = null)
 {
     if (_detailDataHelper == null)
     {
         _detailDataHelper = new DDPhotoDetailDataHelper(_dbConn);
     }
     _detailDataHelper.PhotoDetailTable = tableName;
     if (detail != null)
     {
         return _detailDataHelper.DeleteData(detail);
     }
     else
     {
         return _detailDataHelper.DeleteAll();
     }
 }