public void All_OnTopLevel() { CheckQuery( () => Cooks.All(c => c.Name == "Hugo"), "SELECT CONVERT(BIT, CASE WHEN NOT EXISTS((SELECT [t0].[ID] FROM [CookTable] AS [t0] WHERE NOT ([t0].[Name] = @1))) " + "THEN 1 ELSE 0 END) AS [value]", row => (object)row.GetValue <bool> (new ColumnID("value", 0)), new CommandParameter("@1", "Hugo")); }