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)); } } }
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() }); } } }
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); } } } }