Beispiel #1
0
        private void ReadSampleDataData(SampleConfig sample, int sdid)
        {
            var           reader = dbOp.TryExecuteReader(string.Format(@"Select Data from SampleDataData where SD_ID = {0} Order by [Order]", sdid), null);
            List <byte[]> data   = new List <byte[]>();

            if (reader != null)
            {
                while (reader.Read())
                {
                    object o = reader.GetValue(0);
                    if (o is DBNull)
                    {
                        continue;
                    }
                    data.Add((byte[])o);
                }
                sample.SampleData.SetBytes(data, sample.Parameters);
            }
        }