如何在byte []列上使用DataTable.Select OR DataView.RowFilter过滤行?

时间:2013-09-10 10:02:59

标签: c# datatable

我有一个DataTable,它包含一个存储GUID为byte []的列。我想基于此列过滤掉行。任何想法,我们如何做到这一点?

//First column of the datatable is byte[] corresponding to the Raw(16) in oracle storing GUID.

DataTable myDataTable = GetAllInvoicesFromOracleDb(); 

Guid myRecordId = new Guid("8FAA05C8-4E14-447E-8FFA-DF4D3D5BD717");

DataRow[] foundRow = myDataTable.Select("Invoice_PK=" + myRecordId);//Invoice_PK is byte[] column and I have the GUID object

0 个答案:

没有答案