Пример #1
0
 public CacheColumn this[object index]
 {
     get
     {
         RunWrap.IDTSConnectionManagerCacheColumn100 col = m_cols[index];
         if (col == null)
         {
             return(null);
         }
         return(new CacheColumn(col));
     }
 }
Пример #2
0
 public void RefreshCacheCols()
 {
     if (!UseFile || string.IsNullOrEmpty(ConnectionString))
     {
         return;
     }
     foreach (RunWrap.IDTSConnectionManagerCacheColumn100 col in m_cmcache.Columns)
     {
         m_cmcache.Columns.Remove(col);
     }
     RunWrap.IDTSConnectionManagerCacheColumns100 cacheCols = m_cmcache.GetFileColumns(ConnectionString);
     for (int i = 0; i < cacheCols.Count; i++)
     {
         RunWrap.IDTSConnectionManagerCacheColumn100 col = m_cmcache.Columns.Add();
         col.Length        = cacheCols[i].Length;
         col.Precision     = cacheCols[i].Precision;
         col.Scale         = cacheCols[i].Scale;
         col.DataType      = cacheCols[i].DataType;
         col.CodePage      = cacheCols[i].CodePage;
         col.IndexPosition = cacheCols[i].IndexPosition;
         ((RunWrap.IDTSName100)col).Name = ((RunWrap.IDTSName100)cacheCols[i]).Name;
     }
 }
Пример #3
0
 internal CacheColumn(RunWrap.IDTSConnectionManagerCacheColumn100 c) { m_col = c; }
Пример #4
0
 internal CacheColumn(RunWrap.IDTSConnectionManagerCacheColumn100 c)
 {
     m_col = c;
 }