コード例 #1
0
        internal DataTable Generate()
        {
            DbConnection conn = new DbConnectionFactory().Get();
            conn.Open();

            DbDataAdapter adp = new DbDataAdapterFactory(commandSQL, conn).Get();
            DataTable dataTable = new DataTable();

            adp.Fill(dataTable);

            conn.Close();

            return dataTable;
        }
コード例 #2
0
        internal DataTable Generate()
        {
            DbConnection conn = new DbConnectionFactory().Get();

            conn.Open();

            DbDataAdapter adp       = new DbDataAdapterFactory(commandSQL, conn).Get();
            DataTable     dataTable = new DataTable();

            adp.Fill(dataTable);

            conn.Close();

            return(dataTable);
        }