Quantcast
Viewing all articles
Browse latest Browse all 29

Convert array of bytes into GUID while filling DataTable

I try to retreive data from Oracle db like:

DataSet ds = new DataSet();
using (var cmd = DBOracle.GetCommand())
{
    cmd.CommandText = sqlCommand;
    OracleDataAdapter adapter = new OracleDataAdapter(cmd);

    adapter.Fill(ds);
}

The target table contains column with GUID but in ds this column is filled as array of bytes instead of GUID. Is it possible let OracleDataAdapter know that column type should be GUID?


Viewing all articles
Browse latest Browse all 29

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>