Exemplo n.º 1
0
        private DataSet DataSetConverter(IDbCommand command)
        {
            IDbDataAdapter adapter = _provider.CreateDataAdapter();

            try
            {
                DataSet ds = new DataSet();
                adapter.SelectCommand = command;
                adapter.Fill(ds);

                return(ds);
            }
            finally
            {
                IDisposable d = (adapter as IDisposable);
                if (d != null)
                {
                    d.Dispose();
                }
            }
        }