GUIDs not matching
Posted: Sat 21 Feb 2009 20:23
I have an Oracle database table with a column that is RAW(16). The table has several rows with a value of '72994588004644B594CB271D699EE67B' in this colum. I run a query like this in my code where tenantId parameter is set to the value above and no results are returned.
var results = context.AppSetting.Where(a => a.TenantId == tenantId)
When I use Visual Studio to peek at AppSetting, it has all the rows with GUIDS of value '884599724600B54494CB271D699EE67B'. I have no idea how it is getting this value out of what is stored in the database. Since it is different it isn't querying any of the rows from my table. I don't understand why the value is getting pulled out differently or what to do in order to make my query return results. Please advise.
var results = context.AppSetting.Where(a => a.TenantId == tenantId)
When I use Visual Studio to peek at AppSetting, it has all the rows with GUIDS of value '884599724600B54494CB271D699EE67B'. I have no idea how it is getting this value out of what is stored in the database. Since it is different it isn't querying any of the rows from my table. I don't understand why the value is getting pulled out differently or what to do in order to make my query return results. Please advise.