Automatic compilation of Linq to SQL queries