I am using the Entity Framework with MySQL, and every table has a ID column that is of type CHAR(36). In the EDMX file they are all of type System.Guid, and the SSDL xml looks like:
<EntityType Name="Accounts">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="guid" Nullable="false" />
...
When I try to use any method (Single, Where, Any, etc), it throws an InvalidOperationException stating that the sequence contains no elements. Here's the weird part, if I expand the results view in the debugger, it does show the elements. The GUID values are the same, so it should be returning exactly one element. I have included a picture below (right click save as to see larger), but can anyone explain what is going on here? The GUID's do match:
(method argument) accountID:
{7767402f-9b29-4026-b40d-6eb991748f8c}
(should match) element in results view:
{7767402f-9b29-4026-b40d-6eb991748f8c}