I am using SubSonic3 with SQL Server 2000.
I have problem with the method "FirstOrDefault" - it always throws an exception = "Line 1: Incorrect syntax near '('." from the SubSonic.Linq dll
EDIT (Added code from comment):
InventoryDAL = DAL project name (dll)
Inventort= Subsonic3 Gnerated classes
Name space WHWarehouses = gnerated object
Dim WareH = (From Wh In InventoryDAL.Inventort.WHWarehouses.All _
Where Wh.WarehouseID = 1 ).FirstOrDefault