|
Post by Ezi on Aug 15, 2010 17:03:19 GMT -5
I try to convert a sql query that has one left join and one inner join, it converts good but when I compile it it gives me this error:
Error Compiling Expression: Error Compiling Expression: 'Equals' cannot compare a value of type '<anonymous type> (line 17)' with a value of type '<anonymous type> (line 17)'.
This is the SQL:
SELECT Supplier.Name, ItemMainAndStoreView.Name AS ItemName FROM GenPurchaseOrder INNER JOIN ItemMainAndStoreView ON GenPurchaseOrder.ItemNo = ItemMainAndStoreView.ItemStoreID LEFT OUTER JOIN Supplier ON GenPurchaseOrder.Supplier = Supplier.SupplierID
|
|
|
Post by Mikhail Oumantsev on Aug 16, 2010 20:02:45 GMT -5
Probably type casting is required for one of the JOIN statements. Can you send me your dbml and designer files? Then I will be able to debug your query and improve Linqer.
Thanks, Mikhail
admin@sqltolinq.com
|
|