Exemple #1
0
 private void ProcessDataSource()
 {
     using (AbsReader reader = this.DataSources[this.Source].GetReader())
     {
         while (reader.Next())
         {
             this.Storage.AddRowData(_rowHelper.GetDimensions(reader.Current),
                                     _rowHelper.GetMeasureData(reader.Current));
         }
     }
 }
Exemple #2
0
 public virtual void Process()
 {
     using (AbsReader reader = this.DataSource.GetReader())
     {
         while (reader.Next())
         {
             this.Members.Add(new Member <T>()
             {
                 ID   = (T)reader.Current[this.Config.ValueFieldName],
                 Name = reader.Current[this.Config.DesFieldName].ToString()
             });
         }
     }
 }
Exemple #3
0
        public override void Process()
        {
            using (AbsReader reader = this.DataSource.GetReader())
            {
                while (reader.Next())
                {
                    var member = new Member <T>()
                    {
                        ID   = (T)reader.Current[this.Config.ValueFieldName],
                        Name = reader.Current[this.Config.DesFieldName].ToString()
                    };

                    if (!Members.ContainsKey(member.ID))
                    {
                        this.Members.Add(member);
                    }
                }
            }
        }