Click here to Skip to main content
15,888,282 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
Explaination:

Suppose A and B are two tables

B is having a bArray column which stores byte[]

A is having a guidcol column which stores GUID


I want a LINQ query like

result= (from a in this.test.A
join b in this.test.B
on b.guidcol equals B.bArray



looking out for urgent solution....Please
Posted
Updated 6-May-21 21:22pm

You can create a Guid-instance from an byte array via the Guid-constructor. This is comparable to other Guid instances or just return it as string. Example

(new Guid(byteArray)).ToString()


Looks kind of ugly though, but might work.

see also https://msdn.microsoft.com/de-de/library/System.Guid%28v=vs.110%29.aspx[^]
 
Share this answer
 
What if instead of an array i have only one value?
 
Share this answer
 
Comments
CHill60 7-May-21 5:08am    
If you want to comment on, or ask for further clarification of, a solution posted, then use the "Have a Question or Comment?" link next to it. Don't post your follow up questions or comments as a "Solution" to the original post

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900