Пример #1
0
 public void Truncate(components.Shared.Enums.Enu_SourceEnums.pdDataItemType dataType)
 {
     foreach (KeyValuePair <string, DataSourceItem> de in this.storage)
     {
         if (dataType == de.Value.SourceType || dataType == components.Shared.Enums.Enu_SourceEnums.pdDataItemType.Any)
         {
             this.storage[de.Key] = new DataSourceItem();
         }
     }
 }
Пример #2
0
        /* strong typed data objects */

        public DataSet GetDataSet(components.Shared.Enums.Enu_SourceEnums.pdDataItemType dataType)
        {
            DataSet ds = new DataSet();

            foreach (KeyValuePair <string, DataSourceItem> de in this.storage)
            {
                if (dataType == de.Value.SourceType || dataType == components.Shared.Enums.Enu_SourceEnums.pdDataItemType.Any)
                {
                    ds.Tables.Add(de.Value.Source);
                }
            }

            return(ds);
        }
Пример #3
0
 public DataSourceItem()
 {
     this.type = components.Shared.Enums.Enu_SourceEnums.pdDataItemType.None;
     data = new DataTable();
 }
 public DataSourceItem()
 {
     this.type = components.Shared.Enums.Enu_SourceEnums.pdDataItemType.None;
     data      = new DataTable();
 }