|
Post by ivanlemus on Sept 29, 2009 8:14:55 GMT -5
Do you know how to fix this error?
Error Compiling Expression: Error Compiling Expression: 'System.Convert' does not contain a definition for 'ToData'
It gets generated when trying to compile a query that uses a binary(8) field. Something like this:
join od1 in ASGWebDBContext.vCRM_Order__Details on new { o1.Order__Id, op.Product_Id } equals new { Order__Id = Convert.ToData.Linq.Binary(od1.Order_Id), od1.Product_Id } into od1_join
Thanks for all your help. Have a great day. Ivan
|
|
|
Post by Mikhail Oumantsev on Sept 29, 2009 20:57:30 GMT -5
Please send me dbml and designer.cs files. Then I will be able to debug it. admin@sqltolinq.com
|
|
dbml and designer files
Guest
|
Post by dbml and designer files on Sept 30, 2009 9:52:57 GMT -5
Mikhail, Couldn't find a way to attach files to the case. Sent them files via email to admin@sqltolinq.com. Thanks for all your help. Ivan
|
|
|
Post by Mikhail Oumantsev on Sept 30, 2009 22:46:58 GMT -5
There is a bug in Linqer. It doesn't process Binary data type correctly. In your sample conversion is not required I believe. Try to replace the last line to equals new {od1.Order_Id, od1.Product_Id }
|
|
|
Post by Thanks on Oct 1, 2009 12:08:05 GMT -5
Thanks a lot. That's what I've been doing. Any ideas when will it be fixed? (our db has a lot of those binary fields). Thanks a lot again. Cheers, Ivan
|
|
|
Post by Mikhail Oumantsev on Oct 4, 2009 11:04:03 GMT -5
I plan to fix in October.
|
|