我有一个 DataTable,其中包含一个将 GUID 存储为字节 [] 的列。我想根据此列过滤掉行。任何想法,我们怎么能做到这一点?
//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