From 78363e471570e3705fa2219b2edcafcb22cb9bfd Mon Sep 17 00:00:00 2001 From: Christopher Jolly Date: Sun, 9 Apr 2023 19:48:09 +0800 Subject: [PATCH] Fix Gears of War tests and update its SQL baselines --- QueryBaseline.cs | 86586 ---------------- .../Query/GearsOfWarFromSqlQueryJetTest.cs | 2 +- .../Query/GearsOfWarQueryJetFixture.cs | 67 + .../Query/GearsOfWarQueryJetTest.cs | 2684 +- 4 files changed, 1147 insertions(+), 88192 deletions(-) delete mode 100644 QueryBaseline.cs diff --git a/QueryBaseline.cs b/QueryBaseline.cs deleted file mode 100644 index 6289291..0000000 --- a/QueryBaseline.cs +++ /dev/null @@ -1,86586 +0,0 @@ -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Compiled_query() : - AssertSql( - @"@__customerID='BERGS' (Size = 255) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__customerID", - // - @"@__customerID='BLAUS' (Size = 255) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__customerID"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_correlated_filtered_collection_works_with_caching() : - AssertSql( - @"SELECT [t].[GearNickName] -FROM [CogTag] AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_alias_generation(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice] -FROM [Order Details] AS [o#OrderDetails] -INNER JOIN ( - SELECT [o0].[OrderID] - FROM [Orders] AS [o0] -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID] -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Include_on_GroupJoin_SelectMany_DefaultIfEmpty_with_inheritance_and_coalesce_result() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank], [t].[Nickname], [t].[SquadId], [t].[AssignedCityName], [t].[CityOrBirthName], [t].[Discriminator], [t].[FullName], [t].[HasSoulPatch], [t].[LeaderNickname], [t].[LeaderSquadId], [t].[Rank] -FROM [Gear] AS [g] -LEFT JOIN ( - SELECT [g2].* - FROM [Gear] AS [g2] - WHERE [g2].[Discriminator] = 'Officer' -) AS [t] ON [g].[LeaderNickname] = [t].[Nickname] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') -ORDER BY [t].[FullName], [g].[FullName]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_ternary_operation_with_has_value_not_null() : - AssertSql( - @"SELECT [w].[Id], IIf( - [w].[AmmunitionType] IS NOT NULL AND ([w].[AmmunitionType] = 1), - 'Yes', - 'No' -) AS [IsCartidge] -FROM [Weapon] AS [w] -WHERE [w].[AmmunitionType] IS NOT NULL AND ([w].[AmmunitionType] = 1)"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Include_query_opt_out() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_inverted_boolean() : - AssertSql( - @"SELECT [w].[Id], IIf( - [w].[IsAutomatic] = False, - True, - False -) AS [Manual] -FROM [Weapon] AS [w] -WHERE [w].[IsAutomatic] = True"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Include_on_GroupJoin_SelectMany_DefaultIfEmpty_with_complex_projection_result() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank], [t].[Nickname], [t].[SquadId], [t].[AssignedCityName], [t].[CityOrBirthName], [t].[Discriminator], [t].[FullName], [t].[HasSoulPatch], [t].[LeaderNickname], [t].[LeaderSquadId], [t].[Rank] -FROM [Gear] AS [g] -LEFT JOIN ( - SELECT [g2].* - FROM [Gear] AS [g2] - WHERE [g2].[Discriminator] IN ('Officer', 'Gear') -) AS [t] ON [g].[LeaderNickname] = [t].[Nickname] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') -ORDER BY [g].[FullName], [t].[FullName]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Sum_with_optional_navigation_is_translated_to_sql() : - AssertSql( - @"SELECT SUM([g].[SquadId]) -FROM [Gear] AS [g] -LEFT JOIN [CogTag] AS [g#Tag] ON ([g].[Nickname] = [g#Tag].[GearNickName]) AND ([g].[SquadId] = [g#Tag].[GearSquadId]) -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g#Tag].[Note] <> 'Foo') OR [g#Tag].[Note] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_kiwi() : - AssertSql( - @"SELECT [k].[Species], [k].[CountryId], [k].[Discriminator], [k].[Name], [k].[EagleId], [k].[IsFlightless], [k].[FoundOn] -FROM [Animal] AS [k] -WHERE ([k].[Discriminator] = 'Kiwi') AND ([k].[CountryId] = 1)"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_bird_first() : - AssertSql( - @"SELECT TOP 1 [b].[Species], [b].[CountryId], [b].[Discriminator], [b].[Name], [b].[EagleId], [b].[IsFlightless], [b].[Group], [b].[FoundOn] -FROM [Animal] AS [b] -WHERE [b].[Discriminator] IN ('Kiwi', 'Eagle') AND ([b].[CountryId] = 1) -ORDER BY [b].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_is_kiwi_in_projection() : - AssertSql( - @"SELECT IIf( - [a].[Discriminator] = 'Kiwi', - True, - False -) -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[CountryId] = 1)"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_alias_generation(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice] -FROM [Order Details] AS [o#OrderDetails] -INNER JOIN ( - SELECT [o0].[OrderID] - FROM [Orders] AS [o0] -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID] -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_bird_with_projection() : - AssertSql( - @"SELECT [b].[EagleId] -FROM [Animal] AS [b] -WHERE [b].[Discriminator] IN ('Kiwi', 'Eagle') AND ([b].[CountryId] = 1)"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_is_kiwi() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE ([a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[CountryId] = 1)) AND ([a].[Discriminator] = 'Kiwi')"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_bird_predicate() : - AssertSql( - @"SELECT [b].[Species], [b].[CountryId], [b].[Discriminator], [b].[Name], [b].[EagleId], [b].[IsFlightless], [b].[Group], [b].[FoundOn] -FROM [Animal] AS [b] -WHERE ([b].[Discriminator] IN ('Kiwi', 'Eagle') AND ([b].[CountryId] = 1)) AND ([b].[CountryId] = 1) -ORDER BY [b].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_animal() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[CountryId] = 1) -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_bird() : - AssertSql( - @"SELECT [b].[Species], [b].[CountryId], [b].[Discriminator], [b].[Name], [b].[EagleId], [b].[IsFlightless], [b].[Group], [b].[FoundOn] -FROM [Animal] AS [b] -WHERE [b].[Discriminator] IN ('Kiwi', 'Eagle') AND ([b].[CountryId] = 1) -ORDER BY [b].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_is_kiwi_with_other_predicate() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE ([a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[CountryId] = 1)) AND (([a].[Discriminator] = 'Kiwi') AND ([a].[CountryId] = 1))"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_comparison_with_null() : - AssertSql( - @"@__ammunitionType_1='Cartridge' (Nullable = true) -@__ammunitionType_0='Cartridge' (Nullable = true) - -SELECT [w].[Id], IIf( - [w].[AmmunitionType] = @__ammunitionType_1, - True, - False -) AS [Cartidge] -FROM [Weapon] AS [w] -WHERE [w].[AmmunitionType] = @__ammunitionType_0", - // - @"SELECT [w].[Id], IIf( - [w].[AmmunitionType] IS NULL, - True, - False -) AS [Cartidge] -FROM [Weapon] AS [w] -WHERE [w].[AmmunitionType] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Entity_equality_empty() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND ([g].[Nickname] IS NULL AND ([g].[SquadId] = 0))"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Discriminator_used_when_projection_over_of_type() : - AssertSql( - @"SELECT [k].[FoundOn] -FROM [Animal] AS [k] -WHERE [k].[Discriminator] = 'Kiwi'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_query_all_types_when_shared_column() : - AssertSql( - @"SELECT [d].[Id], [d].[Discriminator], [d].[CaffeineGrams], [d].[CokeCO2], [d].[SugarGrams], [d].[LiltCO2], [d].[HasMilk] -FROM [Drink] AS [d] -WHERE [d].[Discriminator] IN ('Tea', 'Lilt', 'Coke', 'Drink')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_kiwi_where_north_on_derived_property() : - AssertSql( - @"SELECT [x].[Species], [x].[CountryId], [x].[Discriminator], [x].[Name], [x].[EagleId], [x].[IsFlightless], [x].[FoundOn] -FROM [Animal] AS [x] -WHERE ([x].[Discriminator] = 'Kiwi') AND ([x].[FoundOn] = 0)"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_alias_generation(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate] -FROM [Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_include_prey() : - AssertSql( - @"SELECT TOP 2 [e].[Species], [e].[CountryId], [e].[Discriminator], [e].[Name], [e].[EagleId], [e].[IsFlightless], [e].[Group] -FROM [Animal] AS [e] -WHERE [e].[Discriminator] = 'Eagle' -ORDER BY [e].[Species]", - // - @"SELECT [e#Prey].[Species], [e#Prey].[CountryId], [e#Prey].[Discriminator], [e#Prey].[Name], [e#Prey].[EagleId], [e#Prey].[IsFlightless], [e#Prey].[Group], [e#Prey].[FoundOn] -FROM [Animal] AS [e#Prey] -INNER JOIN ( - SELECT TOP 1 [e0].[Species] - FROM [Animal] AS [e0] - WHERE [e0].[Discriminator] = 'Eagle' - ORDER BY [e0].[Species] -) AS [t] ON [e#Prey].[EagleId] = [t].[Species] -WHERE [e#Prey].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [t].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Discriminator_used_when_projection_over_derived_type() : - AssertSql( - @"SELECT [k].[FoundOn] -FROM [Animal] AS [k] -WHERE [k].[Discriminator] = 'Kiwi'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_animal() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_bird() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_query_when_shared_column() : - AssertSql( - @"SELECT TOP 2 [d].[Id], [d].[Discriminator], [d].[CaffeineGrams], [d].[CokeCO2], [d].[SugarGrams] -FROM [Drink] AS [d] -WHERE [d].[Discriminator] = 'Coke'", - // - @"SELECT TOP 2 [d].[Id], [d].[Discriminator], [d].[LiltCO2], [d].[SugarGrams] -FROM [Drink] AS [d] -WHERE [d].[Discriminator] = 'Lilt'", - // - @"SELECT TOP 2 [d].[Id], [d].[Discriminator], [d].[CaffeineGrams], [d].[HasMilk] -FROM [Drink] AS [d] -WHERE [d].[Discriminator] = 'Tea'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_kiwi_where_south_on_derived_property() : - AssertSql( - @"SELECT [x].[Species], [x].[CountryId], [x].[Discriminator], [x].[Name], [x].[EagleId], [x].[IsFlightless], [x].[FoundOn] -FROM [Animal] AS [x] -WHERE ([x].[Discriminator] = 'Kiwi') AND ([x].[FoundOn] = 1)"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_is_kiwi_with_other_predicate() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND (([a].[Discriminator] = 'Kiwi') AND ([a].[CountryId] = 1))"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_bird_with_projection() : - AssertSql( - @"SELECT [b].[EagleId] -FROM [Animal] AS [b] -WHERE [b].[Discriminator] IN ('Kiwi', 'Eagle')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_query_just_roses() : - AssertSql( - @"SELECT TOP 2 [p].[Species], [p].[CountryId], [p].[Genus], [p].[Name], [p].[HasThorns] -FROM [Plant] AS [p] -WHERE [p].[Genus] = 0"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_bird_predicate() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[CountryId] = 1) -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_is_kiwi_in_projection() : - AssertSql( - @"SELECT IIf( - [a].[Discriminator] = 'Kiwi', - True, - False -) -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_query_just_kiwis() : - AssertSql( - @"SELECT TOP 2 [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] = 'Kiwi'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_include_animals() : - AssertSql( - @"SELECT [c].[Id], [c].[Name] -FROM [Country] AS [c] -ORDER BY [c].[Name], [c].[Id]", - // - @"SELECT [c#Animals].[Species], [c#Animals].[CountryId], [c#Animals].[Discriminator], [c#Animals].[Name], [c#Animals].[EagleId], [c#Animals].[IsFlightless], [c#Animals].[Group], [c#Animals].[FoundOn] -FROM [Animal] AS [c#Animals] -INNER JOIN ( - SELECT [c0].[Id], [c0].[Name] - FROM [Country] AS [c0] -) AS [t] ON [c#Animals].[CountryId] = [t].[Id] -WHERE [c#Animals].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [t].[Name], [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_filter_all_animals() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[Name] = 'Great spotted kiwi') -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_kiwi() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] = 'Kiwi'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_is_kiwi() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[Discriminator] = 'Kiwi')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_bird_first() : - AssertSql( - @"SELECT TOP 1 [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Discriminator_used_when_projection_over_derived_type2() : - AssertSql( - @"SELECT [b].[IsFlightless], [b].[Discriminator] -FROM [Animal] AS [b] -WHERE [b].[Discriminator] IN ('Kiwi', 'Eagle')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_query_all_animals() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_alias_generation(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate] -FROM [Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_join_clause_with_order_by_and_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - INNER JOIN [Orders] AS [o0] ON [c0].[CustomerID] = [o0].[CustomerID] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_join_clause_with_order_by_and_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - INNER JOIN [Orders] AS [o0] ON [c0].[CustomerID] = [o0].[CustomerID] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Where_subquery_on_navigation_client_eval() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [o4].[OrderID] -FROM [Orders] AS [o4]", - // - @"@_outer_CustomerID='ALFKI' (Size = 255) - -SELECT [o2].[OrderID] -FROM [Orders] AS [o2] -WHERE @_outer_CustomerID = [o2].[CustomerID]", - // - @"SELECT [o4].[OrderID] -FROM [Orders] AS [o4]", - // - @"@_outer_CustomerID='ANATR' (Size = 255) - -SELECT [o2].[OrderID] -FROM [Orders] AS [o2] -WHERE @_outer_CustomerID = [o2].[CustomerID]", - // - @"SELECT [o4].[OrderID] -FROM [Orders] AS [o4]", - // - @"@_outer_CustomerID='ANTON' (Size = 255) - -SELECT [o2].[OrderID] -FROM [Orders] AS [o2] -WHERE @_outer_CustomerID = [o2].[CustomerID]", - // - @"SELECT [o4].[OrderID] -FROM [Orders] AS [o4]", - // - @"@_outer_CustomerID='AROUT' (Size = 255) - -SELECT [o2].[OrderID] -FROM [Orders] AS [o2] -WHERE @_outer_CustomerID = [o2].[CustomerID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_select_nav_prop_first_or_default_then_nav_prop() : - AssertSql( - @"SELECT [e].[CustomerID] -FROM [Customers] AS [e] -WHERE [e].[CustomerID] LIKE 'A' + '%' AND (LEFT([e].[CustomerID], LEN('A')) = 'A') -ORDER BY [e].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Size = 255) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM [Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID] -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])", - // - @"@_outer_CustomerID='ANATR' (Size = 255) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM [Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID] -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])", - // - @"@_outer_CustomerID='ANTON' (Size = 255) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM [Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID] -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])", - // - @"@_outer_CustomerID='AROUT' (Size = 255) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM [Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID] -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Navigation_fk_based_inside_contains() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] IN ('ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_where_nav_prop_all() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([c].[CustomerID] = [o].[CustomerID]) AND (([o].[CustomerID] <> 'ALFKI') OR [o].[CustomerID] IS NULL))"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.GroupBy_on_nav_prop() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[City] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -ORDER BY [o#Customer].[City]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Compare_simple_zero() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_Where_Count_with_predicate_client_eval_mixed() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] <> 'ALFKI') OR [o].[CustomerID] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_StartsWith_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[ContactName] LIKE [c].[ContactName] + '%' AND (LEFT([c].[ContactName], LEN([c].[ContactName])) = [c].[ContactName])) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Join_with_nav_projected_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM [Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID]", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM [Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_client_and_server_top_level() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> 'AROUT'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_shadow() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[Title] = 'Sales Representative'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_project_filter() : - AssertSql( - @"SELECT [c].[CompanyName] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_dependent_already_tracked(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_StartsWith_MethodCall() : - AssertSql( - @"@__LocalMethod1_0='M' (Size = 4000) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[ContactName] LIKE @__LocalMethod1_0 + '%' AND (LEFT([c].[ContactName], LEN(@__LocalMethod1_0)) = @__LocalMethod1_0)) OR (@__LocalMethod1_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.First_inside_subquery_gets_client_evaluated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"@_outer_CustomerID='ALFKI' (Size = 255) - -SELECT TOP 1 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE ([o0].[CustomerID] = 'ALFKI') AND (@_outer_CustomerID = [o0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_Count_with_predicate() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition4() : - AssertSql( - @"@__p_0='2' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t]", - // - @"SELECT 1 -FROM [Customers] AS [c0] -ORDER BY [c0].[CustomerID]", - // - @"SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2]", - // - @"SELECT 1 -FROM [Customers] AS [c0] -ORDER BY [c0].[CustomerID]", - // - @"SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_method_string() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_dependent_already_tracked(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_join_clause_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID] - FROM [Customers] AS [c0] - INNER JOIN [Orders] AS [o0] ON [c0].[CustomerID] = [o0].[CustomerID] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_collection_navigation_simple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A') -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] LIKE 'A' + '%' AND (LEFT([c0].[CustomerID], LEN('A')) = 'A') -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_Where_OrderBy() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE ([o].[CustomerID] = 'ALFKI') OR ([c].[CustomerID] = 'ANATR') -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_Subquery_Single() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [od].[OrderID] -FROM [Order Details] AS [od] -ORDER BY [od].[ProductID], [od].[OrderID]", - // - @"@_outer_OrderID='10285' - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_OrderID = [o].[OrderID] -ORDER BY [o].[OrderID]", - // - @"@_outer_OrderID='10294' - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_OrderID = [o].[OrderID] -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Take_Distinct_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT DISTINCT [t].* - FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - ) AS [t] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_expression_int_to_string() : - AssertSql( - @"SELECT Str([o].[OrderID]) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_is_null() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"@_outer_ReportsTo='2' (Nullable = true) - -SELECT TOP 2 [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM [Employees] AS [e2] -WHERE [e2].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM [Employees] AS [e2] -WHERE [e2].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' (Nullable = true) - -SELECT TOP 2 [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM [Employees] AS [e2] -WHERE [e2].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_where_nav_prop_all_client() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Size = 255) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Size = 255) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANTON' (Size = 255) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Size = 255) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BERGS' (Size = 255) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BLAUS' (Size = 255) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BLONP' (Size = 255) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BOLID' (Size = 255) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Navigations_Where_Navigations() : - AssertSql( - @"SELECT [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE ([o#Customer].[City] = 'Seattle') AND (([o#Customer].[Phone] <> '555 555 5555') OR [o#Customer].[Phone] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_conditional_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[Region] IS NULL, - 'ZZ', - [c].[Region] -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Singleton_Navigation_With_Member_Access() : - AssertSql( - @"SELECT [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City] AS [B], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE ([o#Customer].[City] = 'Seattle') AND (([o#Customer].[Phone] <> '555 555 5555') OR [o#Customer].[Phone] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Navigation() : - AssertSql( - @"SELECT [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_then_include_collection(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID], [c#Orders].[OrderID]", - // - @"SELECT [c#Orders#OrderDetails].[OrderID], [c#Orders#OrderDetails].[ProductID], [c#Orders#OrderDetails].[Discount], [c#Orders#OrderDetails].[Quantity], [c#Orders#OrderDetails].[UnitPrice] -FROM [Order Details] AS [c#Orders#OrderDetails] -INNER JOIN ( - SELECT DISTINCT [c#Orders0].[OrderID], [t0].[CustomerID] - FROM [Orders] AS [c#Orders0] - INNER JOIN ( - SELECT [c1].[CustomerID] - FROM [Customers] AS [c1] - ) AS [t0] ON [c#Orders0].[CustomerID] = [t0].[CustomerID] -) AS [t1] ON [c#Orders#OrderDetails].[OrderID] = [t1].[OrderID] -ORDER BY [t1].[CustomerID], [t1].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_collection_complex_predicate_not_matching_ins2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI') AND [c].[CustomerID] NOT IN ('ALFKI', 'ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Contains_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr([c].[ContactName], [c].[ContactName]) > 0) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_member_distinct_where() : - AssertSql( - @"SELECT [t].[CustomerID] -FROM ( - SELECT DISTINCT [c].[CustomerID] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Contains_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr([c].[ContactName], [c].[ContactName]) > 0) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_reversed() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE 'London' = [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_concat_with_navigation2() : - AssertSql( - @"SELECT ([o#Customer].[City] + ' ') + [o#Customer].[City] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Join_with_nav_in_orderby_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM [Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID]", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM [Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Contains() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE Instr([o#Customer].[City], 'Sea') > 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_Where_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_EndsWith_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE RIGHT([c].[ContactName], LEN('b')) = 'b'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key_with_first_or_default(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CompanyName] DESC, [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID], [c0].[CompanyName] - FROM [Customers] AS [c0] - ORDER BY [c0].[CompanyName] DESC, [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CompanyName] DESC, [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key_with_first_or_default(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CompanyName] DESC, [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID], [c0].[CompanyName] - FROM [Customers] AS [c0] - ORDER BY [c0].[CompanyName] DESC, [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CompanyName] DESC, [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_with_filter_reordered(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_with_filter_reordered(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Where_nav_prop_group_by() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID] -WHERE [od#Order].[CustomerID] = 'ALFKI' -ORDER BY [od].[Quantity]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_select_nav_prop_single_or_default_then_nav_prop_nested() : - AssertSql( - @"SELECT 1 -FROM [Customers] AS [e] -WHERE [e].[CustomerID] LIKE 'A' + '%' AND (LEFT([e].[CustomerID], LEN('A')) = 'A')", - // - @"SELECT TOP 2 [o#Customer0].[City] -FROM [Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID] -WHERE [o0].[OrderID] = 10643", - // - @"SELECT TOP 2 [o#Customer0].[City] -FROM [Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID] -WHERE [o0].[OrderID] = 10643", - // - @"SELECT TOP 2 [o#Customer0].[City] -FROM [Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID] -WHERE [o0].[OrderID] = 10643", - // - @"SELECT TOP 2 [o#Customer0].[City] -FROM [Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID] -WHERE [o0].[OrderID] = 10643"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_collection_FirstOrDefault_project_entity() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Size = 255) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Size = 255) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_take_no_order_by(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_take_no_order_by(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Singleton_Navigation_With_Member_Access() : - AssertSql( - @"SELECT [o#Customer].[City] AS [B] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE ([o#Customer].[City] = 'Seattle') AND (([o#Customer].[Phone] <> '555 555 5555') OR [o#Customer].[Phone] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A')) AND (([c].[City] <> 'London') OR [c].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_subquery_involving_join_binds_to_correct_table() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] > 11000) AND [o].[OrderID] IN ( - SELECT [od].[OrderID] - FROM [Order Details] AS [od] - INNER JOIN [Products] AS [od#Product] ON [od].[ProductID] = [od#Product].[ProductID] - WHERE [od#Product].[ProductName] = 'Chai' -)"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_filter_reordered(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_filter_reordered(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A'))"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.GroupJoin_with_nav_in_predicate_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM [Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID]", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM [Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Project_single_entity_value_subquery_works() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A') -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Size = 255) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='ANATR' (Size = 255) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='ANTON' (Size = 255) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='AROUT' (Size = 255) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition2() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_correlated_subquery_ordered() : - AssertSql( - @"@__p_0='3' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.GroupJoin_with_nav_in_orderby_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM [Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID]", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM [Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Take_Select_Navigation() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Size = 255) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Size = 255) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_take_max() : - AssertSql( - @"@__p_0='10' - -SELECT MAX([t].[OrderID]) -FROM ( - SELECT TOP @__p_0 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Let_group_by_nav_prop() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice], [od#Order].[CustomerID] AS [customer] -FROM [Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID] -ORDER BY [od#Order].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Included() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE [o#Customer].[City] = 'Seattle'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_list_inline() : line() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\QueryJetTest.cs:riga 6234 - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.IsNullOrEmpty_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[Region] IS NULL OR ([c].[Region] = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Join_with_nav_in_predicate_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM [Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID]", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM [Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Client() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Navigation_inside_contains() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE [o#Customer].[City] IN ('Novigrad', 'Seattle')"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_collection_FirstOrDefault_project_anonymous_type() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Size = 255) - -SELECT TOP 1 [o].[CustomerID], [o].[OrderID] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Size = 255) - -SELECT TOP 1 [o].[CustomerID], [o].[OrderID] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Multiple_Access() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE ([o#Customer].[City] = 'Seattle') AND (([o#Customer].[Phone] <> '555 555 5555') OR [o#Customer].[Phone] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_select_nav_prop_first_or_default() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Size = 255) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Size = 255) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANTON' (Size = 255) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Size = 255) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BERGS' (Size = 255) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BLAUS' (Size = 255) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BLONP' (Size = 255) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BOLID' (Size = 255) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_and_collection(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice] -FROM [Order Details] AS [o#OrderDetails] -INNER JOIN ( - SELECT DISTINCT [o0].[OrderID] - FROM [Orders] AS [o0] - LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID] -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID] -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_customers_orders_with_subquery_anonymous_property_method_with_take() : - AssertSql( - @"@__p_0='5' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT TOP @__p_0 [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] - FROM [Orders] AS [o2] - ORDER BY [o2].[OrderID] -) AS [t]", - // - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Take_simple() : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_when_groupby(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_when_groupby(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_last_no_orderby(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] DESC", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] DESC -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_last_no_orderby(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] DESC", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] DESC -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_select_nav_prop_all_client() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Size = 255) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Size = 255) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='ANTON' (Size = 255) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Size = 255) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='BERGS' (Size = 255) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='BLAUS' (Size = 255) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='BLONP' (Size = 255) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='BOLID' (Size = 255) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Null_Deep() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -LEFT JOIN [Employees] AS [e#Manager] ON [e].[ReportsTo] = [e#Manager].[EmployeeID] -WHERE [e#Manager].[ReportsTo] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_principal_already_tracked_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_principal_already_tracked_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A'))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Take_subquery_projection() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[City] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_negated_twice() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_entity_equality_one_element_SingleOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"@_outer_ReportsTo='2' (Nullable = true) - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' (Nullable = true) - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_complex_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [A] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[A] LIKE 'A' + '%' AND (LEFT([t].[A], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Take_OrderBy_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Substring_with_client_eval() : - AssertSql( - @"SELECT TOP 1 [c].[ContactName] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_conditional_order_by(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[CustomerID] LIKE 'S' + '%' AND (LEFT([c].[CustomerID], LEN('S')) = 'S'), - 1, - 2 -), [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], IIf( - [c0].[CustomerID] LIKE 'S' + '%' AND (LEFT([c0].[CustomerID], LEN('S')) = 'S'), - 1, - 2 - ) AS [c] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[c], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Take_with_single() : - AssertSql( - @"@__p_0='1' - -SELECT TOP 2 [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_conditional_order_by(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[CustomerID] LIKE 'S' + '%' AND (LEFT([c].[CustomerID], LEN('S')) = 'S'), - 1, - 2 -), [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], IIf( - [c0].[CustomerID] LIKE 'S' + '%' AND (LEFT([c0].[CustomerID], LEN('S')) = 'S'), - 1, - 2 - ) AS [c] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[c], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_parameter() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE @__prm_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_concat_with_navigation1() : - AssertSql( - @"SELECT ([o].[CustomerID] + ' ') + [o#Customer].[City] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_member_distinct_where() : - AssertSql( - @"SELECT [t].[Property] -FROM ( - SELECT DISTINCT [c].[CustomerID] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_key(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Queryable_simple_anonymous_subquery() : - AssertSql( - @"@__p_0='91' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_as_no_tracking2(Boolean useString) : - AssertSql( - @"@__p_0='5' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@__p_0='5' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_as_no_tracking2(Boolean useString) : - AssertSql( - @"@__p_0='5' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@__p_0='5' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_orderBy_take_count() : - AssertSql( - @"@__p_0='7' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[Country] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_principal_already_tracked(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_shadow_subquery_FirstOrDefault() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[Title] = ( - SELECT TOP 1 [e2].[Title] - FROM [Employees] AS [e2] - ORDER BY [e2].[Title] -)"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_with_filter(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_Where_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_take_min() : - AssertSql( - @"@__p_0='10' - -SELECT MIN([t].[OrderID]) -FROM ( - SELECT TOP @__p_0 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_false() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_with_skip(Boolean useString) : - AssertSql( - @"@__p_0='80' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName], [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_with_skip(Boolean useString) : - AssertSql( - @"@__p_0='80' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName], [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_member_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] LIKE 'A' + '%' AND (LEFT([t].[Property], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multi_level_reference_and_collection_predicate(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE [o].[OrderID] = 10248 -ORDER BY [o#Customer].[CustomerID]", - // - @"SELECT [o#Customer#Orders].[OrderID], [o#Customer#Orders].[CustomerID], [o#Customer#Orders].[EmployeeID], [o#Customer#Orders].[OrderDate] -FROM [Orders] AS [o#Customer#Orders] -INNER JOIN ( - SELECT DISTINCT [t].* - FROM ( - SELECT TOP 1 [o#Customer0].[CustomerID] - FROM [Orders] AS [o0] - LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID] - WHERE [o0].[OrderID] = 10248 - ORDER BY [o#Customer0].[CustomerID] - ) AS [t] -) AS [t0] ON [o#Customer#Orders].[CustomerID] = [t0].[CustomerID] -ORDER BY [t0].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multi_level_reference_and_collection_predicate(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE [o].[OrderID] = 10248 -ORDER BY [o#Customer].[CustomerID]", - // - @"SELECT [o#Customer#Orders].[OrderID], [o#Customer#Orders].[CustomerID], [o#Customer#Orders].[EmployeeID], [o#Customer#Orders].[OrderDate] -FROM [Orders] AS [o#Customer#Orders] -INNER JOIN ( - SELECT DISTINCT [t].* - FROM ( - SELECT TOP 1 [o#Customer0].[CustomerID] - FROM [Orders] AS [o0] - LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID] - WHERE [o0].[OrderID] = 10248 - ORDER BY [o#Customer0].[CustomerID] - ) AS [t] -) AS [t0] ON [o#Customer#Orders].[CustomerID] = [t0].[CustomerID] -ORDER BY [t0].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_EndsWith_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (RIGHT([c].[ContactName], LEN([c].[ContactName])) = [c].[ContactName]) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_de_morgan_and_optimizated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) OR ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Local_array() : - AssertSql( - @"@__get_Item_0='ALFKI' (Size = 255) - -SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key_with_take(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactTitle], [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID], [c0].[ContactTitle] - FROM [Customers] AS [c0] - ORDER BY [c0].[ContactTitle], [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[ContactTitle], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key_with_take(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactTitle], [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID], [c0].[ContactTitle] - FROM [Customers] AS [c0] - ORDER BY [c0].[ContactTitle], [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[ContactTitle], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_last(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CompanyName] DESC, [c].[CustomerID] DESC", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID], [c0].[CompanyName] - FROM [Customers] AS [c0] - ORDER BY [c0].[CompanyName] DESC, [c0].[CustomerID] DESC -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CompanyName] DESC, [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_last(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CompanyName] DESC, [c].[CustomerID] DESC", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID], [c0].[CompanyName] - FROM [Customers] AS [c0] - ORDER BY [c0].[CompanyName] DESC, [c0].[CustomerID] DESC -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CompanyName] DESC, [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_expression_long_to_string() : - AssertSql( - @"SELECT Str([o].[OrderID]) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_with_take(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[City] DESC, [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - ORDER BY [c0].[City] DESC, [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[City] DESC, [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Distinct_Take() : - AssertSql( - @"@__p_0='5' - -SELECT TOP @__p_0 [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT DISTINCT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] -) AS [t] -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_where_skip_take_projection(Boolean useString) : - AssertSql( - @"@__p_1='2' -@__p_0='1' - -SELECT TOP @__p_1+@__p_0 [od#Order].[CustomerID] -FROM [Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID] -WHERE [od].[Quantity] = 10 -ORDER BY [od].[OrderID], [od].[ProductID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_where_skip_take_projection(Boolean useString) : - AssertSql( - @"@__p_1='2' -@__p_0='1' - -SELECT TOP @__p_1+@__p_0 [od#Order].[CustomerID] -FROM [Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID] -WHERE [od].[Quantity] = 10 -ORDER BY [od].[OrderID], [od].[ProductID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A')) AND (([c].[City] <> 'London') OR [c].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_EndsWith_MethodCall() : - AssertSql( - @"@__LocalMethod2_0='m' (Size = 4000) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (RIGHT([c].[ContactName], LEN(@__LocalMethod2_0)) = @__LocalMethod2_0) OR (@__LocalMethod2_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_expression_invoke() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition2_FirstOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t] -WHERE [t].[FirstName] = ( - SELECT TOP 1 [e0].[FirstName] - FROM [Employees] AS [e0] - ORDER BY [e0].[EmployeeID] -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_member_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[CustomerID] LIKE 'A' + '%' AND (LEFT([t].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_Customers_Orders_Projection_With_String_Concat_Skip_Take() : - AssertSql( - @"@__p_1='5' -@__p_0='10' - -SELECT TOP @__p_1+@__p_0 ([c].[ContactName] + ' ') + [c].[ContactTitle] AS [Contact], [o].[OrderID] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -ORDER BY [o].[OrderID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_compared_to_binary_expression() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = IIf( - [p].[ProductID] > 50, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Null_conditional_simple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_comparison_to_nullable_bool() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE RIGHT([c].[CustomerID], LEN('KI')) = 'KI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_subquery_and_local_array_closure() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [c1] - WHERE [c1].[City] IN ('London', 'Buenos Aires') AND ([c1].[CustomerID] = [c].[CustomerID]))", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [c1] - WHERE [c1].[City] IN ('London') AND ([c1].[CustomerID] = [c].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Distinct_Take_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT DISTINCT TOP @__p_0 [o].* - FROM [Orders] AS [o] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_LastOrDefault() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Contains_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Instr([c].[ContactName], 'M') > 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_on_mismatched_types_nullable_int_long() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_false() : - AssertSql( - @"@__flag_0='False' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ((@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_0 <> True) AND ([p].[UnitsInStock] < 20))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Single_Predicate() : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Take_simple_parameterized() : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_collection_complex_predicate_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI', 'ALFKI', 'ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_with_multiple_conditions_still_uses_exists() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[City] = 'London') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[EmployeeID] = 1) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_expression_other_to_string() : - AssertSql( - @"SELECT Str([o].[OrderDate]) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_sin() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (SIN([od].[Discount]) > 0E0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_skip_take() : - AssertSql( - @"@__p_1='8' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactTitle], [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_simple_subquery() : - AssertSql( - @"@__p_0='4' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM [Customers] AS [c] -INNER JOIN ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] ON [c].[CustomerID] = [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_negated_boolean_expression_compared_to_another_negated_boolean_expression() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE IIf( - [p].[ProductID] > 50, - True, - False -) = IIf( - [p].[ProductID] > 20, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_StartsWith_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[ContactName] LIKE [c].[ContactName] + '%' AND (LEFT([c].[ContactName], LEN([c].[ContactName])) = [c].[ContactName])) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OfType_Select() : - AssertSql( - @"SELECT TOP 1 [o#Customer].[City] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_complex_distinct_where() : - AssertSql( - @"SELECT [t].[Property] -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] = 'ALFKIBerlin'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_is_not_null() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"@_outer_ReportsTo='2' (Nullable = true) - -SELECT TOP 2 [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM [Employees] AS [e2] -WHERE [e2].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM [Employees] AS [e2] -WHERE [e2].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' (Nullable = true) - -SELECT TOP 2 [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM [Employees] AS [e2] -WHERE [e2].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_customers_orders_with_subquery_with_take() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[ContactName], [t].[OrderID] -FROM [Customers] AS [c] -INNER JOIN ( - SELECT TOP @__p_0 [o2].* - FROM [Orders] AS [o2] - ORDER BY [o2].[OrderID] -) AS [t] ON [c].[CustomerID] = [t].[CustomerID] -WHERE [t].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_true() : - AssertSql( - @"@__flag_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ((@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_0 <> True) AND ([p].[UnitsInStock] < 20))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_collection_complex_predicate_not_matching_ins1() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ALFKI', 'ABCDE') OR [c].[CustomerID] NOT IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_client_side_negated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Take_Where_Distinct_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT DISTINCT [t].* - FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - WHERE [o].[CustomerID] = 'FRANK' - ) AS [t] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_multi_level() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')", - // - @"@_outer_CustomerID='ALFKI' (Size = 255) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='ANATR' (Size = 255) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='ANTON' (Size = 255) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='AROUT' (Size = 255) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_correlated_subquery_projection() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[CustomerID] -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] -) AS [t] -ORDER BY [t].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Size = 255) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Size = 255) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANTON' (Size = 255) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.IsNullOrEmpty_in_projection() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], IIf( - [c].[Region] IS NULL OR ([c].[Region] = ''), - True, - False -) AS [Value] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_shadow_projection() : - AssertSql( - @"SELECT [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[Title] = 'Sales Representative'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_DefaultIfEmpty_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [o].[OrderID] IS NOT NULL AND ([o].[CustomerID] = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_constant_is_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A'))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Last() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_subquery_closure_via_query_cache() : - AssertSql( - @"@__customerID_0='ALFKI' (Size = 255) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] = @__customerID_0) AND ([o].[CustomerID] = [c].[CustomerID]))", - // - @"@__customerID_0='ANATR' (Size = 255) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] = @__customerID_0) AND ([o].[CustomerID] = [c].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_exp() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (EXP([od].[Discount]) > 1E0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Skip_Take() : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_de_morgan_or_optimizated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) AND ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE [e1].[FirstName] = ( - SELECT TOP 1 [e].[FirstName] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_scalar_primitive_after_take() : - AssertSql( - @"@__p_0='9' - -SELECT TOP @__p_0 [e].[EmployeeID] -FROM [Employees] AS [e]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.FirstOrDefault_inside_subquery_gets_server_evaluated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND (( - SELECT TOP 1 [o].[CustomerID] - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] = 'ALFKI') AND ([c].[CustomerID] = [o].[CustomerID]) -) = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.IsNullOrWhiteSpace_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[Region] IS NULL OR (LTRIM(RTRIM([c].[Region])) = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_array_closure() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI')", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Query_expression_with_to_string_and_contains() : - AssertSql( - @"SELECT [o].[CustomerID] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL AND (Instr(Str([o].[EmployeeID]), '10') > 0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Take_simple_projection() : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[City] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_subquery_on_bool() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE 'Chai' IN ( - SELECT [p2].[ProductName] - FROM [Products] AS [p2] -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_DefaultIfEmpty3() : - AssertSql( - @"@__p_0='1' - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -LEFT JOIN [Orders] AS [o] ON [t].[CustomerID] = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_client_deep_inside_predicate_and_server_top_level() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_customers_orders_with_subquery_predicate_with_take() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[ContactName], [t].[OrderID] -FROM [Customers] AS [c] -INNER JOIN ( - SELECT TOP @__p_0 [o2].* - FROM [Orders] AS [o2] - WHERE [o2].[OrderID] > 0 - ORDER BY [o2].[OrderID] -) AS [t] ON [c].[CustomerID] = [t].[CustomerID] -WHERE [t].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_collection_false() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] NOT IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_parameter_compared_to_binary_expression() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE IIf( - [p].[ProductID] > 50, - True, - False -) <> @__prm_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Last_when_no_order_by() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_anonymous_conditional_expression() : - AssertSql( - @"SELECT [p].[ProductID], IIf( - [p].[UnitsInStock] > 0, - True, - False -) AS [IsAvailable] -FROM [Products] AS [p]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_not_bool_member_compared_to_binary_expression() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] <> IIf( - [p].[ProductID] > 50, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_orderby_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [c].[CustomerID] <> 'ALFKI' -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_entity_equality_no_elements_FirstOrDefault() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE ( - SELECT TOP 1 [e2].[EmployeeID] - FROM [Employees] AS [e2] - WHERE [e2].[EmployeeID] = 42 -) = 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_cos() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (COS([od].[Discount]) > 0E0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A'))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Count_with_predicate() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupBy_anonymous_with_where() : - AssertSql( - @"SELECT [c].[City], [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[Country] IN ('Argentina', 'Austria', 'Brazil', 'France', 'Germany', 'USA') -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_list_inline_closure_mix() : line_closure_mix() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\QueryJetTest.cs:riga 6244 - AssertSql( - @"@__id_0='ALFKI' (Size = 255) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', @__id_0)", - // - @"@__id_0='ANATR' (Size = 255) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', @__id_0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_null_is_not_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_Where_Count_with_predicate() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -WHERE ([o].[OrderID] > 10) AND (([o].[CustomerID] <> 'ALFKI') OR [o].[CustomerID] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.IsNullOrEmpty_negated_in_projection() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], IIf( - [c].[Region] IS NOT NULL AND ([c].[Region] <> ''), - True, - False -) AS [Value] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OfType_Select_OfType_Select() : - AssertSql( - @"SELECT TOP 1 [o#Customer].[City] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_Where_Subquery_Equality() : - AssertSql( - @"@__p_0='1' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] -) AS [t] -ORDER BY [t].[OrderID]", - // - @"SELECT [t1].[OrderID] -FROM ( - SELECT TOP 2 [od0].* - FROM [Order Details] AS [od0] - ORDER BY [od0].[OrderID] -) AS [t1]", - // - @"@_outer_CustomerID2='VINET' (Size = 255) - -SELECT TOP 1 [c3].[Country] -FROM [Customers] AS [c3] -WHERE [c3].[CustomerID] = @_outer_CustomerID2 -ORDER BY [c3].[CustomerID]", - // - @"@_outer_OrderID1='10248' - -SELECT TOP 1 [c4].[Country] -FROM [Orders] AS [o20] -INNER JOIN [Customers] AS [c4] ON [o20].[CustomerID] = [c4].[CustomerID] -WHERE [o20].[OrderID] = @_outer_OrderID1 -ORDER BY [o20].[OrderID], [c4].[CustomerID]", - // - @"@_outer_CustomerID2='VINET' (Size = 255) - -SELECT TOP 1 [c3].[Country] -FROM [Customers] AS [c3] -WHERE [c3].[CustomerID] = @_outer_CustomerID2 -ORDER BY [c3].[CustomerID]", - // - @"@_outer_OrderID1='10248' - -SELECT TOP 1 [c4].[Country] -FROM [Orders] AS [o20] -INNER JOIN [Customers] AS [c4] ON [o20].[CustomerID] = [c4].[CustomerID] -WHERE [o20].[OrderID] = @_outer_OrderID1 -ORDER BY [o20].[OrderID], [c4].[CustomerID]", - // - @"@_outer_CustomerID2='VINET' (Size = 255) - -SELECT TOP 1 [c3].[Country] -FROM [Customers] AS [c3] -WHERE [c3].[CustomerID] = @_outer_CustomerID2 -ORDER BY [c3].[CustomerID]", - // - @"@_outer_OrderID1='10248' - -SELECT TOP 1 [c4].[Country] -FROM [Orders] AS [o20] -INNER JOIN [Customers] AS [c4] ON [o20].[CustomerID] = [c4].[CustomerID] -WHERE [o20].[OrderID] = @_outer_OrderID1 -ORDER BY [o20].[OrderID], [c4].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition2_FirstOrDefault_with_anonymous() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_Where_Subquery_Deep_Single() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[OrderID] = 10344", - // - @"@_outer_OrderID='10344' - -SELECT TOP 2 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE @_outer_OrderID = [o0].[OrderID]", - // - @"@_outer_CustomerID1='WHITC' (Size = 255) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID1 = [c2].[CustomerID]", - // - @"@_outer_OrderID='10344' - -SELECT TOP 2 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE @_outer_OrderID = [o0].[OrderID]", - // - @"@_outer_CustomerID1='WHITC' (Size = 255) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID1 = [c2].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_with_another_condition() : - AssertSql( - @"@__productId_0='15' -@__flag_1='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[ProductID] < @__productId_0) AND (((@__flag_1 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_1 <> True) AND ([p].[UnitsInStock] < 20)))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_and_parameter_compared_to_binary_expression_nested() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = IIf( - IIf( - [p].[ProductID] > 50, - True, - False - ) <> @__prm_0, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_Last() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Contains_MethodCall() : - AssertSql( - @"@__LocalMethod1_0='M' (Size = 4000) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr([c].[ContactName], @__LocalMethod1_0) > 0) OR (@__LocalMethod1_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_compare_with_parameter() : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Size = 4000) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Size = 4000) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Size = 4000) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Size = 4000) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Size = 4000) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Size = 4000) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_complex_distinct_where() : - AssertSql( - @"SELECT [t].[A] -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [A] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[A] = 'ALFKIBerlin'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_equals_constant() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Take_Distinct() : - AssertSql( - @"@__p_0='5' - -SELECT DISTINCT [t].* -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_OrderBy_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_with_false_as_result_false() : - AssertSql( - @"@__flag_0='False' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Compare_multi_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= 'ALFKI' AND [c].[CustomerID] < 'CACTU'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactTitle] = 'Owner' AND [c].[Country] <> 'USA'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_complex_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] LIKE 'A' + '%' AND (LEFT([t].[Property], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_with_false_as_result_true() : - AssertSql( - @"@__flag_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_compare_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] IS NULL AND ([c].[Country] = 'UK')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_Take_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_take_count() : - AssertSql( - @"@__p_0='7' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_subquery_correlated_client_eval() : - AssertSql( - @"@__p_0='5' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] -) AS [t] -ORDER BY [t].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Size = 255) - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID = [c2].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Size = 255) - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID = [c2].[CustomerID]", - // - @"@_outer_CustomerID='ANTON' (Size = 255) - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID = [c2].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Size = 255) - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID = [c2].[CustomerID]", - // - @"@_outer_CustomerID='BERGS' (Size = 255) - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID = [c2].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Entity_equality_local() : - AssertSql( - @"@__local_0_CustomerID='ANATR' (Nullable = false) (Size = 255) - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__local_0_CustomerID"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Queryable_simple_anonymous_projection_subquery() : - AssertSql( - @"@__p_0='91' - -SELECT TOP @__p_0 [c].[City] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_primitive() : - AssertSql( - @"@__p_0='9' - -SELECT [t].[EmployeeID] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID] - FROM [Employees] AS [e] -) AS [t] -WHERE [t].[EmployeeID] = 5"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_false() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_comparison_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[Region] = 'ASK', - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_entity_equality_multiple_elements_FirstOrDefault() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE ( - SELECT TOP 1 [e2].[EmployeeID] - FROM [Employees] AS [e2] - WHERE ([e2].[EmployeeID] <> [e1].[ReportsTo]) OR [e1].[ReportsTo] IS NULL -) = 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_using_object_overload_on_mismatched_types() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_collection_complex_predicate_and() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ALFKI', 'ABCDE') AND [c].[CustomerID] IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_shadow() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_on_mismatched_types_nullable_long_nullable_int() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.SelectMany_mixed() : - AssertSql( - @"@__p_0='2' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_StartsWith_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE 'M' + '%' AND (LEFT([c].[ContactName], LEN('M')) = 'M')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_entity_equality_one_element_FirstOrDefault() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE ( - SELECT TOP 1 [e2].[EmployeeID] - FROM [Employees] AS [e2] - WHERE [e2].[EmployeeID] = [e1].[ReportsTo] -) = 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_false_shadow() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_tan() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (TAN([od].[Discount]) > 0E0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_array_inline() : line() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\QueryJetTest.cs:riga 6214 - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_conditional_operator_where_condition_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - False = True, - 'ZZ', - [c].[City] -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Last_Predicate() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Entity_equality_local_inline() : line() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\QueryJetTest.cs:riga 175 - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ANATR'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Environment_newline_is_funcletized() : line_is_funcletized() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\QueryJetTest.cs:riga 6640 - AssertSql( - @"@__NewLine_0=' -' (Size = 4000) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr([c].[CustomerID], @__NewLine_0) > 0) OR (@__NewLine_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Compare_simple_one() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_entity_equality_no_elements_SingleOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = 42", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = 42", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = 42"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.LastOrDefault_Predicate() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_complex_negated_expression_optimized() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[Discontinued] = False) AND ([p].[ProductID] < 60)) AND ([p].[ProductID] > 30)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_list_closure() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Subquery_member_pushdown_does_not_change_original_subquery_model() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[CustomerID], [t].[OrderID] -FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]", - // - @"@_outer_CustomerID='VINET' (Size = 255) - -SELECT TOP 2 [c0].[City] -FROM [Customers] AS [c0] -WHERE [c0].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='TOMSP' (Size = 255) - -SELECT TOP 2 [c0].[City] -FROM [Customers] AS [c0] -WHERE [c0].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='HANAR' (Size = 255) - -SELECT TOP 2 [c0].[City] -FROM [Customers] AS [c0] -WHERE [c0].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID1='TOMSP' (Size = 255) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE [c2].[CustomerID] = @_outer_CustomerID1", - // - @"@_outer_CustomerID1='VINET' (Size = 255) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE [c2].[CustomerID] = @_outer_CustomerID1", - // - @"@_outer_CustomerID1='HANAR' (Size = 255) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE [c2].[CustomerID] = @_outer_CustomerID1"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_Where_Count_with_predicate_client_eval_mixed() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] <> 'ALFKI') OR [o].[CustomerID] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_method_call_closure_via_query_cache() : - AssertSql( - @"@__GetCity_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0", - // - @"@__GetCity_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_StartsWith_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[ContactName] LIKE [c].[ContactName] + '%' AND (LEFT([c].[ContactName], LEN([c].[ContactName])) = [c].[ContactName])) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_alias_generation(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice] -FROM [Order Details] AS [o#OrderDetails] -INNER JOIN ( - SELECT [o0].[OrderID] - FROM [Orders] AS [o0] -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID] -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_client_and_server_top_level() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> 'AROUT'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_shadow() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[Title] = 'Sales Representative'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_project_filter() : - AssertSql( - @"SELECT [c].[CompanyName] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_StartsWith_MethodCall() : - AssertSql( - @"@__LocalMethod1_0='M' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[ContactName] LIKE @__LocalMethod1_0 + '%' AND (LEFT([c].[ContactName], LEN(@__LocalMethod1_0)) = @__LocalMethod1_0)) OR (@__LocalMethod1_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.First_inside_subquery_gets_client_evaluated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE ([o0].[CustomerID] = 'ALFKI') AND (@_outer_CustomerID = [o0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_Count_with_predicate() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_method_string() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_alias_generation(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice] -FROM [Order Details] AS [o#OrderDetails] -INNER JOIN ( - SELECT [o0].[OrderID] - FROM [Orders] AS [o0] -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID] -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_Where_OrderBy() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE ([o].[CustomerID] = 'ALFKI') OR ([c].[CustomerID] = 'ANATR') -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_Subquery_Single() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [od].[OrderID] -FROM [Order Details] AS [od] -ORDER BY [od].[ProductID], [od].[OrderID]", - // - @"@_outer_OrderID='10285' - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_OrderID = [o].[OrderID] -ORDER BY [o].[OrderID]", - // - @"@_outer_OrderID='10294' - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_OrderID = [o].[OrderID] -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_expression_int_to_string() : - AssertSql( - @"SELECT Str([o].[OrderID]) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_closure() : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_project_filter2() : - AssertSql( - @"SELECT [c].[City] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_conditional_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[Region] IS NULL, - 'ZZ', - [c].[Region] -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_collection_complex_predicate_not_matching_ins2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI') AND [c].[CustomerID] NOT IN ('ALFKI', 'ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Contains_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr([c].[ContactName], [c].[ContactName]) > 0) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_member_distinct_where() : - AssertSql( - @"SELECT [t].[CustomerID] -FROM ( - SELECT DISTINCT [c].[CustomerID] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Contains_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr([c].[ContactName], [c].[ContactName]) > 0) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_reversed() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE 'London' = [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_concat_with_navigation2() : - AssertSql( - @"SELECT ([o#Customer].[City] + ' ') + [o#Customer].[City] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_Where_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_EndsWith_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE RIGHT([c].[ContactName], LEN('b')) = 'b'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_alias_generation(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate] -FROM [Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_static_field_access_closure_via_query_cache() : - AssertSql( - @"@__StaticFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0", - // - @"@__StaticFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A')) AND (([c].[City] <> 'London') OR [c].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_join_clause_with_order_by_and_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - INNER JOIN [Orders] AS [o0] ON [c0].[CustomerID] = [o0].[CustomerID] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_join_clause_with_order_by_and_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - INNER JOIN [Orders] AS [o0] ON [c0].[CustomerID] = [o0].[CustomerID] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A'))"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_kiwi() : - AssertSql( - @"SELECT [k].[Species], [k].[CountryId], [k].[Discriminator], [k].[Name], [k].[EagleId], [k].[IsFlightless], [k].[FoundOn] -FROM [Animal] AS [k] -WHERE ([k].[Discriminator] = 'Kiwi') AND ([k].[CountryId] = 1)"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_bird_first() : - AssertSql( - @"SELECT TOP 1 [b].[Species], [b].[CountryId], [b].[Discriminator], [b].[Name], [b].[EagleId], [b].[IsFlightless], [b].[Group], [b].[FoundOn] -FROM [Animal] AS [b] -WHERE [b].[Discriminator] IN ('Kiwi', 'Eagle') AND ([b].[CountryId] = 1) -ORDER BY [b].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_is_kiwi_in_projection() : - AssertSql( - @"SELECT IIf( - [a].[Discriminator] = 'Kiwi', - True, - False -) -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[CountryId] = 1)"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_bird_with_projection() : - AssertSql( - @"SELECT [b].[EagleId] -FROM [Animal] AS [b] -WHERE [b].[Discriminator] IN ('Kiwi', 'Eagle') AND ([b].[CountryId] = 1)"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_is_kiwi() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE ([a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[CountryId] = 1)) AND ([a].[Discriminator] = 'Kiwi')"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_bird_predicate() : - AssertSql( - @"SELECT [b].[Species], [b].[CountryId], [b].[Discriminator], [b].[Name], [b].[EagleId], [b].[IsFlightless], [b].[Group], [b].[FoundOn] -FROM [Animal] AS [b] -WHERE ([b].[Discriminator] IN ('Kiwi', 'Eagle') AND ([b].[CountryId] = 1)) AND ([b].[CountryId] = 1) -ORDER BY [b].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_animal() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[CountryId] = 1) -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_bird() : - AssertSql( - @"SELECT [b].[Species], [b].[CountryId], [b].[Discriminator], [b].[Name], [b].[EagleId], [b].[IsFlightless], [b].[Group], [b].[FoundOn] -FROM [Animal] AS [b] -WHERE [b].[Discriminator] IN ('Kiwi', 'Eagle') AND ([b].[CountryId] = 1) -ORDER BY [b].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_is_kiwi_with_other_predicate() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE ([a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[CountryId] = 1)) AND (([a].[Discriminator] = 'Kiwi') AND ([a].[CountryId] = 1))"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_list_inline() : line() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\QueryJetTest.cs:riga 6234 - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.IsNullOrEmpty_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[Region] IS NULL OR ([c].[Region] = '')"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_dependent_already_tracked(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_dependent_already_tracked(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_join_clause_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID] - FROM [Customers] AS [c0] - INNER JOIN [Orders] AS [o0] ON [c0].[CustomerID] = [o0].[CustomerID] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_join_clause_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID] - FROM [Customers] AS [c0] - INNER JOIN [Orders] AS [o0] ON [c0].[CustomerID] = [o0].[CustomerID] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_closure_constant() : - AssertSql( - @"@__predicate_0='True' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE @__predicate_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Take_simple() : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Compiled_query() : - AssertSql( - @"@__customerID='BERGS' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__customerID", - // - @"@__customerID='BLAUS' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__customerID"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_then_include_collection(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID], [c#Orders].[OrderID]", - // - @"SELECT [c#Orders#OrderDetails].[OrderID], [c#Orders#OrderDetails].[ProductID], [c#Orders#OrderDetails].[Discount], [c#Orders#OrderDetails].[Quantity], [c#Orders#OrderDetails].[UnitPrice] -FROM [Order Details] AS [c#Orders#OrderDetails] -INNER JOIN ( - SELECT DISTINCT [c#Orders0].[OrderID], [t0].[CustomerID] - FROM [Orders] AS [c#Orders0] - INNER JOIN ( - SELECT [c1].[CustomerID] - FROM [Customers] AS [c1] - ) AS [t0] ON [c#Orders0].[CustomerID] = [t0].[CustomerID] -) AS [t1] ON [c#Orders#OrderDetails].[OrderID] = [t1].[OrderID] -ORDER BY [t1].[CustomerID], [t1].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key_with_first_or_default(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CompanyName] DESC, [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID], [c0].[CompanyName] - FROM [Customers] AS [c0] - ORDER BY [c0].[CompanyName] DESC, [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CompanyName] DESC, [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key_with_first_or_default(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CompanyName] DESC, [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID], [c0].[CompanyName] - FROM [Customers] AS [c0] - ORDER BY [c0].[CompanyName] DESC, [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CompanyName] DESC, [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_with_filter_reordered(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_kiwi_where_north_on_derived_property() : - AssertSql( - @"SELECT [x].[Species], [x].[CountryId], [x].[Discriminator], [x].[Name], [x].[EagleId], [x].[IsFlightless], [x].[FoundOn] -FROM [Animal] AS [x] -WHERE ([x].[Discriminator] = 'Kiwi') AND ([x].[FoundOn] = 0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_negated_twice() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_animal() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_query_when_shared_column() : - AssertSql( - @"SELECT TOP 2 [d].[Id], [d].[Discriminator], [d].[CaffeineGrams], [d].[CokeCO2], [d].[SugarGrams] -FROM [Drink] AS [d] -WHERE [d].[Discriminator] = 'Coke'", - // - @"SELECT TOP 2 [d].[Id], [d].[Discriminator], [d].[LiltCO2], [d].[SugarGrams] -FROM [Drink] AS [d] -WHERE [d].[Discriminator] = 'Lilt'", - // - @"SELECT TOP 2 [d].[Id], [d].[Discriminator], [d].[CaffeineGrams], [d].[HasMilk] -FROM [Drink] AS [d] -WHERE [d].[Discriminator] = 'Tea'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_kiwi_where_south_on_derived_property() : - AssertSql( - @"SELECT [x].[Species], [x].[CountryId], [x].[Discriminator], [x].[Name], [x].[EagleId], [x].[IsFlightless], [x].[FoundOn] -FROM [Animal] AS [x] -WHERE ([x].[Discriminator] = 'Kiwi') AND ([x].[FoundOn] = 1)"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_is_kiwi_with_other_predicate() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND (([a].[Discriminator] = 'Kiwi') AND ([a].[CountryId] = 1))"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Include_query_opt_out() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_bird_predicate() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[CountryId] = 1) -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_is_kiwi_in_projection() : - AssertSql( - @"SELECT IIf( - [a].[Discriminator] = 'Kiwi', - True, - False -) -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle')"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Where_subquery_on_navigation_client_eval() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [o4].[OrderID] -FROM [Orders] AS [o4]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o2].[OrderID] -FROM [Orders] AS [o2] -WHERE @_outer_CustomerID = [o2].[CustomerID]", - // - @"SELECT [o4].[OrderID] -FROM [Orders] AS [o4]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o2].[OrderID] -FROM [Orders] AS [o2] -WHERE @_outer_CustomerID = [o2].[CustomerID]", - // - @"SELECT [o4].[OrderID] -FROM [Orders] AS [o4]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o2].[OrderID] -FROM [Orders] AS [o2] -WHERE @_outer_CustomerID = [o2].[CustomerID]", - // - @"SELECT [o4].[OrderID] -FROM [Orders] AS [o4]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [o2].[OrderID] -FROM [Orders] AS [o2] -WHERE @_outer_CustomerID = [o2].[CustomerID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_is_kiwi() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[Discriminator] = 'Kiwi')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_bird_first() : - AssertSql( - @"SELECT TOP 1 [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Discriminator_used_when_projection_over_derived_type2() : - AssertSql( - @"SELECT [b].[IsFlightless], [b].[Discriminator] -FROM [Animal] AS [b] -WHERE [b].[Discriminator] IN ('Kiwi', 'Eagle')"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_select_nav_prop_first_or_default_then_nav_prop() : - AssertSql( - @"SELECT [e].[CustomerID] -FROM [Customers] AS [e] -WHERE [e].[CustomerID] LIKE 'A' + '%' AND (LEFT([e].[CustomerID], LEN('A')) = 'A') -ORDER BY [e].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM [Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID] -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM [Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID] -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM [Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID] -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM [Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID] -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Navigation_fk_based_inside_contains() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] IN ('ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_where_nav_prop_all() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([c].[CustomerID] = [o].[CustomerID]) AND (([o].[CustomerID] <> 'ALFKI') OR [o].[CustomerID] IS NULL))"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.GroupBy_on_nav_prop() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[City] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -ORDER BY [o#Customer].[City]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_correlated_filtered_collection_works_with_caching() : - AssertSql( - @"SELECT [t].[GearNickName] -FROM [CogTag] AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_shadow_subquery_FirstOrDefault() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[Title] = ( - SELECT TOP 1 [e2].[Title] - FROM [Employees] AS [e2] - ORDER BY [e2].[Title] -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_Where_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_false() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.GroupJoin_with_nav_projected_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM [Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID]", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM [Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London'"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_ternary_operation_with_has_value_not_null() : - AssertSql( - @"SELECT [w].[Id], IIf( - [w].[AmmunitionType] IS NOT NULL AND ([w].[AmmunitionType] = 1), - 'Yes', - 'No' -) AS [IsCartidge] -FROM [Weapon] AS [w] -WHERE [w].[AmmunitionType] IS NOT NULL AND ([w].[AmmunitionType] = 1)"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_and_collection(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice] -FROM [Order Details] AS [o#OrderDetails] -INNER JOIN ( - SELECT DISTINCT [o0].[OrderID] - FROM [Orders] AS [o0] - LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID] -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID] -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_inverted_boolean() : - AssertSql( - @"SELECT [w].[Id], IIf( - [w].[IsAutomatic] = False, - True, - False -) AS [Manual] -FROM [Weapon] AS [w] -WHERE [w].[IsAutomatic] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_member_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] LIKE 'A' + '%' AND (LEFT([t].[Property], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Include_on_GroupJoin_SelectMany_DefaultIfEmpty_with_complex_projection_result() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank], [t].[Nickname], [t].[SquadId], [t].[AssignedCityName], [t].[CityOrBirthName], [t].[Discriminator], [t].[FullName], [t].[HasSoulPatch], [t].[LeaderNickname], [t].[LeaderSquadId], [t].[Rank] -FROM [Gear] AS [g] -LEFT JOIN ( - SELECT [g2].* - FROM [Gear] AS [g2] - WHERE [g2].[Discriminator] IN ('Officer', 'Gear') -) AS [t] ON [g].[LeaderNickname] = [t].[Nickname] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') -ORDER BY [g].[FullName], [t].[FullName]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Sum_with_optional_navigation_is_translated_to_sql() : - AssertSql( - @"SELECT SUM([g].[SquadId]) -FROM [Gear] AS [g] -LEFT JOIN [CogTag] AS [g#Tag] ON ([g].[Nickname] = [g#Tag].[GearNickName]) AND ([g].[SquadId] = [g#Tag].[GearSquadId]) -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g#Tag].[Note] <> 'Foo') OR [g#Tag].[Note] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Navigation() : - AssertSql( - @"SELECT [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_and_collection(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice] -FROM [Order Details] AS [o#OrderDetails] -INNER JOIN ( - SELECT DISTINCT [o0].[OrderID] - FROM [Orders] AS [o0] - LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID] -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID] -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_when_groupby(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Join_with_nav_in_orderby_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM [Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID]", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM [Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_last_no_orderby(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] DESC", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] DESC -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE [o#Customer].[City] = 'Seattle'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_EndsWith_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (RIGHT([c].[ContactName], LEN([c].[ContactName])) = [c].[ContactName]) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_de_morgan_and_optimizated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) OR ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_comparison_with_null() : - AssertSql( - @"@__ammunitionType_0='Cartridge' -@__ammunitionType_1='Cartridge' - -SELECT [w].[Id], IIf( - [w].[AmmunitionType] = @__ammunitionType_1, - True, - False -) AS [Cartidge] -FROM [Weapon] AS [w] -WHERE [w].[AmmunitionType] = @__ammunitionType_0", - // - @"SELECT [w].[Id], IIf( - [w].[AmmunitionType] IS NULL, - True, - False -) AS [Cartidge] -FROM [Weapon] AS [w] -WHERE [w].[AmmunitionType] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Local_array() : - AssertSql( - @"@__get_Item_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Entity_equality_empty() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND ([g].[Nickname] IS NULL AND ([g].[SquadId] = 0))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_Customers_Orders_Skip_Take() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT TOP @__p_1+@__p_0 [c].[ContactName], [o].[OrderID] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -ORDER BY [o].[OrderID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_principal_already_tracked_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_collection_FirstOrDefault_project_entity() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Singleton_Navigation_With_Member_Access() : - AssertSql( - @"SELECT [o#Customer].[City] AS [B] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE ([o#Customer].[City] = 'Seattle') AND (([o#Customer].[Phone] <> '555 555 5555') OR [o#Customer].[Phone] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_EndsWith_MethodCall() : - AssertSql( - @"@__LocalMethod2_0='m' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (RIGHT([c].[ContactName], LEN(@__LocalMethod2_0)) = @__LocalMethod2_0) OR (@__LocalMethod2_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.GroupJoin_with_nav_in_predicate_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM [Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID]", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM [Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Project_single_entity_value_subquery_works() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A') -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_closure_via_query_cache() : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0", - // - @"@__city_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.GroupJoin_with_nav_in_orderby_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM [Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID]", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM [Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Take_Select_Navigation() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_expression_invoke() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_member_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[CustomerID] LIKE 'A' + '%' AND (LEFT([t].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_Customers_Orders_Projection_With_String_Concat_Skip_Take() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT TOP @__p_1+@__p_0 ([c].[ContactName] + ' ') + [c].[ContactTitle] AS [Contact], [o].[OrderID] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -ORDER BY [o].[OrderID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_compared_to_binary_expression() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = IIf( - [p].[ProductID] > 50, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Join_with_nav_in_predicate_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM [Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID]", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM [Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Null_conditional_simple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Navigation_inside_contains() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE [o#Customer].[City] IN ('Novigrad', 'Seattle')"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_collection_FirstOrDefault_project_anonymous_type() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[CustomerID], [o].[OrderID] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[CustomerID], [o].[OrderID] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Multiple_Access() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE ([o#Customer].[City] = 'Seattle') AND (([o#Customer].[Phone] <> '555 555 5555') OR [o#Customer].[Phone] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_subquery_and_local_array_closure() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [c1] - WHERE [c1].[City] IN ('London', 'Buenos Aires') AND ([c1].[CustomerID] = [c].[CustomerID]))", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [c1] - WHERE [c1].[City] IN ('London') AND ([c1].[CustomerID] = [c].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_with_filter(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_with_filter(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_with_skip(Boolean useString) : - AssertSql( - @"@__p_0='80' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName], [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_with_skip(Boolean useString) : - AssertSql( - @"@__p_0='80' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName], [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_on_mismatched_types_nullable_int_long() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_select_nav_prop_all_client() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='BERGS' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='BLAUS' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='BLONP' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='BOLID' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Null_Deep() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -LEFT JOIN [Employees] AS [e#Manager] ON [e].[ReportsTo] = [e#Manager].[EmployeeID] -WHERE [e#Manager].[ReportsTo] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Single_Predicate() : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Take_simple_parameterized() : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multi_level_reference_and_collection_predicate(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE [o].[OrderID] = 10248 -ORDER BY [o#Customer].[CustomerID]", - // - @"SELECT [o#Customer#Orders].[OrderID], [o#Customer#Orders].[CustomerID], [o#Customer#Orders].[EmployeeID], [o#Customer#Orders].[OrderDate] -FROM [Orders] AS [o#Customer#Orders] -INNER JOIN ( - SELECT DISTINCT [t].* - FROM ( - SELECT TOP 1 [o#Customer0].[CustomerID] - FROM [Orders] AS [o0] - LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID] - WHERE [o0].[OrderID] = 10248 - ORDER BY [o#Customer0].[CustomerID] - ) AS [t] -) AS [t0] ON [o#Customer#Orders].[CustomerID] = [t0].[CustomerID] -ORDER BY [t0].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_collection_complex_predicate_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI', 'ALFKI', 'ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_with_multiple_conditions_still_uses_exists() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[City] = 'London') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[EmployeeID] = 1) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_expression_other_to_string() : - AssertSql( - @"SELECT Str([o].[OrderDate]) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_last(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CompanyName] DESC, [c].[CustomerID] DESC", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID], [c0].[CompanyName] - FROM [Customers] AS [c0] - ORDER BY [c0].[CompanyName] DESC, [c0].[CustomerID] DESC -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CompanyName] DESC, [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_last(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CompanyName] DESC, [c].[CustomerID] DESC", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID], [c0].[CompanyName] - FROM [Customers] AS [c0] - ORDER BY [c0].[CompanyName] DESC, [c0].[CustomerID] DESC -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CompanyName] DESC, [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_where_skip_take_projection(Boolean useString) : - AssertSql( - @"@__p_0='1' -@__p_1='2' - -SELECT TOP @__p_1+@__p_0 [od#Order].[CustomerID] -FROM [Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID] -WHERE [od].[Quantity] = 10 -ORDER BY [od].[OrderID], [od].[ProductID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_where_skip_take_projection(Boolean useString) : - AssertSql( - @"@__p_0='1' -@__p_1='2' - -SELECT TOP @__p_1+@__p_0 [od#Order].[CustomerID] -FROM [Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID] -WHERE [od].[Quantity] = 10 -ORDER BY [od].[OrderID], [od].[ProductID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_sin() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (SIN([od].[Discount]) > 0E0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_skip_take() : - AssertSql( - @"@__p_0='5' -@__p_1='8' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactTitle], [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_negated_boolean_expression_compared_to_another_negated_boolean_expression() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE IIf( - [p].[ProductID] > 50, - True, - False -) = IIf( - [p].[ProductID] > 20, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_StartsWith_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[ContactName] LIKE [c].[ContactName] + '%' AND (LEFT([c].[ContactName], LEN([c].[ContactName])) = [c].[ContactName])) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OfType_Select() : - AssertSql( - @"SELECT TOP 1 [o#Customer].[City] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_complex_distinct_where() : - AssertSql( - @"SELECT [t].[Property] -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] = 'ALFKIBerlin'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_true() : - AssertSql( - @"@__flag_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ((@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_0 <> True) AND ([p].[UnitsInStock] < 20))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_collection_complex_predicate_not_matching_ins1() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ALFKI', 'ABCDE') OR [c].[CustomerID] NOT IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_client_side_negated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_multi_level() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.IsNullOrEmpty_in_projection() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], IIf( - [c].[Region] IS NULL OR ([c].[Region] = ''), - True, - False -) AS [Value] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_shadow_projection() : - AssertSql( - @"SELECT [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[Title] = 'Sales Representative'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_closure_via_query_cache_nullable_type() : - AssertSql( - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_nested_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0", - // - @"@__city_Nested_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_DefaultIfEmpty_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [o].[OrderID] IS NOT NULL AND ([o].[CustomerID] = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_constant_is_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A'))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Last() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_method_call_nullable_type_reverse_closure_via_query_cache() : - AssertSql( - @"@__city_NullableInt_0='1' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0", - // - @"@__city_NullableInt_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_subquery_closure_via_query_cache() : - AssertSql( - @"@__customerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] = @__customerID_0) AND ([o].[CustomerID] = [c].[CustomerID]))", - // - @"@__customerID_0='ANATR' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] = @__customerID_0) AND ([o].[CustomerID] = [c].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_exp() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (EXP([od].[Discount]) > 1E0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Skip_Take() : - AssertSql( - @"@__p_0='5' -@__p_1='10' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_de_morgan_or_optimizated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) AND ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE [e1].[FirstName] = ( - SELECT TOP 1 [e].[FirstName] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_scalar_primitive_after_take() : - AssertSql( - @"@__p_0='9' - -SELECT TOP @__p_0 [e].[EmployeeID] -FROM [Employees] AS [e]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.FirstOrDefault_inside_subquery_gets_server_evaluated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND (( - SELECT TOP 1 [o].[CustomerID] - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] = 'ALFKI') AND ([c].[CustomerID] = [o].[CustomerID]) -) = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.IsNullOrWhiteSpace_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[Region] IS NULL OR (LTRIM(RTRIM([c].[Region])) = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_array_closure() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI')", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Query_expression_with_to_string_and_contains() : - AssertSql( - @"SELECT [o].[CustomerID] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL AND (Instr(Str([o].[EmployeeID]), '10') > 0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Take_simple_projection() : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[City] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_static_property_access_closure_via_query_cache() : - AssertSql( - @"@__StaticPropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0", - // - @"@__StaticPropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_subquery_on_bool() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE 'Chai' IN ( - SELECT [p2].[ProductName] - FROM [Products] AS [p2] -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_client_deep_inside_predicate_and_server_top_level() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_collection_false() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] NOT IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_parameter_compared_to_binary_expression() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE IIf( - [p].[ProductID] > 50, - True, - False -) <> @__prm_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Last_when_no_order_by() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_anonymous_conditional_expression() : - AssertSql( - @"SELECT [p].[ProductID], IIf( - [p].[UnitsInStock] > 0, - True, - False -) AS [IsAvailable] -FROM [Products] AS [p]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_not_bool_member_compared_to_binary_expression() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] <> IIf( - [p].[ProductID] > 50, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_orderby_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [c].[CustomerID] <> 'ALFKI' -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_entity_equality_no_elements_FirstOrDefault() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE ( - SELECT TOP 1 [e2].[EmployeeID] - FROM [Employees] AS [e2] - WHERE [e2].[EmployeeID] = 42 -) = 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_cos() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (COS([od].[Discount]) > 0E0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A'))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Count_with_predicate() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupBy_anonymous_with_where() : - AssertSql( - @"SELECT [c].[City], [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[Country] IN ('Argentina', 'Austria', 'Brazil', 'France', 'Germany', 'USA') -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_list_inline_closure_mix() : line_closure_mix() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\QueryJetTest.cs:riga 6244 - AssertSql( - @"@__id_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', @__id_0)", - // - @"@__id_0='ANATR' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', @__id_0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_closure_via_query_cache_nullable_type_reverse() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0", - // - @"@__city_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_null_is_not_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_Where_Count_with_predicate() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -WHERE ([o].[OrderID] > 10) AND (([o].[CustomerID] <> 'ALFKI') OR [o].[CustomerID] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.IsNullOrEmpty_negated_in_projection() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], IIf( - [c].[Region] IS NOT NULL AND ([c].[Region] <> ''), - True, - False -) AS [Value] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OfType_Select_OfType_Select() : - AssertSql( - @"SELECT TOP 1 [o#Customer].[City] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_Where_Subquery_Deep_Single() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[OrderID] = 10344", - // - @"@_outer_OrderID='10344' - -SELECT TOP 2 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE @_outer_OrderID = [o0].[OrderID]", - // - @"@_outer_CustomerID1='WHITC' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID1 = [c2].[CustomerID]", - // - @"@_outer_OrderID='10344' - -SELECT TOP 2 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE @_outer_OrderID = [o0].[OrderID]", - // - @"@_outer_CustomerID1='WHITC' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID1 = [c2].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_nested_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0", - // - @"@__city_Nested_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_and_parameter_compared_to_binary_expression_nested() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = IIf( - IIf( - [p].[ProductID] > 50, - True, - False - ) <> @__prm_0, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_Last() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Contains_MethodCall() : - AssertSql( - @"@__LocalMethod1_0='M' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr([c].[ContactName], @__LocalMethod1_0) > 0) OR (@__LocalMethod1_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_compare_with_parameter() : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_complex_distinct_where() : - AssertSql( - @"SELECT [t].[A] -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [A] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[A] = 'ALFKIBerlin'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_equals_constant() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0", - // - @"@__city_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_on_matched_nullable_int_types() : - AssertSql( - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE @__nullableIntPrm_0 = [e].[ReportsTo]", - // - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__nullableIntPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_OrderBy_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_with_false_as_result_false() : - AssertSql( - @"@__flag_0='False' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Compare_multi_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= 'ALFKI' AND [c].[CustomerID] < 'CACTU'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactTitle] = 'Owner' AND [c].[Country] <> 'USA'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_complex_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] LIKE 'A' + '%' AND (LEFT([t].[Property], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_with_false_as_result_true() : - AssertSql( - @"@__flag_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_new_instance_field_access_closure_via_query_cache() : - AssertSql( - @"@__InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0", - // - @"@__InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_compare_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] IS NULL AND ([c].[Country] = 'UK')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Entity_equality_local() : - AssertSql( - @"@__local_0_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__local_0_CustomerID"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Queryable_simple_anonymous_projection_subquery() : - AssertSql( - @"@__p_0='91' - -SELECT TOP @__p_0 [c].[City] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_false() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_comparison_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[Region] = 'ASK', - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_entity_equality_multiple_elements_FirstOrDefault() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE ( - SELECT TOP 1 [e2].[EmployeeID] - FROM [Employees] AS [e2] - WHERE ([e2].[EmployeeID] <> [e1].[ReportsTo]) OR [e1].[ReportsTo] IS NULL -) = 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_using_object_overload_on_mismatched_types() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_collection_complex_predicate_and() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ALFKI', 'ABCDE') AND [c].[CustomerID] IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_shadow() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_on_mismatched_types_nullable_long_nullable_int() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_StartsWith_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE 'M' + '%' AND (LEFT([c].[ContactName], LEN('M')) = 'M')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_entity_equality_one_element_FirstOrDefault() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE ( - SELECT TOP 1 [e2].[EmployeeID] - FROM [Employees] AS [e2] - WHERE [e2].[EmployeeID] = [e1].[ReportsTo] -) = 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_false_shadow() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_tan() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (TAN([od].[Discount]) > 0E0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_array_inline() : line() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\QueryJetTest.cs:riga 6214 - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_conditional_operator_where_condition_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - False = True, - 'ZZ', - [c].[City] -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Last_Predicate() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Entity_equality_local_inline() : line() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\QueryJetTest.cs:riga 175 - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ANATR'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Environment_newline_is_funcletized() : line_is_funcletized() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\QueryJetTest.cs:riga 6640 - AssertSql( - @"@__NewLine_0=' -' (Nullable = false) (Size = 2) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr([c].[CustomerID], @__NewLine_0) > 0) OR (@__NewLine_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Compare_simple_one() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.LastOrDefault_Predicate() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_complex_negated_expression_optimized() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[Discontinued] = False) AND ([p].[ProductID] < 60)) AND ([p].[ProductID] > 30)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_list_closure() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_alias_generation(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice] -FROM [Order Details] AS [o#OrderDetails] -INNER JOIN ( - SELECT [o0].[OrderID] - FROM [Orders] AS [o0] -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID] -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_alias_generation(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice] -FROM [Order Details] AS [o#OrderDetails] -INNER JOIN ( - SELECT [o0].[OrderID] - FROM [Orders] AS [o0] -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID] -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Discriminator_used_when_projection_over_of_type() : - AssertSql( - @"SELECT [k].[FoundOn] -FROM [Animal] AS [k] -WHERE [k].[Discriminator] = 'Kiwi'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_query_all_types_when_shared_column() : - AssertSql( - @"SELECT [d].[Id], [d].[Discriminator], [d].[CaffeineGrams], [d].[CokeCO2], [d].[SugarGrams], [d].[LiltCO2], [d].[HasMilk] -FROM [Drink] AS [d] -WHERE [d].[Discriminator] IN ('Tea', 'Lilt', 'Coke', 'Drink')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_kiwi_where_north_on_derived_property() : - AssertSql( - @"SELECT [x].[Species], [x].[CountryId], [x].[Discriminator], [x].[Name], [x].[EagleId], [x].[IsFlightless], [x].[FoundOn] -FROM [Animal] AS [x] -WHERE ([x].[Discriminator] = 'Kiwi') AND ([x].[FoundOn] = 0)"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_query_all_birds() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_include_prey() : - AssertSql( - @"SELECT TOP 2 [e].[Species], [e].[CountryId], [e].[Discriminator], [e].[Name], [e].[EagleId], [e].[IsFlightless], [e].[Group] -FROM [Animal] AS [e] -WHERE [e].[Discriminator] = 'Eagle' -ORDER BY [e].[Species]", - // - @"SELECT [e#Prey].[Species], [e#Prey].[CountryId], [e#Prey].[Discriminator], [e#Prey].[Name], [e#Prey].[EagleId], [e#Prey].[IsFlightless], [e#Prey].[Group], [e#Prey].[FoundOn] -FROM [Animal] AS [e#Prey] -INNER JOIN ( - SELECT TOP 1 [e0].[Species] - FROM [Animal] AS [e0] - WHERE [e0].[Discriminator] = 'Eagle' - ORDER BY [e0].[Species] -) AS [t] ON [e#Prey].[EagleId] = [t].[Species] -WHERE [e#Prey].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [t].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Discriminator_used_when_projection_over_derived_type() : - AssertSql( - @"SELECT [k].[FoundOn] -FROM [Animal] AS [k] -WHERE [k].[Discriminator] = 'Kiwi'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_animal() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_bird() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_query_when_shared_column() : - AssertSql( - @"SELECT TOP 2 [d].[Id], [d].[Discriminator], [d].[CaffeineGrams], [d].[CokeCO2], [d].[SugarGrams] -FROM [Drink] AS [d] -WHERE [d].[Discriminator] = 'Coke'", - // - @"SELECT TOP 2 [d].[Id], [d].[Discriminator], [d].[LiltCO2], [d].[SugarGrams] -FROM [Drink] AS [d] -WHERE [d].[Discriminator] = 'Lilt'", - // - @"SELECT TOP 2 [d].[Id], [d].[Discriminator], [d].[CaffeineGrams], [d].[HasMilk] -FROM [Drink] AS [d] -WHERE [d].[Discriminator] = 'Tea'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_kiwi_where_south_on_derived_property() : - AssertSql( - @"SELECT [x].[Species], [x].[CountryId], [x].[Discriminator], [x].[Name], [x].[EagleId], [x].[IsFlightless], [x].[FoundOn] -FROM [Animal] AS [x] -WHERE ([x].[Discriminator] = 'Kiwi') AND ([x].[FoundOn] = 1)"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_is_kiwi_with_other_predicate() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND (([a].[Discriminator] = 'Kiwi') AND ([a].[CountryId] = 1))"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_bird_with_projection() : - AssertSql( - @"SELECT [b].[EagleId] -FROM [Animal] AS [b] -WHERE [b].[Discriminator] IN ('Kiwi', 'Eagle')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_query_just_roses() : - AssertSql( - @"SELECT TOP 2 [p].[Species], [p].[CountryId], [p].[Genus], [p].[Name], [p].[HasThorns] -FROM [Plant] AS [p] -WHERE [p].[Genus] = 0"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_alias_generation(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate] -FROM [Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_query_just_kiwis() : - AssertSql( - @"SELECT TOP 2 [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] = 'Kiwi'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Compare_simple_zero() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_bird_first() : - AssertSql( - @"SELECT TOP 1 [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Discriminator_used_when_projection_over_derived_type2() : - AssertSql( - @"SELECT [b].[IsFlightless], [b].[Discriminator] -FROM [Animal] AS [b] -WHERE [b].[Discriminator] IN ('Kiwi', 'Eagle')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_query_all_animals() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_Where_Count_with_predicate_client_eval_mixed() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] <> 'ALFKI') OR [o].[CustomerID] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_method_call_closure_via_query_cache() : - AssertSql( - @"@__GetCity_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0", - // - @"@__GetCity_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_join_clause_with_order_by_and_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - INNER JOIN [Orders] AS [o0] ON [c0].[CustomerID] = [o0].[CustomerID] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Where_subquery_on_navigation_client_eval() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [o4].[OrderID] -FROM [Orders] AS [o4]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o2].[OrderID] -FROM [Orders] AS [o2] -WHERE @_outer_CustomerID = [o2].[CustomerID]", - // - @"SELECT [o4].[OrderID] -FROM [Orders] AS [o4]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o2].[OrderID] -FROM [Orders] AS [o2] -WHERE @_outer_CustomerID = [o2].[CustomerID]", - // - @"SELECT [o4].[OrderID] -FROM [Orders] AS [o4]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o2].[OrderID] -FROM [Orders] AS [o2] -WHERE @_outer_CustomerID = [o2].[CustomerID]", - // - @"SELECT [o4].[OrderID] -FROM [Orders] AS [o4]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [o2].[OrderID] -FROM [Orders] AS [o2] -WHERE @_outer_CustomerID = [o2].[CustomerID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Navigations() : - AssertSql( - @"SELECT [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_select_nav_prop_first_or_default_then_nav_prop() : - AssertSql( - @"SELECT [e].[CustomerID] -FROM [Customers] AS [e] -WHERE [e].[CustomerID] LIKE 'A' + '%' AND (LEFT([e].[CustomerID], LEN('A')) = 'A') -ORDER BY [e].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM [Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID] -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM [Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID] -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM [Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID] -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM [Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID] -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Navigation_fk_based_inside_contains() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] IN ('ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_client_and_server_top_level() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> 'AROUT'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_shadow() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[Title] = 'Sales Representative'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_project_filter() : - AssertSql( - @"SELECT [c].[CompanyName] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London'"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_inverted_boolean() : - AssertSql( - @"SELECT [w].[Id], IIf( - [w].[IsAutomatic] = False, - True, - False -) AS [Manual] -FROM [Weapon] AS [w] -WHERE [w].[IsAutomatic] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_select_many() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_StartsWith_MethodCall() : - AssertSql( - @"@__LocalMethod1_0='M' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[ContactName] LIKE @__LocalMethod1_0 + '%' AND (LEFT([c].[ContactName], LEN(@__LocalMethod1_0)) = @__LocalMethod1_0)) OR (@__LocalMethod1_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Sum_with_optional_navigation_is_translated_to_sql() : - AssertSql( - @"SELECT SUM([g].[SquadId]) -FROM [Gear] AS [g] -LEFT JOIN [CogTag] AS [g#Tag] ON ([g].[Nickname] = [g#Tag].[GearNickName]) AND ([g].[SquadId] = [g#Tag].[GearSquadId]) -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g#Tag].[Note] <> 'Foo') OR [g#Tag].[Note] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_method_string() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_kiwi() : - AssertSql( - @"SELECT [k].[Species], [k].[CountryId], [k].[Discriminator], [k].[Name], [k].[EagleId], [k].[IsFlightless], [k].[FoundOn] -FROM [Animal] AS [k] -WHERE ([k].[Discriminator] = 'Kiwi') AND ([k].[CountryId] = 1)"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_bird_first() : - AssertSql( - @"SELECT TOP 1 [b].[Species], [b].[CountryId], [b].[Discriminator], [b].[Name], [b].[EagleId], [b].[IsFlightless], [b].[Group], [b].[FoundOn] -FROM [Animal] AS [b] -WHERE [b].[Discriminator] IN ('Kiwi', 'Eagle') AND ([b].[CountryId] = 1) -ORDER BY [b].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_is_kiwi_in_projection() : - AssertSql( - @"SELECT IIf( - [a].[Discriminator] = 'Kiwi', - True, - False -) -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[CountryId] = 1)"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_bird_with_projection() : - AssertSql( - @"SELECT [b].[EagleId] -FROM [Animal] AS [b] -WHERE [b].[Discriminator] IN ('Kiwi', 'Eagle') AND ([b].[CountryId] = 1)"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_is_kiwi() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE ([a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[CountryId] = 1)) AND ([a].[Discriminator] = 'Kiwi')"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_bird_predicate() : - AssertSql( - @"SELECT [b].[Species], [b].[CountryId], [b].[Discriminator], [b].[Name], [b].[EagleId], [b].[IsFlightless], [b].[Group], [b].[FoundOn] -FROM [Animal] AS [b] -WHERE ([b].[Discriminator] IN ('Kiwi', 'Eagle') AND ([b].[CountryId] = 1)) AND ([b].[CountryId] = 1) -ORDER BY [b].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_animal() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[CountryId] = 1) -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Entity_equality_empty() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND ([g].[Nickname] IS NULL AND ([g].[SquadId] = 0))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_expression_int_to_string() : - AssertSql( - @"SELECT Str([o].[OrderID]) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_dependent_already_tracked(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_join_clause_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID] - FROM [Customers] AS [c0] - INNER JOIN [Orders] AS [o0] ON [c0].[CustomerID] = [o0].[CustomerID] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_join_clause_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID] - FROM [Customers] AS [c0] - INNER JOIN [Orders] AS [o0] ON [c0].[CustomerID] = [o0].[CustomerID] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_project_filter2() : - AssertSql( - @"SELECT [c].[City] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_conditional_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[Region] IS NULL, - 'ZZ', - [c].[Region] -)"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_then_include_collection(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID], [c#Orders].[OrderID]", - // - @"SELECT [c#Orders#OrderDetails].[OrderID], [c#Orders#OrderDetails].[ProductID], [c#Orders#OrderDetails].[Discount], [c#Orders#OrderDetails].[Quantity], [c#Orders#OrderDetails].[UnitPrice] -FROM [Order Details] AS [c#Orders#OrderDetails] -INNER JOIN ( - SELECT DISTINCT [c#Orders0].[OrderID], [t0].[CustomerID] - FROM [Orders] AS [c#Orders0] - INNER JOIN ( - SELECT [c1].[CustomerID] - FROM [Customers] AS [c1] - ) AS [t0] ON [c#Orders0].[CustomerID] = [t0].[CustomerID] -) AS [t1] ON [c#Orders#OrderDetails].[OrderID] = [t1].[OrderID] -ORDER BY [t1].[CustomerID], [t1].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Compiled_query() : - AssertSql( - @"@__customerID='BERGS' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__customerID", - // - @"@__customerID='BLAUS' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__customerID"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_then_include_collection(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID], [c#Orders].[OrderID]", - // - @"SELECT [c#Orders#OrderDetails].[OrderID], [c#Orders#OrderDetails].[ProductID], [c#Orders#OrderDetails].[Discount], [c#Orders#OrderDetails].[Quantity], [c#Orders#OrderDetails].[UnitPrice] -FROM [Order Details] AS [c#Orders#OrderDetails] -INNER JOIN ( - SELECT DISTINCT [c#Orders0].[OrderID], [t0].[CustomerID] - FROM [Orders] AS [c#Orders0] - INNER JOIN ( - SELECT [c1].[CustomerID] - FROM [Customers] AS [c1] - ) AS [t0] ON [c#Orders0].[CustomerID] = [t0].[CustomerID] -) AS [t1] ON [c#Orders#OrderDetails].[OrderID] = [t1].[OrderID] -ORDER BY [t1].[CustomerID], [t1].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key_with_first_or_default(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CompanyName] DESC, [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID], [c0].[CompanyName] - FROM [Customers] AS [c0] - ORDER BY [c0].[CompanyName] DESC, [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CompanyName] DESC, [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key_with_first_or_default(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CompanyName] DESC, [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID], [c0].[CompanyName] - FROM [Customers] AS [c0] - ORDER BY [c0].[CompanyName] DESC, [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CompanyName] DESC, [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_with_filter_reordered(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_with_filter_reordered(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Equals_Navigation() : - AssertSql( - @"SELECT [o1].[OrderID], [o1].[CustomerID], [o1].[EmployeeID], [o1].[OrderDate], [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM [Orders] AS [o1] -, [Orders] AS [o2] -WHERE ([o1].[CustomerID] = [o2].[CustomerID]) OR ([o1].[CustomerID] IS NULL AND [o2].[CustomerID] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Contains_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr([c].[ContactName], [c].[ContactName]) > 0) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Contains_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr([c].[ContactName], [c].[ContactName]) > 0) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_reversed() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE 'London' = [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_concat_with_navigation2() : - AssertSql( - @"SELECT ([o#Customer].[City] + ' ') + [o#Customer].[City] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_filter_reordered(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_filter_reordered(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.GroupJoin_with_nav_projected_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM [Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID]", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM [Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_collection_navigation_simple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A') -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] LIKE 'A' + '%' AND (LEFT([c0].[CustomerID], LEN('A')) = 'A') -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.SelectMany_projection2() : - AssertSql( - @"SELECT [e1].[City], [e2].[Country], [e3].[FirstName] -FROM [Employees] AS [e1] -, [Employees] AS [e2] -, [Employees] AS [e3]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_static_field_access_closure_via_query_cache() : - AssertSql( - @"@__StaticFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0", - // - @"@__StaticFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A')) AND (([c].[City] <> 'London') OR [c].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_subquery_involving_join_binds_to_correct_table() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] > 11000) AND [o].[OrderID] IN ( - SELECT [od].[OrderID] - FROM [Order Details] AS [od] - INNER JOIN [Products] AS [od#Product] ON [od].[ProductID] = [od#Product].[ProductID] - WHERE [od#Product].[ProductName] = 'Chai' -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_where_nav_prop_all_client() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BERGS' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BLAUS' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BLONP' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BOLID' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Navigations_Where_Navigations() : - AssertSql( - @"SELECT [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE ([o#Customer].[City] = 'Seattle') AND (([o#Customer].[Phone] <> '555 555 5555') OR [o#Customer].[Phone] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A'))"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Singleton_Navigation_With_Member_Access() : - AssertSql( - @"SELECT [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City] AS [B], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE ([o#Customer].[City] = 'Seattle') AND (([o#Customer].[Phone] <> '555 555 5555') OR [o#Customer].[Phone] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_not_in_optimization2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] NOT IN ('London', 'Berlin')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_correlated_subquery_ordered() : - AssertSql( - @"@__p_0='3' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Contains() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE Instr([o#Customer].[City], 'Sea') > 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE [o#Customer].[City] = 'Seattle'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_when_groupby(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_when_groupby(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_last_no_orderby(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] DESC", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] DESC -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_last_no_orderby(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] DESC", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] DESC -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_select_nav_prop_single_or_default_then_nav_prop_nested() : - AssertSql( - @"SELECT 1 -FROM [Customers] AS [e] -WHERE [e].[CustomerID] LIKE 'A' + '%' AND (LEFT([e].[CustomerID], LEN('A')) = 'A')", - // - @"SELECT TOP 2 [o#Customer0].[City] -FROM [Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID] -WHERE [o0].[OrderID] = 10643", - // - @"SELECT TOP 2 [o#Customer0].[City] -FROM [Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID] -WHERE [o0].[OrderID] = 10643", - // - @"SELECT TOP 2 [o#Customer0].[City] -FROM [Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID] -WHERE [o0].[OrderID] = 10643", - // - @"SELECT TOP 2 [o#Customer0].[City] -FROM [Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID] -WHERE [o0].[OrderID] = 10643"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_collection_FirstOrDefault_project_entity() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_DTO_with_member_init_distinct_in_subquery_used_in_projection_translated_to_server() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [t].[Id], [t].[Count] -FROM [Customers] AS [c] -, ( - SELECT DISTINCT [o].[CustomerID] AS [Id], [o].[OrderID] AS [Count] - FROM [Orders] AS [o] - WHERE [o].[OrderID] < 10300 -) AS [t] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.LastOrDefault() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.GroupJoin_with_nav_in_predicate_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM [Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID]", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM [Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Project_single_entity_value_subquery_works() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A') -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.GroupJoin_with_nav_in_orderby_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM [Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID]", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM [Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Take_Select_Navigation() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_conditional_order_by(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[CustomerID] LIKE 'S' + '%' AND (LEFT([c].[CustomerID], LEN('S')) = 'S'), - 1, - 2 -), [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], IIf( - [c0].[CustomerID] LIKE 'S' + '%' AND (LEFT([c0].[CustomerID], LEN('S')) = 'S'), - 1, - 2 - ) AS [c] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[c], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Let_group_by_nav_prop() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice], [od#Order].[CustomerID] AS [customer] -FROM [Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID] -ORDER BY [od#Order].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Included() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE [o#Customer].[City] = 'Seattle'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Take_simple() : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_key(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Join_with_nav_in_predicate_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM [Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID]", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM [Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Client() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Navigation_inside_contains() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE [o#Customer].[City] IN ('Novigrad', 'Seattle')"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_collection_FirstOrDefault_project_anonymous_type() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[CustomerID], [o].[OrderID] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[CustomerID], [o].[OrderID] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Multiple_Access() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE ([o#Customer].[City] = 'Seattle') AND (([o#Customer].[Phone] <> '555 555 5555') OR [o#Customer].[Phone] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_principal_already_tracked(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_multi_level5() : - AssertSql( - @"SELECT ( - SELECT TOP 1 ( - SELECT TOP 1 [od].[ProductID] - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] <> ( - SELECT COUNT(*) - FROM [Orders] AS [o0] - WHERE [c].[CustomerID] = [o0].[CustomerID] - )) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [Order] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_with_filter(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_with_filter(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A'))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Take_subquery_projection() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[City] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_with_skip(Boolean useString) : - AssertSql( - @"@__p_0='80' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName], [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_with_skip(Boolean useString) : - AssertSql( - @"@__p_0='80' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName], [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_negated_twice() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_count_using_DTO() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], ( - SELECT COUNT(*) - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] -) AS [Count] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_select_nav_prop_all_client() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='BERGS' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='BLAUS' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='BLONP' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='BOLID' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_complex_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [A] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[A] LIKE 'A' + '%' AND (LEFT([t].[A], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_EndsWith_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (RIGHT([c].[ContactName], LEN([c].[ContactName])) = [c].[ContactName]) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Substring_with_client_eval() : - AssertSql( - @"SELECT TOP 1 [c].[ContactName] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multi_level_reference_and_collection_predicate(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE [o].[OrderID] = 10248 -ORDER BY [o#Customer].[CustomerID]", - // - @"SELECT [o#Customer#Orders].[OrderID], [o#Customer#Orders].[CustomerID], [o#Customer#Orders].[EmployeeID], [o#Customer#Orders].[OrderDate] -FROM [Orders] AS [o#Customer#Orders] -INNER JOIN ( - SELECT DISTINCT [t].* - FROM ( - SELECT TOP 1 [o#Customer0].[CustomerID] - FROM [Orders] AS [o0] - LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID] - WHERE [o0].[OrderID] = 10248 - ORDER BY [o#Customer0].[CustomerID] - ) AS [t] -) AS [t0] ON [o#Customer#Orders].[CustomerID] = [t0].[CustomerID] -ORDER BY [t0].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multi_level_reference_and_collection_predicate(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE [o].[OrderID] = 10248 -ORDER BY [o#Customer].[CustomerID]", - // - @"SELECT [o#Customer#Orders].[OrderID], [o#Customer#Orders].[CustomerID], [o#Customer#Orders].[EmployeeID], [o#Customer#Orders].[OrderDate] -FROM [Orders] AS [o#Customer#Orders] -INNER JOIN ( - SELECT DISTINCT [t].* - FROM ( - SELECT TOP 1 [o#Customer0].[CustomerID] - FROM [Orders] AS [o0] - LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID] - WHERE [o0].[OrderID] = 10248 - ORDER BY [o#Customer0].[CustomerID] - ) AS [t] -) AS [t0] ON [o#Customer#Orders].[CustomerID] = [t0].[CustomerID] -ORDER BY [t0].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_parameter() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE @__prm_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_not_in_optimization4() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] NOT IN ('London', 'Berlin', 'Seattle', 'Lisboa')"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_last(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CompanyName] DESC, [c].[CustomerID] DESC", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID], [c0].[CompanyName] - FROM [Customers] AS [c0] - ORDER BY [c0].[CompanyName] DESC, [c0].[CustomerID] DESC -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CompanyName] DESC, [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_member_distinct_where() : - AssertSql( - @"SELECT [t].[Property] -FROM ( - SELECT DISTINCT [c].[CustomerID] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_where_skip_take_projection(Boolean useString) : - AssertSql( - @"@__p_0='1' -@__p_1='2' - -SELECT TOP @__p_1+@__p_0 [od#Order].[CustomerID] -FROM [Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID] -WHERE [od].[Quantity] = 10 -ORDER BY [od].[OrderID], [od].[ProductID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_where_skip_take_projection(Boolean useString) : - AssertSql( - @"@__p_0='1' -@__p_1='2' - -SELECT TOP @__p_1+@__p_0 [od#Order].[CustomerID] -FROM [Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID] -WHERE [od].[Quantity] = 10 -ORDER BY [od].[OrderID], [od].[ProductID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_multi_level3() : - AssertSql( - @"SELECT ( - SELECT TOP 1 [o].[OrderDate] - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [OrderDates] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.SelectMany_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM [Customers] AS [c] -, [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_shadow_subquery_FirstOrDefault() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[Title] = ( - SELECT TOP 1 [e2].[Title] - FROM [Employees] AS [e2] - ORDER BY [e2].[Title] -)"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_additional_from_clause_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c1] -, [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID] - FROM [Customers] AS [c10] - , [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_false() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_member_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] LIKE 'A' + '%' AND (LEFT([t].[Property], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_using_int_overload_on_mismatched_types() : - AssertSql( - @"@__shortPrm_0='1' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] = @__shortPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_EndsWith_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (RIGHT([c].[ContactName], LEN([c].[ContactName])) = [c].[ContactName]) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_de_morgan_and_optimizated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) OR ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Local_array() : - AssertSql( - @"@__get_Item_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_Customers_Orders_Skip_Take() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT TOP @__p_1+@__p_0 [c].[ContactName], [o].[OrderID] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -ORDER BY [o].[OrderID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_expression_long_to_string() : - AssertSql( - @"SELECT Str([o].[OrderID]) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Distinct_Take() : - AssertSql( - @"@__p_0='5' - -SELECT TOP @__p_0 [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT DISTINCT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] -) AS [t] -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_collection_sql_injection() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ALFKI', 'ABC'')); GO; DROP TABLE Orders; GO; --', 'ALFKI', 'ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A')) AND (([c].[City] <> 'London') OR [c].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.SelectMany_projection1() : - AssertSql( - @"SELECT [e1].[City], [e2].[Country] -FROM [Employees] AS [e1] -, [Employees] AS [e2]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_EndsWith_MethodCall() : - AssertSql( - @"@__LocalMethod2_0='m' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (RIGHT([c].[ContactName], LEN(@__LocalMethod2_0)) = @__LocalMethod2_0) OR (@__LocalMethod2_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_closure_via_query_cache() : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0", - // - @"@__city_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_expression_invoke() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_member_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[CustomerID] LIKE 'A' + '%' AND (LEFT([t].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_Customers_Orders_Projection_With_String_Concat_Skip_Take() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT TOP @__p_1+@__p_0 ([c].[ContactName] + ' ') + [c].[ContactTitle] AS [Contact], [o].[OrderID] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -ORDER BY [o].[OrderID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_select_many_or3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN ('London', 'Berlin', 'Seattle')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_compared_to_binary_expression() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = IIf( - [p].[ProductID] > 50, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Null_conditional_simple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_comparison_to_nullable_bool() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE RIGHT([c].[CustomerID], LEN('KI')) = 'KI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_subquery_and_local_array_closure() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [c1] - WHERE [c1].[City] IN ('London', 'Buenos Aires') AND ([c1].[CustomerID] = [c].[CustomerID]))", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [c1] - WHERE [c1].[City] IN ('London') AND ([c1].[CustomerID] = [c].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_many_cross_join_same_collection() : - AssertSql( - @"SELECT [c0].[CustomerID], [c0].[Address], [c0].[City], [c0].[CompanyName], [c0].[ContactName], [c0].[ContactTitle], [c0].[Country], [c0].[Fax], [c0].[Phone], [c0].[PostalCode], [c0].[Region] -FROM [Customers] AS [c] -, [Customers] AS [c0]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_LastOrDefault() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Contains_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Instr([c].[ContactName], 'M') > 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_on_mismatched_types_nullable_int_long() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_false() : - AssertSql( - @"@__flag_0='False' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ((@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_0 <> True) AND ([p].[UnitsInStock] < 20))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Single_Predicate() : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Take_simple_parameterized() : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_collection_complex_predicate_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI', 'ALFKI', 'ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_select_many_and() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE (([c].[City] = 'London') AND ([c].[Country] = 'UK')) AND (([e].[City] = 'London') AND ([e].[Country] = 'UK'))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_with_multiple_conditions_still_uses_exists() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[City] = 'London') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[EmployeeID] = 1) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_expression_other_to_string() : - AssertSql( - @"SELECT Str([o].[OrderDate]) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_sin() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (SIN([od].[Discount]) > 0E0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_skip_take() : - AssertSql( - @"@__p_0='5' -@__p_1='8' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactTitle], [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_in_optimization_multiple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE ([c].[City] IN ('London', 'Berlin') OR ([c].[CustomerID] = 'ALFKI')) OR ([c].[CustomerID] = 'ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_negated_boolean_expression_compared_to_another_negated_boolean_expression() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE IIf( - [p].[ProductID] > 50, - True, - False -) = IIf( - [p].[ProductID] > 20, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_StartsWith_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[ContactName] LIKE [c].[ContactName] + '%' AND (LEFT([c].[ContactName], LEN([c].[ContactName])) = [c].[ContactName])) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OfType_Select() : - AssertSql( - @"SELECT TOP 1 [o#Customer].[City] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_complex_distinct_where() : - AssertSql( - @"SELECT [t].[Property] -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] = 'ALFKIBerlin'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_select_many_or_with_parameter() : - AssertSql( - @"@__lisboa_1='Lisboa' (Nullable = false) (Size = 6) -@__london_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN (@__london_0, 'Berlin', 'Seattle', @__lisboa_1)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.SelectMany_entity_deep() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title], [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title], [e3].[EmployeeID], [e3].[City], [e3].[Country], [e3].[FirstName], [e3].[ReportsTo], [e3].[Title], [e4].[EmployeeID], [e4].[City], [e4].[Country], [e4].[FirstName], [e4].[ReportsTo], [e4].[Title] -FROM [Employees] AS [e1] -, [Employees] AS [e2] -, [Employees] AS [e3] -, [Employees] AS [e4]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_true() : - AssertSql( - @"@__flag_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ((@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_0 <> True) AND ([p].[UnitsInStock] < 20))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_collection_complex_predicate_not_matching_ins1() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ALFKI', 'ABCDE') OR [c].[CustomerID] NOT IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_client_side_negated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_multi_level() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_SelectMany() : - AssertSql( - @"SELECT [c].[ContactName], [t].[OrderID] -FROM [Customers] AS [c] -, ( - SELECT TOP 3 [o].* - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] -WHERE [c].[CustomerID] = [t].[CustomerID] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.IsNullOrEmpty_in_projection() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], IIf( - [c].[Region] IS NULL OR ([c].[Region] = ''), - True, - False -) AS [Value] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_shadow_projection() : - AssertSql( - @"SELECT [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[Title] = 'Sales Representative'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_closure_via_query_cache_nullable_type() : - AssertSql( - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_nested_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0", - // - @"@__city_Nested_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_DefaultIfEmpty_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [o].[OrderID] IS NOT NULL AND ([o].[CustomerID] = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_constant_is_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A'))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Last() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_method_call_nullable_type_reverse_closure_via_query_cache() : - AssertSql( - @"@__city_NullableInt_0='1' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0", - // - @"@__city_NullableInt_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_subquery_closure_via_query_cache() : - AssertSql( - @"@__customerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] = @__customerID_0) AND ([o].[CustomerID] = [c].[CustomerID]))", - // - @"@__customerID_0='ANATR' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] = @__customerID_0) AND ([o].[CustomerID] = [c].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_exp() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (EXP([od].[Discount]) > 1E0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Skip_Take() : - AssertSql( - @"@__p_0='5' -@__p_1='10' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_de_morgan_or_optimizated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) AND ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE [e1].[FirstName] = ( - SELECT TOP 1 [e].[FirstName] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_scalar_primitive_after_take() : - AssertSql( - @"@__p_0='9' - -SELECT TOP @__p_0 [e].[EmployeeID] -FROM [Employees] AS [e]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.FirstOrDefault_inside_subquery_gets_server_evaluated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND (( - SELECT TOP 1 [o].[CustomerID] - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] = 'ALFKI') AND ([c].[CustomerID] = [o].[CustomerID]) -) = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_orderby_select_many() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.IsNullOrWhiteSpace_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[Region] IS NULL OR (LTRIM(RTRIM([c].[Region])) = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_array_closure() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI')", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Subquery_is_null_translated_correctly() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ( - SELECT TOP 1 [o].[CustomerID] - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ORDER BY [o].[OrderID] DESC -) IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_multi_level4() : - AssertSql( - @"SELECT ( - SELECT TOP 1 ( - SELECT COUNT(*) - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] > 10) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [Order] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Handle_materialization_properly_when_more_than_two_query_sources_are_involved() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -, [Orders] AS [o] -, [Employees] AS [e] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Query_expression_with_to_string_and_contains() : - AssertSql( - @"SELECT [o].[CustomerID] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL AND (Instr(Str([o].[EmployeeID]), '10') > 0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Take_simple_projection() : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[City] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_static_property_access_closure_via_query_cache() : - AssertSql( - @"@__StaticPropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0", - // - @"@__StaticPropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_subquery_on_bool() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE 'Chai' IN ( - SELECT [p2].[ProductName] - FROM [Products] AS [p2] -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_Where_Subquery_Deep_First() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ( - SELECT TOP 1 ( - SELECT TOP 1 [c].[City] - FROM [Customers] AS [c] - WHERE [o].[CustomerID] = [c].[CustomerID] - ) - FROM [Orders] AS [o] - WHERE [od].[OrderID] = [o].[OrderID] -) = 'Seattle'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_client_deep_inside_predicate_and_server_top_level() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Subquery_is_not_null_translated_correctly() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ( - SELECT TOP 1 [o].[CustomerID] - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ORDER BY [o].[OrderID] DESC -) IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_collection_false() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] NOT IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_parameter_compared_to_binary_expression() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE IIf( - [p].[ProductID] > 50, - True, - False -) <> @__prm_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Last_when_no_order_by() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_anonymous_conditional_expression() : - AssertSql( - @"SELECT [p].[ProductID], IIf( - [p].[UnitsInStock] > 0, - True, - False -) AS [IsAvailable] -FROM [Products] AS [p]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_not_bool_member_compared_to_binary_expression() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] <> IIf( - [p].[ProductID] > 50, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_orderby_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [c].[CustomerID] <> 'ALFKI' -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_DTO_with_member_init_distinct_in_subquery_translated_to_server() : - AssertSql( - @"SELECT [t].[Id], [t].[Count], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ( - SELECT DISTINCT [o].[CustomerID] AS [Id], [o].[OrderID] AS [Count] - FROM [Orders] AS [o] - WHERE [o].[OrderID] < 10300 -) AS [t] -, [Customers] AS [c] -WHERE [c].[CustomerID] = [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_entity_equality_no_elements_FirstOrDefault() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE ( - SELECT TOP 1 [e2].[EmployeeID] - FROM [Employees] AS [e2] - WHERE [e2].[EmployeeID] = 42 -) = 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_not_in_optimization1() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND (([e].[City] <> 'London') OR [e].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_cos() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (COS([od].[Discount]) > 0E0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_not_in_optimization3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] NOT IN ('London', 'Berlin', 'Seattle')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.SelectMany_simple2() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e2].[FirstName] AS [FirstName0] -FROM [Employees] AS [e1] -, [Customers] AS [c] -, [Employees] AS [e2]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A'))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Count_with_predicate() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupBy_anonymous_with_where() : - AssertSql( - @"SELECT [c].[City], [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[Country] IN ('Argentina', 'Austria', 'Brazil', 'France', 'Germany', 'USA') -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_list_inline_closure_mix() : line_closure_mix() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\QueryJetTest.cs:riga 6242 - AssertSql( - @"@__id_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', @__id_0)", - // - @"@__id_0='ANATR' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', @__id_0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_closure_via_query_cache_nullable_type_reverse() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0", - // - @"@__city_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_select_many_or2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN ('London', 'Berlin')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_null_is_not_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_Where_Count_with_predicate() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -WHERE ([o].[OrderID] > 10) AND (([o].[CustomerID] <> 'ALFKI') OR [o].[CustomerID] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.IsNullOrEmpty_negated_in_projection() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], IIf( - [c].[Region] IS NOT NULL AND ([c].[Region] <> ''), - True, - False -) AS [Value] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OfType_Select_OfType_Select() : - AssertSql( - @"SELECT TOP 1 [o#Customer].[City] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_Where_Subquery_Deep_Single() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[OrderID] = 10344", - // - @"@_outer_OrderID='10344' - -SELECT TOP 2 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE @_outer_OrderID = [o0].[OrderID]", - // - @"@_outer_CustomerID1='WHITC' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID1 = [c2].[CustomerID]", - // - @"@_outer_OrderID='10344' - -SELECT TOP 2 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE @_outer_OrderID = [o0].[OrderID]", - // - @"@_outer_CustomerID1='WHITC' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID1 = [c2].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_nested_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0", - // - @"@__city_Nested_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_and_parameter_compared_to_binary_expression_nested() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = IIf( - IIf( - [p].[ProductID] > 50, - True, - False - ) <> @__prm_0, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_Last() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Contains_MethodCall() : - AssertSql( - @"@__LocalMethod1_0='M' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr([c].[ContactName], @__LocalMethod1_0) > 0) OR (@__LocalMethod1_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_compare_with_parameter() : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_complex_distinct_where() : - AssertSql( - @"SELECT [t].[A] -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [A] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[A] = 'ALFKIBerlin'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_equals_constant() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0", - // - @"@__city_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_on_matched_nullable_int_types() : - AssertSql( - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE @__nullableIntPrm_0 = [e].[ReportsTo]", - // - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__nullableIntPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_OrderBy_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_with_false_as_result_false() : - AssertSql( - @"@__flag_0='False' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Compare_multi_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= 'ALFKI' AND [c].[CustomerID] < 'CACTU'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactTitle] = 'Owner' AND [c].[Country] <> 'USA'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_complex_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] LIKE 'A' + '%' AND (LEFT([t].[Property], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_with_false_as_result_true() : - AssertSql( - @"@__flag_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_new_instance_field_access_closure_via_query_cache() : - AssertSql( - @"@__InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0", - // - @"@__InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_compare_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] IS NULL AND ([c].[Country] = 'UK')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Entity_equality_local() : - AssertSql( - @"@__local_0_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__local_0_CustomerID"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Queryable_simple_anonymous_projection_subquery() : - AssertSql( - @"@__p_0='91' - -SELECT TOP @__p_0 [c].[City] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_false() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_comparison_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[Region] = 'ASK', - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_entity_equality_multiple_elements_FirstOrDefault() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE ( - SELECT TOP 1 [e2].[EmployeeID] - FROM [Employees] AS [e2] - WHERE ([e2].[EmployeeID] <> [e1].[ReportsTo]) OR [e1].[ReportsTo] IS NULL -) = 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_using_object_overload_on_mismatched_types() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.SelectMany_simple1() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Employees] AS [e] -, [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_collection_complex_predicate_and() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ALFKI', 'ABCDE') AND [c].[CustomerID] IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_shadow() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_on_mismatched_types_nullable_long_nullable_int() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_StartsWith_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE 'M' + '%' AND (LEFT([c].[ContactName], LEN('M')) = 'M')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_entity_equality_one_element_FirstOrDefault() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE ( - SELECT TOP 1 [e2].[EmployeeID] - FROM [Employees] AS [e2] - WHERE [e2].[EmployeeID] = [e1].[ReportsTo] -) = 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_false_shadow() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_tan() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (TAN([od].[Discount]) > 0E0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_array_inline() : line() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\QueryJetTest.cs:riga 6212 - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_conditional_operator_where_condition_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - False = True, - 'ZZ', - [c].[City] -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Last_Predicate() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Entity_equality_local_inline() : line() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\QueryJetTest.cs:riga 173 - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ANATR'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_multi_level2() : - AssertSql( - @"SELECT ( - SELECT TOP 1 [o].[OrderDate] - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [OrderDates] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Environment_newline_is_funcletized() : line_is_funcletized() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\QueryJetTest.cs:riga 6638 - AssertSql( - @"@__NewLine_0=' -' (Nullable = false) (Size = 2) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr([c].[CustomerID], @__NewLine_0) > 0) OR (@__NewLine_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Compare_simple_one() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.LastOrDefault_Predicate() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_complex_negated_expression_optimized() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[Discontinued] = False) AND ([p].[ProductID] < 60)) AND ([p].[ProductID] > 30)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_list_closure() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Discriminator_used_when_projection_over_of_type() : - AssertSql( - @"SELECT [k].[FoundOn] -FROM [Animal] AS [k] -WHERE [k].[Discriminator] = 'Kiwi'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_query_all_types_when_shared_column() : - AssertSql( - @"SELECT [d].[Id], [d].[Discriminator], [d].[CaffeineGrams], [d].[CokeCO2], [d].[SugarGrams], [d].[LiltCO2], [d].[HasMilk] -FROM [Drink] AS [d] -WHERE [d].[Discriminator] IN ('Tea', 'Lilt', 'Coke', 'Drink')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_kiwi_where_north_on_derived_property() : - AssertSql( - @"SELECT [x].[Species], [x].[CountryId], [x].[Discriminator], [x].[Name], [x].[EagleId], [x].[IsFlightless], [x].[FoundOn] -FROM [Animal] AS [x] -WHERE ([x].[Discriminator] = 'Kiwi') AND ([x].[FoundOn] = 0)"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_query_all_birds() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_include_prey() : - AssertSql( - @"SELECT TOP 2 [e].[Species], [e].[CountryId], [e].[Discriminator], [e].[Name], [e].[EagleId], [e].[IsFlightless], [e].[Group] -FROM [Animal] AS [e] -WHERE [e].[Discriminator] = 'Eagle' -ORDER BY [e].[Species]", - // - @"SELECT [e#Prey].[Species], [e#Prey].[CountryId], [e#Prey].[Discriminator], [e#Prey].[Name], [e#Prey].[EagleId], [e#Prey].[IsFlightless], [e#Prey].[Group], [e#Prey].[FoundOn] -FROM [Animal] AS [e#Prey] -INNER JOIN ( - SELECT TOP 1 [e0].[Species] - FROM [Animal] AS [e0] - WHERE [e0].[Discriminator] = 'Eagle' - ORDER BY [e0].[Species] -) AS [t] ON [e#Prey].[EagleId] = [t].[Species] -WHERE [e#Prey].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [t].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Discriminator_used_when_projection_over_derived_type() : - AssertSql( - @"SELECT [k].[FoundOn] -FROM [Animal] AS [k] -WHERE [k].[Discriminator] = 'Kiwi'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_animal() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_bird() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_query_when_shared_column() : - AssertSql( - @"SELECT TOP 2 [d].[Id], [d].[Discriminator], [d].[CaffeineGrams], [d].[CokeCO2], [d].[SugarGrams] -FROM [Drink] AS [d] -WHERE [d].[Discriminator] = 'Coke'", - // - @"SELECT TOP 2 [d].[Id], [d].[Discriminator], [d].[LiltCO2], [d].[SugarGrams] -FROM [Drink] AS [d] -WHERE [d].[Discriminator] = 'Lilt'", - // - @"SELECT TOP 2 [d].[Id], [d].[Discriminator], [d].[CaffeineGrams], [d].[HasMilk] -FROM [Drink] AS [d] -WHERE [d].[Discriminator] = 'Tea'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_Where_Count_with_predicate_client_eval_mixed() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] <> 'ALFKI') OR [o].[CustomerID] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_bird_predicate() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[CountryId] = 1) -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_is_kiwi_in_projection() : - AssertSql( - @"SELECT IIf( - [a].[Discriminator] = 'Kiwi', - True, - False -) -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_query_just_kiwis() : - AssertSql( - @"SELECT TOP 2 [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] = 'Kiwi'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_alias_generation(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice] -FROM [Order Details] AS [o#OrderDetails] -INNER JOIN ( - SELECT [o0].[OrderID] - FROM [Orders] AS [o0] -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID] -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_filter_all_animals() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[Name] = 'Great spotted kiwi') -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_kiwi() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] = 'Kiwi'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_is_kiwi() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[Discriminator] = 'Kiwi')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_bird_first() : - AssertSql( - @"SELECT TOP 1 [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Discriminator_used_when_projection_over_derived_type2() : - AssertSql( - @"SELECT [b].[IsFlightless], [b].[Discriminator] -FROM [Animal] AS [b] -WHERE [b].[Discriminator] IN ('Kiwi', 'Eagle')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_query_all_animals() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_select_many() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_StartsWith_MethodCall() : - AssertSql( - @"@__LocalMethod1_0='M' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[ContactName] LIKE @__LocalMethod1_0 + '%' AND (LEFT([c].[ContactName], LEN(@__LocalMethod1_0)) = @__LocalMethod1_0)) OR (@__LocalMethod1_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.First_inside_subquery_gets_client_evaluated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE ([o0].[CustomerID] = 'ALFKI') AND (@_outer_CustomerID = [o0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_Count_with_predicate() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_method_string() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Filter_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE IIf(IsNull([c].[CompanyName]), [c].[ContactName], [c].[CompanyName]) = 'The Big Cheese'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_alias_generation(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice] -FROM [Order Details] AS [o#OrderDetails] -INNER JOIN ( - SELECT [o0].[OrderID] - FROM [Orders] AS [o0] -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID] -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Include_on_GroupJoin_SelectMany_DefaultIfEmpty_with_inheritance_and_coalesce_result() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank], [t].[Nickname], [t].[SquadId], [t].[AssignedCityName], [t].[CityOrBirthName], [t].[Discriminator], [t].[FullName], [t].[HasSoulPatch], [t].[LeaderNickname], [t].[LeaderSquadId], [t].[Rank] -FROM [Gear] AS [g] -LEFT JOIN ( - SELECT [g2].* - FROM [Gear] AS [g2] - WHERE [g2].[Discriminator] = 'Officer' -) AS [t] ON [g].[LeaderNickname] = [t].[Nickname] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') -ORDER BY [t].[FullName], [g].[FullName]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_Subquery_Single() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [od].[OrderID] -FROM [Order Details] AS [od] -ORDER BY [od].[ProductID], [od].[OrderID]", - // - @"@_outer_OrderID='10285' - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_OrderID = [o].[OrderID] -ORDER BY [o].[OrderID]", - // - @"@_outer_OrderID='10294' - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_OrderID = [o].[OrderID] -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_ternary_operation_with_has_value_not_null() : - AssertSql( - @"SELECT [w].[Id], IIf( - [w].[AmmunitionType] IS NOT NULL AND ([w].[AmmunitionType] = 1), - 'Yes', - 'No' -) AS [IsCartidge] -FROM [Weapon] AS [w] -WHERE [w].[AmmunitionType] IS NOT NULL AND ([w].[AmmunitionType] = 1)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_inverted_boolean() : - AssertSql( - @"SELECT [w].[Id], IIf( - [w].[IsAutomatic] = False, - True, - False -) AS [Manual] -FROM [Weapon] AS [w] -WHERE [w].[IsAutomatic] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bitwise_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_expression_int_to_string() : - AssertSql( - @"SELECT Str([o].[OrderID]) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Sum_with_optional_navigation_is_translated_to_sql() : - AssertSql( - @"SELECT SUM([g].[SquadId]) -FROM [Gear] AS [g] -LEFT JOIN [CogTag] AS [g#Tag] ON ([g].[Nickname] = [g#Tag].[GearNickName]) AND ([g].[SquadId] = [g#Tag].[GearSquadId]) -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g#Tag].[Note] <> 'Foo') OR [g#Tag].[Note] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_project_filter2() : - AssertSql( - @"SELECT [c].[City] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_alias_generation(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate] -FROM [Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_conditional_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[Region] IS NULL, - 'ZZ', - [c].[Region] -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_select_nav_prop_first_or_default_then_nav_prop() : - AssertSql( - @"SELECT [e].[CustomerID] -FROM [Customers] AS [e] -WHERE [e].[CustomerID] LIKE 'A' + '%' AND (LEFT([e].[CustomerID], LEN('A')) = 'A') -ORDER BY [e].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM [Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID] -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM [Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID] -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM [Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID] -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM [Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID] -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Navigation_fk_based_inside_contains() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] IN ('ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_comparison_with_null() : - AssertSql( - @"@__ammunitionType_0='Cartridge' -@__ammunitionType_1='Cartridge' - -SELECT [w].[Id], IIf( - [w].[AmmunitionType] = @__ammunitionType_1, - True, - False -) AS [Cartidge] -FROM [Weapon] AS [w] -WHERE [w].[AmmunitionType] = @__ammunitionType_0", - // - @"SELECT [w].[Id], IIf( - [w].[AmmunitionType] IS NULL, - True, - False -) AS [Cartidge] -FROM [Weapon] AS [w] -WHERE [w].[AmmunitionType] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_length_of_string_property() : - AssertSql( - @"SELECT [w].[Name], CInt(IIf(IsNull(LEN([w].[Name])),0,LEN([w].[Name]))) AS [Length] -FROM [Weapon] AS [w]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Entity_equality_empty() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND ([g].[Nickname] IS NULL AND ([g].[SquadId] = 0))"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_alias_generation(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate] -FROM [Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_join_clause_with_order_by_and_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - INNER JOIN [Orders] AS [o0] ON [c0].[CustomerID] = [o0].[CustomerID] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_join_clause_with_order_by_and_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - INNER JOIN [Orders] AS [o0] ON [c0].[CustomerID] = [o0].[CustomerID] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_collection_complex_predicate_not_matching_ins2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI') AND [c].[CustomerID] NOT IN ('ALFKI', 'ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Contains_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr([c].[ContactName], [c].[ContactName]) > 0) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_member_distinct_where() : - AssertSql( - @"SELECT [t].[CustomerID] -FROM ( - SELECT DISTINCT [c].[CustomerID] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Contains_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr([c].[ContactName], [c].[ContactName]) > 0) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_null_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_reversed() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE 'London' = [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_concat_with_navigation2() : - AssertSql( - @"SELECT ([o#Customer].[City] + ' ') + [o#Customer].[City] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_Where_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_EndsWith_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE RIGHT([c].[ContactName], LEN('b')) = 'b'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_dependent_already_tracked(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_join_clause_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID] - FROM [Customers] AS [c0] - INNER JOIN [Orders] AS [o0] ON [c0].[CustomerID] = [o0].[CustomerID] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_join_clause_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID] - FROM [Customers] AS [c0] - INNER JOIN [Orders] AS [o0] ON [c0].[CustomerID] = [o0].[CustomerID] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Equals_Navigation() : - AssertSql( - @"SELECT [o1].[OrderID], [o1].[CustomerID], [o1].[EmployeeID], [o1].[OrderDate], [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM [Orders] AS [o1] -, [Orders] AS [o2] -WHERE ([o1].[CustomerID] = [o2].[CustomerID]) OR ([o1].[CustomerID] IS NULL AND [o2].[CustomerID] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_where_nav_prop_all() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([c].[CustomerID] = [o].[CustomerID]) AND (([o].[CustomerID] <> 'ALFKI') OR [o].[CustomerID] IS NULL))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.SelectMany_projection2() : - AssertSql( - @"SELECT [e1].[City], [e2].[Country], [e3].[FirstName] -FROM [Employees] AS [e1] -, [Employees] AS [e2] -, [Employees] AS [e3]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_static_field_access_closure_via_query_cache() : - AssertSql( - @"@__StaticFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0", - // - @"@__StaticFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A')) AND (([c].[City] <> 'London') OR [c].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_subquery_involving_join_binds_to_correct_table() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] > 11000) AND [o].[OrderID] IN ( - SELECT [od].[OrderID] - FROM [Order Details] AS [od] - INNER JOIN [Products] AS [od#Product] ON [od].[ProductID] = [od#Product].[ProductID] - WHERE [od#Product].[ProductName] = 'Chai' -)"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key_with_first_or_default(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CompanyName] DESC, [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID], [c0].[CompanyName] - FROM [Customers] AS [c0] - ORDER BY [c0].[CompanyName] DESC, [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CompanyName] DESC, [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.GroupJoin_with_nav_projected_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM [Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID]", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM [Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_collection_navigation_simple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A') -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] LIKE 'A' + '%' AND (LEFT([c0].[CustomerID], LEN('A')) = 'A') -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_kiwi() : - AssertSql( - @"SELECT [k].[Species], [k].[CountryId], [k].[Discriminator], [k].[Name], [k].[EagleId], [k].[IsFlightless], [k].[FoundOn] -FROM [Animal] AS [k] -WHERE ([k].[Discriminator] = 'Kiwi') AND ([k].[CountryId] = 1)"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_bird_first() : - AssertSql( - @"SELECT TOP 1 [b].[Species], [b].[CountryId], [b].[Discriminator], [b].[Name], [b].[EagleId], [b].[IsFlightless], [b].[Group], [b].[FoundOn] -FROM [Animal] AS [b] -WHERE [b].[Discriminator] IN ('Kiwi', 'Eagle') AND ([b].[CountryId] = 1) -ORDER BY [b].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_filter_reordered(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_bird_predicate() : - AssertSql( - @"SELECT [b].[Species], [b].[CountryId], [b].[Discriminator], [b].[Name], [b].[EagleId], [b].[IsFlightless], [b].[Group], [b].[FoundOn] -FROM [Animal] AS [b] -WHERE ([b].[Discriminator] IN ('Kiwi', 'Eagle') AND ([b].[CountryId] = 1)) AND ([b].[CountryId] = 1) -ORDER BY [b].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Singleton_Navigation_With_Member_Access() : - AssertSql( - @"SELECT [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City] AS [B], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE ([o#Customer].[City] = 'Seattle') AND (([o#Customer].[Phone] <> '555 555 5555') OR [o#Customer].[Phone] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Navigation() : - AssertSql( - @"SELECT [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Compiled_query() : - AssertSql( - @"@__customerID='BERGS' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__customerID", - // - @"@__customerID='BLAUS' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__customerID"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Join_with_nav_in_orderby_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM [Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID]", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM [Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Contains() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE Instr([o#Customer].[City], 'Sea') > 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE [o#Customer].[City] = 'Seattle'"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Where_nav_prop_group_by() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID] -WHERE [od#Order].[CustomerID] = 'ALFKI' -ORDER BY [od].[Quantity]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Include_query_opt_out() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_select_many() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -, [Employees] AS [e]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_and_collection(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice] -FROM [Order Details] AS [o#OrderDetails] -INNER JOIN ( - SELECT DISTINCT [o0].[OrderID] - FROM [Orders] AS [o0] - LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID] -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID] -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.LastOrDefault() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_list_inline() : line() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\QueryJetTest.cs:riga 6232 - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Project_single_entity_value_subquery_works() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A') -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_and_collection(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice] -FROM [Order Details] AS [o#OrderDetails] -INNER JOIN ( - SELECT DISTINCT [o0].[OrderID] - FROM [Orders] AS [o0] - LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID] -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID] -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_when_groupby(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_when_groupby(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_last_no_orderby(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] DESC", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] DESC -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_last_no_orderby(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] DESC", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] DESC -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Join_with_nav_in_predicate_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM [Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID]", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM [Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_principal_already_tracked_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_principal_already_tracked_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Multiple_Access() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE ([o#Customer].[City] = 'Seattle') AND (([o#Customer].[Phone] <> '555 555 5555') OR [o#Customer].[Phone] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_select_nav_prop_first_or_default() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BERGS' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BLAUS' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BLONP' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BOLID' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A'))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Take_subquery_projection() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[City] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_arg_expression() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID] + [o].[OrderID]),0,[o].[OrderID] + [o].[OrderID]))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_negated_twice() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Null_Deep() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -LEFT JOIN [Employees] AS [e#Manager] ON [e].[ReportsTo] = [e#Manager].[EmployeeID] -WHERE [e#Manager].[ReportsTo] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_count_using_DTO() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], ( - SELECT COUNT(*) - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] -) AS [Count] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_conditional_order_by(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[CustomerID] LIKE 'S' + '%' AND (LEFT([c].[CustomerID], LEN('S')) = 'S'), - 1, - 2 -), [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], IIf( - [c0].[CustomerID] LIKE 'S' + '%' AND (LEFT([c0].[CustomerID], LEN('S')) = 'S'), - 1, - 2 - ) AS [c] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[c], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_complex_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [A] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[A] LIKE 'A' + '%' AND (LEFT([t].[A], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_conditional_order_by(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[CustomerID] LIKE 'S' + '%' AND (LEFT([c].[CustomerID], LEN('S')) = 'S'), - 1, - 2 -), [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], IIf( - [c0].[CustomerID] LIKE 'S' + '%' AND (LEFT([c0].[CustomerID], LEN('S')) = 'S'), - 1, - 2 - ) AS [c] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[c], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_EndsWith_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (RIGHT([c].[ContactName], LEN([c].[ContactName])) = [c].[ContactName]) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Substring_with_client_eval() : - AssertSql( - @"SELECT TOP 1 [c].[ContactName] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bitwise_and_with_logical_and() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True) AND ([c].[CustomerID] = 'ANTON')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_null_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[CompanyName], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [Region] -FROM [Customers] AS [c] -ORDER BY [Region]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Projection_null_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[CompanyName], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_parameter() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE @__prm_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Null_conditional_deep() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE CInt(IIf(IsNull(LEN([c].[CustomerID])),0,LEN([c].[CustomerID]))) = 5"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_not_in_optimization4() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] NOT IN ('London', 'Berlin', 'Seattle', 'Lisboa')"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_principal_already_tracked(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_concat_with_navigation1() : - AssertSql( - @"SELECT ([o].[CustomerID] + ' ') + [o#Customer].[City] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_member_distinct_where() : - AssertSql( - @"SELECT [t].[Property] -FROM ( - SELECT DISTINCT [c].[CustomerID] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Queryable_simple_anonymous_subquery() : - AssertSql( - @"@__p_0='91' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_with_skip(Boolean useString) : - AssertSql( - @"@__p_0='80' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName], [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_with_skip(Boolean useString) : - AssertSql( - @"@__p_0='80' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName], [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Sum_on_float_column_in_subquery() : - AssertSql( - @"SELECT [o].[OrderID], ( - SELECT CSng(IIf(IsNull(SUM([od].[Discount])),0,SUM([od].[Discount]))) - FROM [Order Details] AS [od] - WHERE [o].[OrderID] = [od].[OrderID] -) AS [Sum] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10300"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_multi_level3() : - AssertSql( - @"SELECT ( - SELECT TOP 1 [o].[OrderDate] - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [OrderDates] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.SelectMany_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM [Customers] AS [c] -, [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_shadow_subquery_FirstOrDefault() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[Title] = ( - SELECT TOP 1 [e2].[Title] - FROM [Employees] AS [e2] - ORDER BY [e2].[Title] -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_Where_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multi_level_reference_and_collection_predicate(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE [o].[OrderID] = 10248 -ORDER BY [o#Customer].[CustomerID]", - // - @"SELECT [o#Customer#Orders].[OrderID], [o#Customer#Orders].[CustomerID], [o#Customer#Orders].[EmployeeID], [o#Customer#Orders].[OrderDate] -FROM [Orders] AS [o#Customer#Orders] -INNER JOIN ( - SELECT DISTINCT [t].* - FROM ( - SELECT TOP 1 [o#Customer0].[CustomerID] - FROM [Orders] AS [o0] - LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID] - WHERE [o0].[OrderID] = 10248 - ORDER BY [o#Customer0].[CustomerID] - ) AS [t] -) AS [t0] ON [o#Customer#Orders].[CustomerID] = [t0].[CustomerID] -ORDER BY [t0].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_false() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_last(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CompanyName] DESC, [c].[CustomerID] DESC", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID], [c0].[CompanyName] - FROM [Customers] AS [c0] - ORDER BY [c0].[CompanyName] DESC, [c0].[CustomerID] DESC -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CompanyName] DESC, [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_member_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] LIKE 'A' + '%' AND (LEFT([t].[Property], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_where_skip_take_projection(Boolean useString) : - AssertSql( - @"@__p_0='1' -@__p_1='2' - -SELECT TOP @__p_1+@__p_0 [od#Order].[CustomerID] -FROM [Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID] -WHERE [od].[Quantity] = 10 -ORDER BY [od].[OrderID], [od].[ProductID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_where_skip_take_projection(Boolean useString) : - AssertSql( - @"@__p_0='1' -@__p_1='2' - -SELECT TOP @__p_1+@__p_0 [od#Order].[CustomerID] -FROM [Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID] -WHERE [od].[Quantity] = 10 -ORDER BY [od].[OrderID], [od].[ProductID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_using_int_overload_on_mismatched_types() : - AssertSql( - @"@__shortPrm_0='1' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] = @__shortPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_EndsWith_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (RIGHT([c].[ContactName], LEN([c].[ContactName])) = [c].[ContactName]) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_de_morgan_and_optimizated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) OR ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_additional_from_clause_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c1] -, [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID] - FROM [Customers] AS [c10] - , [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_additional_from_clause_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c1] -, [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID] - FROM [Customers] AS [c10] - , [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_expression_long_to_string() : - AssertSql( - @"SELECT Str([o].[OrderID]) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_no_arg() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Distinct_Take() : - AssertSql( - @"@__p_0='5' - -SELECT TOP @__p_0 [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT DISTINCT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] -) AS [t] -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_collection_sql_injection() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ALFKI', 'ABC'')); GO; DROP TABLE Orders; GO; --', 'ALFKI', 'ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A')) AND (([c].[City] <> 'London') OR [c].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.SelectMany_projection1() : - AssertSql( - @"SELECT [e1].[City], [e2].[Country] -FROM [Employees] AS [e1] -, [Employees] AS [e2]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_EndsWith_MethodCall() : - AssertSql( - @"@__LocalMethod2_0='m' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (RIGHT([c].[ContactName], LEN(@__LocalMethod2_0)) = @__LocalMethod2_0) OR (@__LocalMethod2_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_closure_via_query_cache() : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0", - // - @"@__city_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_expression_invoke() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_member_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[CustomerID] LIKE 'A' + '%' AND (LEFT([t].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_Customers_Orders_Projection_With_String_Concat_Skip_Take() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT TOP @__p_1+@__p_0 ([c].[ContactName] + ' ') + [c].[ContactTitle] AS [Contact], [o].[OrderID] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -ORDER BY [o].[OrderID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_select_many_or3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN ('London', 'Berlin', 'Seattle')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_compared_to_binary_expression() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = IIf( - [p].[ProductID] > 50, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Null_conditional_simple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_comparison_to_nullable_bool() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE RIGHT([c].[CustomerID], LEN('KI')) = 'KI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bitwise_or_with_logical_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True) OR ([c].[CustomerID] = 'ANTON')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_subquery_and_local_array_closure() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [c1] - WHERE [c1].[City] IN ('London', 'Buenos Aires') AND ([c1].[CustomerID] = [c].[CustomerID]))", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [c1] - WHERE [c1].[City] IN ('London') AND ([c1].[CustomerID] = [c].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_many_cross_join_same_collection() : - AssertSql( - @"SELECT [c0].[CustomerID], [c0].[Address], [c0].[City], [c0].[CompanyName], [c0].[ContactName], [c0].[ContactTitle], [c0].[Country], [c0].[Fax], [c0].[Phone], [c0].[PostalCode], [c0].[Region] -FROM [Customers] AS [c] -, [Customers] AS [c0]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_arg() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_bitwise_or_with_logical_or() : - AssertSql( - @"SELECT [c].[CustomerID], IIf( - ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False - ) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False - )) = True) OR ([c].[CustomerID] = 'ANTON'), - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_LastOrDefault() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Contains_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Instr([c].[ContactName], 'M') > 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_on_mismatched_types_nullable_int_long() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_false() : - AssertSql( - @"@__flag_0='False' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ((@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_0 <> True) AND ([p].[UnitsInStock] < 20))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_division_on_decimal_no_significant_digits() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull([od].[Quantity] / 2.0),0,[od].[Quantity] / 2.0))) -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_concat_string_int_comparison1() : - AssertSql( - @"@__i_0='10' - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] + (@__i_0&"""")) = [c].[CompanyName]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Single_Predicate() : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Take_simple_parameterized() : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_collection_complex_predicate_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI', 'ALFKI', 'ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_select_many_and() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE (([c].[City] = 'London') AND ([c].[Country] = 'UK')) AND (([e].[City] = 'London') AND ([e].[Country] = 'UK'))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_with_multiple_conditions_still_uses_exists() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[City] = 'London') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[EmployeeID] = 1) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_on_float_column_in_subquery() : - AssertSql( - @"SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10300", - // - @"@_outer_OrderID='10248' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10249' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10250' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10251' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10252' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10253' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10254' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10255' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_expression_other_to_string() : - AssertSql( - @"SELECT Str([o].[OrderDate]) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_on_float_column() : - AssertSql( - @"SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od].[Discount]),0,[od].[Discount])))),0,AVG(CSng(IIf(IsNull([od].[Discount]),0,[od].[Discount]))))) -FROM [Order Details] AS [od] -WHERE [od].[ProductID] = 1"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_sin() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (SIN([od].[Discount]) > 0E0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_concat_string_int_comparison2() : - AssertSql( - @"@__i_0='10' - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE ((@__i_0&"""") + [c].[CustomerID]) = [c].[CompanyName]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_skip_take() : - AssertSql( - @"@__p_0='5' -@__p_1='8' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactTitle], [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_concat_string_int_comparison3() : - AssertSql( - @"@__j_1='21' -@__i_0='10' - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE ((((@__i_0 + 20&"""") + [c].[CustomerID]) + (@__j_1&"""")) + (42&"""")) = [c].[CompanyName]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_in_optimization_multiple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE ([c].[City] IN ('London', 'Berlin') OR ([c].[CustomerID] = 'ALFKI')) OR ([c].[CustomerID] = 'ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_multi_level6() : - AssertSql( - @"SELECT ( - SELECT TOP 1 ( - SELECT TOP 1 [od].[ProductID] - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] <> CInt(IIf(IsNull(LEN([c].[CustomerID])),0,LEN([c].[CustomerID])))) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [Order] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_negated_boolean_expression_compared_to_another_negated_boolean_expression() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE IIf( - [p].[ProductID] > 50, - True, - False -) = IIf( - [p].[ProductID] > 20, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_StartsWith_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[ContactName] LIKE [c].[ContactName] + '%' AND (LEFT([c].[ContactName], LEN([c].[ContactName])) = [c].[ContactName])) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OfType_Select() : - AssertSql( - @"SELECT TOP 1 [o#Customer].[City] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_complex_distinct_where() : - AssertSql( - @"SELECT [t].[Property] -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] = 'ALFKIBerlin'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_select_many_or_with_parameter() : - AssertSql( - @"@__lisboa_1='Lisboa' (Nullable = false) (Size = 6) -@__london_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN (@__london_0, 'Berlin', 'Seattle', @__lisboa_1)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.SelectMany_entity_deep() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title], [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title], [e3].[EmployeeID], [e3].[City], [e3].[Country], [e3].[FirstName], [e3].[ReportsTo], [e3].[Title], [e4].[EmployeeID], [e4].[City], [e4].[Country], [e4].[FirstName], [e4].[ReportsTo], [e4].[Title] -FROM [Employees] AS [e1] -, [Employees] AS [e2] -, [Employees] AS [e3] -, [Employees] AS [e4]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_true() : - AssertSql( - @"@__flag_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ((@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_0 <> True) AND ([p].[UnitsInStock] < 20))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_collection_complex_predicate_not_matching_ins1() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ALFKI', 'ABCDE') OR [c].[CustomerID] NOT IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_client_side_negated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_multi_level() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_SelectMany() : - AssertSql( - @"SELECT [c].[ContactName], [t].[OrderID] -FROM [Customers] AS [c] -, ( - SELECT TOP 3 [o].* - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] -WHERE [c].[CustomerID] = [t].[CustomerID] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.IsNullOrEmpty_in_projection() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], IIf( - [c].[Region] IS NULL OR ([c].[Region] = ''), - True, - False -) AS [Value] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_shadow_projection() : - AssertSql( - @"SELECT [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[Title] = 'Sales Representative'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_closure_via_query_cache_nullable_type() : - AssertSql( - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_nested_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0", - // - @"@__city_Nested_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_DefaultIfEmpty_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [o].[OrderID] IS NOT NULL AND ([o].[CustomerID] = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_constant_is_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A'))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Last() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_method_call_nullable_type_reverse_closure_via_query_cache() : - AssertSql( - @"@__city_NullableInt_0='1' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0", - // - @"@__city_NullableInt_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_subquery_closure_via_query_cache() : - AssertSql( - @"@__customerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] = @__customerID_0) AND ([o].[CustomerID] = [c].[CustomerID]))", - // - @"@__customerID_0='ANATR' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] = @__customerID_0) AND ([o].[CustomerID] = [c].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_exp() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (EXP([od].[Discount]) > 1E0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Skip_Take() : - AssertSql( - @"@__p_0='5' -@__p_1='10' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_de_morgan_or_optimizated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) AND ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_bitwise_and() : - AssertSql( - @"SELECT [c].[CustomerID], IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE [e1].[FirstName] = ( - SELECT TOP 1 [e].[FirstName] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_scalar_primitive_after_take() : - AssertSql( - @"@__p_0='9' - -SELECT TOP @__p_0 [e].[EmployeeID] -FROM [Employees] AS [e]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.FirstOrDefault_inside_subquery_gets_server_evaluated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND (( - SELECT TOP 1 [o].[CustomerID] - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] = 'ALFKI') AND ([c].[CustomerID] = [o].[CustomerID]) -) = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_orderby_select_many() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_coalesce() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])),0,IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])))) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bitwise_and_with_logical_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True) OR ([c].[CustomerID] = 'ANTON')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.IsNullOrWhiteSpace_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[Region] IS NULL OR (LTRIM(RTRIM([c].[Region])) = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_array_closure() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI')", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Subquery_is_null_translated_correctly() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ( - SELECT TOP 1 [o].[CustomerID] - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ORDER BY [o].[OrderID] DESC -) IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_division_on_decimal() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull([od].[Quantity] / 2.09),0,[od].[Quantity] / 2.09))) -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_multi_level4() : - AssertSql( - @"SELECT ( - SELECT TOP 1 ( - SELECT COUNT(*) - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] > 10) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [Order] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Handle_materialization_properly_when_more_than_two_query_sources_are_involved() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -, [Orders] AS [o] -, [Employees] AS [e] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Query_expression_with_to_string_and_contains() : - AssertSql( - @"SELECT [o].[CustomerID] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL AND (Instr(Str([o].[EmployeeID]), '10') > 0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_bitwise_or() : - AssertSql( - @"SELECT [c].[CustomerID], IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Take_simple_projection() : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[City] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_static_property_access_closure_via_query_cache() : - AssertSql( - @"@__StaticPropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0", - // - @"@__StaticPropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_subquery_on_bool() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE 'Chai' IN ( - SELECT [p2].[ProductName] - FROM [Products] AS [p2] -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_Where_Subquery_Deep_First() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ( - SELECT TOP 1 ( - SELECT TOP 1 [c].[City] - FROM [Customers] AS [c] - WHERE [o].[CustomerID] = [c].[CustomerID] - ) - FROM [Orders] AS [o] - WHERE [od].[OrderID] = [o].[OrderID] -) = 'Seattle'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_client_deep_inside_predicate_and_server_top_level() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Subquery_is_not_null_translated_correctly() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ( - SELECT TOP 1 [o].[CustomerID] - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ORDER BY [o].[OrderID] DESC -) IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_collection_false() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] NOT IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_parameter_compared_to_binary_expression() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE IIf( - [p].[ProductID] > 50, - True, - False -) <> @__prm_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Last_when_no_order_by() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_distinct_average() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([t].[OrderID]),0,[t].[OrderID]))) -FROM ( - SELECT DISTINCT [o].[OrderID] - FROM [Orders] AS [o] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_anonymous_conditional_expression() : - AssertSql( - @"SELECT [p].[ProductID], IIf( - [p].[UnitsInStock] > 0, - True, - False -) AS [IsAvailable] -FROM [Products] AS [p]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_not_bool_member_compared_to_binary_expression() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] <> IIf( - [p].[ProductID] > 50, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_anonymous_constant_in_expression() : - AssertSql( - @"SELECT [c].[CustomerID], CInt(IIf(IsNull(LEN([c].[CustomerID])),0,LEN([c].[CustomerID]))) + 5 AS [Expression] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_orderby_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [c].[CustomerID] <> 'ALFKI' -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_DTO_with_member_init_distinct_in_subquery_translated_to_server() : - AssertSql( - @"SELECT [t].[Id], [t].[Count], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ( - SELECT DISTINCT [o].[CustomerID] AS [Id], [o].[OrderID] AS [Count] - FROM [Orders] AS [o] - WHERE [o].[OrderID] < 10300 -) AS [t] -, [Customers] AS [c] -WHERE [c].[CustomerID] = [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Selected_column_can_coalesce() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_entity_equality_no_elements_FirstOrDefault() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE ( - SELECT TOP 1 [e2].[EmployeeID] - FROM [Employees] AS [e2] - WHERE [e2].[EmployeeID] = 42 -) = 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_string_length() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE CInt(IIf(IsNull(LEN([c].[City])),0,LEN([c].[City]))) = 6"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_not_in_optimization1() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND (([e].[City] <> 'London') OR [e].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_cos() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (COS([od].[Discount]) > 0E0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_not_in_optimization3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] NOT IN ('London', 'Berlin', 'Seattle')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.SelectMany_simple2() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e2].[FirstName] AS [FirstName0] -FROM [Employees] AS [e1] -, [Customers] AS [c] -, [Employees] AS [e2]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A'))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Count_with_predicate() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupBy_anonymous_with_where() : - AssertSql( - @"SELECT [c].[City], [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[Country] IN ('Argentina', 'Austria', 'Brazil', 'France', 'Germany', 'USA') -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_list_inline_closure_mix() : line_closure_mix() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\QueryJetTest.cs:riga 6242 - AssertSql( - @"@__id_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', @__id_0)", - // - @"@__id_0='ANATR' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', @__id_0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_closure_via_query_cache_nullable_type_reverse() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0", - // - @"@__city_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_select_many_or2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN ('London', 'Berlin')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_null_is_not_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_Where_Count_with_predicate() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -WHERE ([o].[OrderID] > 10) AND (([o].[CustomerID] <> 'ALFKI') OR [o].[CustomerID] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.IsNullOrEmpty_negated_in_projection() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], IIf( - [c].[Region] IS NOT NULL AND ([c].[Region] <> ''), - True, - False -) AS [Value] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OfType_Select_OfType_Select() : - AssertSql( - @"SELECT TOP 1 [o#Customer].[City] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_Where_Subquery_Deep_Single() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[OrderID] = 10344", - // - @"@_outer_OrderID='10344' - -SELECT TOP 2 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE @_outer_OrderID = [o0].[OrderID]", - // - @"@_outer_CustomerID1='WHITC' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID1 = [c2].[CustomerID]", - // - @"@_outer_OrderID='10344' - -SELECT TOP 2 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE @_outer_OrderID = [o0].[OrderID]", - // - @"@_outer_CustomerID1='WHITC' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID1 = [c2].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_nested_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0", - // - @"@__city_Nested_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_and_parameter_compared_to_binary_expression_nested() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = IIf( - IIf( - [p].[ProductID] > 50, - True, - False - ) <> @__prm_0, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_Last() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Contains_MethodCall() : - AssertSql( - @"@__LocalMethod1_0='M' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr([c].[ContactName], @__LocalMethod1_0) > 0) OR (@__LocalMethod1_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_compare_with_parameter() : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_bitwise_and_with_logical_and() : - AssertSql( - @"SELECT [c].[CustomerID], IIf( - ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False - ) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False - )) = True) AND ([c].[CustomerID] = 'ANTON'), - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_complex_distinct_where() : - AssertSql( - @"SELECT [t].[A] -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [A] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[A] = 'ALFKIBerlin'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_equals_constant() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0", - // - @"@__city_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_binary_expression() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID] * 2),0,[o].[OrderID] * 2))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_on_matched_nullable_int_types() : - AssertSql( - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE @__nullableIntPrm_0 = [e].[ReportsTo]", - // - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__nullableIntPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_OrderBy_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_with_false_as_result_false() : - AssertSql( - @"@__flag_0='False' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Compare_multi_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= 'ALFKI' AND [c].[CustomerID] < 'CACTU'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactTitle] = 'Owner' AND [c].[Country] <> 'USA'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_complex_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] LIKE 'A' + '%' AND (LEFT([t].[Property], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_with_false_as_result_true() : - AssertSql( - @"@__flag_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_new_instance_field_access_closure_via_query_cache() : - AssertSql( - @"@__InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0", - // - @"@__InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_compare_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] IS NULL AND ([c].[Country] = 'UK')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bitwise_and() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Entity_equality_local() : - AssertSql( - @"@__local_0_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__local_0_CustomerID"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Queryable_simple_anonymous_projection_subquery() : - AssertSql( - @"@__p_0='91' - -SELECT TOP @__p_0 [c].[City] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_false() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_comparison_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[Region] = 'ASK', - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_entity_equality_multiple_elements_FirstOrDefault() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE ( - SELECT TOP 1 [e2].[EmployeeID] - FROM [Employees] AS [e2] - WHERE ([e2].[EmployeeID] <> [e1].[ReportsTo]) OR [e1].[ReportsTo] IS NULL -) = 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_using_object_overload_on_mismatched_types() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.SelectMany_simple1() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Employees] AS [e] -, [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_collection_complex_predicate_and() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ALFKI', 'ABCDE') AND [c].[CustomerID] IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Sum_on_float_column() : - AssertSql( - @"SELECT CSng(IIf(IsNull(SUM([od].[Discount])),0,SUM([od].[Discount]))) -FROM [Order Details] AS [od] -WHERE [od].[ProductID] = 1"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_shadow() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_on_mismatched_types_nullable_long_nullable_int() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_StartsWith_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE 'M' + '%' AND (LEFT([c].[ContactName], LEN('M')) = 'M')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_entity_equality_one_element_FirstOrDefault() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE ( - SELECT TOP 1 [e2].[EmployeeID] - FROM [Employees] AS [e2] - WHERE [e2].[EmployeeID] = [e1].[ReportsTo] -) = 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_bitwise_and_or() : - AssertSql( - @"SELECT [c].[CustomerID], (IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) BOR IIf( - [c].[CustomerID] = 'ANTON', - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_false_shadow() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_tan() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (TAN([od].[Discount]) > 0E0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_array_inline() : line() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\QueryJetTest.cs:riga 6212 - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_conditional_operator_where_condition_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - False = True, - 'ZZ', - [c].[City] -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Last_Predicate() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Entity_equality_local_inline() : line() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\QueryJetTest.cs:riga 173 - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ANATR'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_multi_level2() : - AssertSql( - @"SELECT ( - SELECT TOP 1 [o].[OrderDate] - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [OrderDates] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Environment_newline_is_funcletized() : line_is_funcletized() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\QueryJetTest.cs:riga 6638 - AssertSql( - @"@__NewLine_0=' -' (Nullable = false) (Size = 2) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr([c].[CustomerID], @__NewLine_0) > 0) OR (@__NewLine_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Compare_simple_one() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.LastOrDefault_Predicate() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_complex_negated_expression_optimized() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[Discontinued] = False) AND ([p].[ProductID] < 60)) AND ([p].[ProductID] > 30)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_list_closure() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_additional_from_clause(Boolean useString) : - AssertSql( - @"@__p_0='5' - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -, [Customers] AS [c2] -ORDER BY [c2].[CustomerID]", - // - @"@__p_0='5' - -SELECT [c2#Orders].[OrderID], [c2#Orders].[CustomerID], [c2#Orders].[EmployeeID], [c2#Orders].[OrderDate] -FROM [Orders] AS [c2#Orders] -INNER JOIN ( - SELECT DISTINCT [c20].[CustomerID] - FROM ( - SELECT TOP @__p_0 [c0].* - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] - ) AS [t0] - , [Customers] AS [c20] -) AS [t1] ON [c2#Orders].[CustomerID] = [t1].[CustomerID] -ORDER BY [t1].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_correlated_filtered_collection_works_with_caching() : - AssertSql( - @"SELECT [t].[GearNickName] -FROM [CogTag] AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_additional_from_clause(Boolean useString) : - AssertSql( - @"@__p_0='5' - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -, [Customers] AS [c2] -ORDER BY [c2].[CustomerID]", - // - @"@__p_0='5' - -SELECT [c2#Orders].[OrderID], [c2#Orders].[CustomerID], [c2#Orders].[EmployeeID], [c2#Orders].[OrderDate] -FROM [Orders] AS [c2#Orders] -INNER JOIN ( - SELECT DISTINCT [c20].[CustomerID] - FROM ( - SELECT TOP @__p_0 [c0].* - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] - ) AS [t0] - , [Customers] AS [c20] -) AS [t1] ON [c2#Orders].[CustomerID] = [t1].[CustomerID] -ORDER BY [t1].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Compare_simple_zero() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Include_on_GroupJoin_SelectMany_DefaultIfEmpty_with_inheritance_and_coalesce_result() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank], [t].[Nickname], [t].[SquadId], [t].[AssignedCityName], [t].[CityOrBirthName], [t].[Discriminator], [t].[FullName], [t].[HasSoulPatch], [t].[LeaderNickname], [t].[LeaderSquadId], [t].[Rank] -FROM [Gear] AS [g] -LEFT JOIN ( - SELECT [g2].* - FROM [Gear] AS [g2] - WHERE [g2].[Discriminator] = 'Officer' -) AS [t] ON [g].[LeaderNickname] = [t].[Nickname] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') -ORDER BY [t].[FullName], [g].[FullName]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_ternary_operation_with_has_value_not_null() : - AssertSql( - @"SELECT [w].[Id], IIf( - [w].[AmmunitionType] IS NOT NULL AND ([w].[AmmunitionType] = 1), - 'Yes', - 'No' -) AS [IsCartidge] -FROM [Weapon] AS [w] -WHERE [w].[AmmunitionType] IS NOT NULL AND ([w].[AmmunitionType] = 1)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_Where_Count_with_predicate_client_eval_mixed() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] <> 'ALFKI') OR [o].[CustomerID] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_method_call_closure_via_query_cache() : - AssertSql( - @"@__GetCity_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0", - // - @"@__GetCity_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Include_on_GroupJoin_SelectMany_DefaultIfEmpty_with_complex_projection_result() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank], [t].[Nickname], [t].[SquadId], [t].[AssignedCityName], [t].[CityOrBirthName], [t].[Discriminator], [t].[FullName], [t].[HasSoulPatch], [t].[LeaderNickname], [t].[LeaderSquadId], [t].[Rank] -FROM [Gear] AS [g] -LEFT JOIN ( - SELECT [g2].* - FROM [Gear] AS [g2] - WHERE [g2].[Discriminator] IN ('Officer', 'Gear') -) AS [t] ON [g].[LeaderNickname] = [t].[Nickname] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') -ORDER BY [g].[FullName], [t].[FullName]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Sum_with_optional_navigation_is_translated_to_sql() : - AssertSql( - @"SELECT SUM([g].[SquadId]) -FROM [Gear] AS [g] -LEFT JOIN [CogTag] AS [g#Tag] ON ([g].[Nickname] = [g#Tag].[GearNickName]) AND ([g].[SquadId] = [g#Tag].[GearSquadId]) -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g#Tag].[Note] <> 'Foo') OR [g#Tag].[Note] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_bitwise_or_multiple() : - AssertSql( - @"SELECT [c].[CustomerID], (IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) BOR IIf( - [c].[CustomerID] = 'ANTON', - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_StartsWith_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[ContactName] LIKE [c].[ContactName] + '%' AND (LEFT([c].[ContactName], LEN([c].[ContactName])) = [c].[ContactName])) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Where_bitwise_and_nullable_enum_with_null_constant() : - AssertSql( - @"SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE ([w].[AmmunitionType] BAND NULL) > 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_client_and_server_top_level() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> 'AROUT'"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Entity_equality_empty() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND ([g].[Nickname] IS NULL AND ([g].[SquadId] = 0))"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_query_all_birds() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_select_many() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_StartsWith_MethodCall() : - AssertSql( - @"@__LocalMethod1_0='M' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[ContactName] LIKE @__LocalMethod1_0 + '%' AND (LEFT([c].[ContactName], LEN(@__LocalMethod1_0)) = @__LocalMethod1_0)) OR (@__LocalMethod1_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_bird_predicate() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[CountryId] = 1) -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition4() : - AssertSql( - @"@__p_0='2' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t]", - // - @"SELECT 1 -FROM [Customers] AS [c0] -ORDER BY [c0].[CustomerID]", - // - @"SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2]", - // - @"SELECT 1 -FROM [Customers] AS [c0] -ORDER BY [c0].[CustomerID]", - // - @"SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Discriminator_used_when_projection_over_derived_type2() : - AssertSql( - @"SELECT [b].[IsFlightless], [b].[Discriminator] -FROM [Animal] AS [b] -WHERE [b].[Discriminator] IN ('Kiwi', 'Eagle')"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Navigation_fk_based_inside_contains() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] IN ('ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_Where_OrderBy() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE ([o].[CustomerID] = 'ALFKI') OR ([c].[CustomerID] = 'ANATR') -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_alias_generation(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate] -FROM [Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_select_many_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE ([c].[City] = 'London') OR ([e].[City] = 'London')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Take_Distinct_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT DISTINCT [t].* - FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - ) AS [t] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bitwise_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_join_clause_with_order_by_and_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - INNER JOIN [Orders] AS [o0] ON [c0].[CustomerID] = [o0].[CustomerID] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_join_clause_with_order_by_and_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - INNER JOIN [Orders] AS [o0] ON [c0].[CustomerID] = [o0].[CustomerID] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bitwise_or_with_logical_and() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True) AND ([c].[Country] = 'Germany')"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_project_filter2() : - AssertSql( - @"SELECT [c].[City] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Lifting_when_subquery_nested_order_by_simple() : - AssertSql( - @"@__p_0='2' - -SELECT [t0].[CustomerID] -FROM ( - SELECT DISTINCT [t].[CustomerID] - FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] - ) AS [t] - , [Customers] AS [c2] -) AS [t0]", - // - @"SELECT [c1_Orders].[OrderID], [c1_Orders].[CustomerID], [c1_Orders].[EmployeeID], [c1_Orders].[OrderDate] -FROM [Orders] AS [c1_Orders]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Compiled_query() : - AssertSql( - @"@__customerID='BERGS' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__customerID", - // - @"@__customerID='BLAUS' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__customerID"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_dependent_already_tracked(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_collection_complex_predicate_not_matching_ins2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI') AND [c].[CustomerID] NOT IN ('ALFKI', 'ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_dependent_already_tracked(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Equals_Navigation() : - AssertSql( - @"SELECT [o1].[OrderID], [o1].[CustomerID], [o1].[EmployeeID], [o1].[OrderDate], [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM [Orders] AS [o1] -, [Orders] AS [o2] -WHERE ([o1].[CustomerID] = [o2].[CustomerID]) OR ([o1].[CustomerID] IS NULL AND [o2].[CustomerID] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_where_nav_prop_all() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([c].[CustomerID] = [o].[CustomerID]) AND (([o].[CustomerID] <> 'ALFKI') OR [o].[CustomerID] IS NULL))"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.GroupBy_on_nav_prop() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[City] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -ORDER BY [o#Customer].[City]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Include_query_opt_out() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_then_include_collection(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID], [c#Orders].[OrderID]", - // - @"SELECT [c#Orders#OrderDetails].[OrderID], [c#Orders#OrderDetails].[ProductID], [c#Orders#OrderDetails].[Discount], [c#Orders#OrderDetails].[Quantity], [c#Orders#OrderDetails].[UnitPrice] -FROM [Order Details] AS [c#Orders#OrderDetails] -INNER JOIN ( - SELECT DISTINCT [c#Orders0].[OrderID], [t0].[CustomerID] - FROM [Orders] AS [c#Orders0] - INNER JOIN ( - SELECT [c1].[CustomerID] - FROM [Customers] AS [c1] - ) AS [t0] ON [c#Orders0].[CustomerID] = [t0].[CustomerID] -) AS [t1] ON [c#Orders#OrderDetails].[OrderID] = [t1].[OrderID] -ORDER BY [t1].[CustomerID], [t1].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Join_with_nav_projected_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM [Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID]", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM [Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_then_include_collection(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID], [c#Orders].[OrderID]", - // - @"SELECT [c#Orders#OrderDetails].[OrderID], [c#Orders#OrderDetails].[ProductID], [c#Orders#OrderDetails].[Discount], [c#Orders#OrderDetails].[Quantity], [c#Orders#OrderDetails].[UnitPrice] -FROM [Order Details] AS [c#Orders#OrderDetails] -INNER JOIN ( - SELECT DISTINCT [c#Orders0].[OrderID], [t0].[CustomerID] - FROM [Orders] AS [c#Orders0] - INNER JOIN ( - SELECT [c1].[CustomerID] - FROM [Customers] AS [c1] - ) AS [t0] ON [c#Orders0].[CustomerID] = [t0].[CustomerID] -) AS [t1] ON [c#Orders#OrderDetails].[OrderID] = [t1].[OrderID] -ORDER BY [t1].[CustomerID], [t1].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_static_field_access_closure_via_query_cache() : - AssertSql( - @"@__StaticFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0", - // - @"@__StaticFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A')) AND (([c].[City] <> 'London') OR [c].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_subquery_involving_join_binds_to_correct_table() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] > 11000) AND [o].[OrderID] IN ( - SELECT [od].[OrderID] - FROM [Order Details] AS [od] - INNER JOIN [Products] AS [od#Product] ON [od].[ProductID] = [od#Product].[ProductID] - WHERE [od#Product].[ProductName] = 'Chai' -)"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_take_no_order_by(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A'))"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Singleton_Navigation_With_Member_Access() : - AssertSql( - @"SELECT [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City] AS [B], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE ([o#Customer].[City] = 'Seattle') AND (([o#Customer].[Phone] <> '555 555 5555') OR [o#Customer].[Phone] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_filter_reordered(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_bird_first() : - AssertSql( - @"SELECT TOP 1 [b].[Species], [b].[CountryId], [b].[Discriminator], [b].[Name], [b].[EagleId], [b].[IsFlightless], [b].[Group], [b].[FoundOn] -FROM [Animal] AS [b] -WHERE [b].[Discriminator] IN ('Kiwi', 'Eagle') AND ([b].[CountryId] = 1) -ORDER BY [b].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_is_kiwi_in_projection() : - AssertSql( - @"SELECT IIf( - [a].[Discriminator] = 'Kiwi', - True, - False -) -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[CountryId] = 1)"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_bird_with_projection() : - AssertSql( - @"SELECT [b].[EagleId] -FROM [Animal] AS [b] -WHERE [b].[Discriminator] IN ('Kiwi', 'Eagle') AND ([b].[CountryId] = 1)"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_is_kiwi() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE ([a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[CountryId] = 1)) AND ([a].[Discriminator] = 'Kiwi')"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_bird_predicate() : - AssertSql( - @"SELECT [b].[Species], [b].[CountryId], [b].[Discriminator], [b].[Name], [b].[EagleId], [b].[IsFlightless], [b].[Group], [b].[FoundOn] -FROM [Animal] AS [b] -WHERE ([b].[Discriminator] IN ('Kiwi', 'Eagle') AND ([b].[CountryId] = 1)) AND ([b].[CountryId] = 1) -ORDER BY [b].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_animal() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[CountryId] = 1) -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_select_many() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -, [Employees] AS [e]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_in_complex_predicate() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[ProductID] > 100) AND ([p].[Discontinued] = True)) OR ([p].[Discontinued] = True)"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Project_single_entity_value_subquery_works() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A') -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.LastOrDefault() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_take_max() : - AssertSql( - @"@__p_0='10' - -SELECT MAX([t].[OrderID]) -FROM ( - SELECT TOP @__p_0 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_list_inline() : line() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\QueryJetTest.cs:riga 6232 - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_principal_already_tracked_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_principal_already_tracked_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Join_with_nav_in_predicate_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM [Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID]", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM [Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_closure_constant() : - AssertSql( - @"@__predicate_0='True' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE @__predicate_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_customers_orders_with_subquery_anonymous_property_method_with_take() : - AssertSql( - @"@__p_0='5' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT TOP @__p_0 [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] - FROM [Orders] AS [o2] - ORDER BY [o2].[OrderID] -) AS [t]", - // - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Take_simple() : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_select_nav_prop_first_or_default() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BERGS' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BLAUS' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BLONP' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BOLID' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_select_nav_prop_all_client() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='BERGS' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='BLAUS' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='BLONP' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='BOLID' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Null_Deep() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -LEFT JOIN [Employees] AS [e#Manager] ON [e].[ReportsTo] = [e#Manager].[EmployeeID] -WHERE [e#Manager].[ReportsTo] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_conditional_order_by(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[CustomerID] LIKE 'S' + '%' AND (LEFT([c].[CustomerID], LEN('S')) = 'S'), - 1, - 2 -), [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], IIf( - [c0].[CustomerID] LIKE 'S' + '%' AND (LEFT([c0].[CustomerID], LEN('S')) = 'S'), - 1, - 2 - ) AS [c] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[c], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_negated_twice() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_entity_equality_one_element_SingleOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_math_round_int() : - AssertSql( - @"SELECT ROUND(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID])), 0) AS [A] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10250"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_count_using_DTO() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], ( - SELECT COUNT(*) - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] -) AS [Count] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_as_no_tracking2(Boolean useString) : - AssertSql( - @"@__p_0='5' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@__p_0='5' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Take_OrderBy_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_EndsWith_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (RIGHT([c].[ContactName], LEN([c].[ContactName])) = [c].[ContactName]) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Substring_with_client_eval() : - AssertSql( - @"SELECT TOP 1 [c].[ContactName] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_with_skip(Boolean useString) : - AssertSql( - @"@__p_0='80' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName], [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_with_skip(Boolean useString) : - AssertSql( - @"@__p_0='80' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName], [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_additional_from_clause2(Boolean useString) : - AssertSql( - @"@__p_0='5' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -, [Customers] AS [c2]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Projection_null_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[CompanyName], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_parameter() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE @__prm_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Null_conditional_deep() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE CInt(IIf(IsNull(LEN([c].[CustomerID])),0,LEN([c].[CustomerID]))) = 5"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_not_in_optimization4() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] NOT IN ('London', 'Berlin', 'Seattle', 'Lisboa')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_concat_with_navigation1() : - AssertSql( - @"SELECT ([o].[CustomerID] + ' ') + [o#Customer].[City] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_member_distinct_where() : - AssertSql( - @"SELECT [t].[Property] -FROM ( - SELECT DISTINCT [c].[CustomerID] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multi_level_reference_and_collection_predicate(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE [o].[OrderID] = 10248 -ORDER BY [o#Customer].[CustomerID]", - // - @"SELECT [o#Customer#Orders].[OrderID], [o#Customer#Orders].[CustomerID], [o#Customer#Orders].[EmployeeID], [o#Customer#Orders].[OrderDate] -FROM [Orders] AS [o#Customer#Orders] -INNER JOIN ( - SELECT DISTINCT [t].* - FROM ( - SELECT TOP 1 [o#Customer0].[CustomerID] - FROM [Orders] AS [o0] - LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID] - WHERE [o0].[OrderID] = 10248 - ORDER BY [o#Customer0].[CustomerID] - ) AS [t] -) AS [t0] ON [o#Customer#Orders].[CustomerID] = [t0].[CustomerID] -ORDER BY [t0].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multi_level_reference_and_collection_predicate(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -WHERE [o].[OrderID] = 10248 -ORDER BY [o#Customer].[CustomerID]", - // - @"SELECT [o#Customer#Orders].[OrderID], [o#Customer#Orders].[CustomerID], [o#Customer#Orders].[EmployeeID], [o#Customer#Orders].[OrderDate] -FROM [Orders] AS [o#Customer#Orders] -INNER JOIN ( - SELECT DISTINCT [t].* - FROM ( - SELECT TOP 1 [o#Customer0].[CustomerID] - FROM [Orders] AS [o0] - LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID] - WHERE [o0].[OrderID] = 10248 - ORDER BY [o#Customer0].[CustomerID] - ) AS [t] -) AS [t0] ON [o#Customer#Orders].[CustomerID] = [t0].[CustomerID] -ORDER BY [t0].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Sum_on_float_column_in_subquery() : - AssertSql( - @"SELECT [o].[OrderID], ( - SELECT CSng(IIf(IsNull(SUM([od].[Discount])),0,SUM([od].[Discount]))) - FROM [Order Details] AS [od] - WHERE [o].[OrderID] = [od].[OrderID] -) AS [Sum] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10300"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_orderBy_take_count() : - AssertSql( - @"@__p_0='7' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[Country] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_multi_level3() : - AssertSql( - @"SELECT ( - SELECT TOP 1 [o].[OrderDate] - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [OrderDates] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key_with_take(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactTitle], [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID], [c0].[ContactTitle] - FROM [Customers] AS [c0] - ORDER BY [c0].[ContactTitle], [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[ContactTitle], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key_with_take(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactTitle], [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID], [c0].[ContactTitle] - FROM [Customers] AS [c0] - ORDER BY [c0].[ContactTitle], [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[ContactTitle], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_last(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CompanyName] DESC, [c].[CustomerID] DESC", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID], [c0].[CompanyName] - FROM [Customers] AS [c0] - ORDER BY [c0].[CompanyName] DESC, [c0].[CustomerID] DESC -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CompanyName] DESC, [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_Where_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_with_take(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[City] DESC, [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - ORDER BY [c0].[City] DESC, [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[City] DESC, [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_false() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_where_skip_take_projection(Boolean useString) : - AssertSql( - @"@__p_0='1' -@__p_1='2' - -SELECT TOP @__p_1+@__p_0 [od#Order].[CustomerID] -FROM [Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID] -WHERE [od].[Quantity] = 10 -ORDER BY [od].[OrderID], [od].[ProductID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_where_skip_take_projection(Boolean useString) : - AssertSql( - @"@__p_0='1' -@__p_1='2' - -SELECT TOP @__p_1+@__p_0 [od#Order].[CustomerID] -FROM [Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID] -WHERE [od].[Quantity] = 10 -ORDER BY [od].[OrderID], [od].[ProductID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_member_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] LIKE 'A' + '%' AND (LEFT([t].[Property], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_additional_from_clause_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c1] -, [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM [Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID] - FROM [Customers] AS [c10] - , [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_using_int_overload_on_mismatched_types() : - AssertSql( - @"@__shortPrm_0='1' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] = @__shortPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_EndsWith_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (RIGHT([c].[ContactName], LEN([c].[ContactName])) = [c].[ContactName]) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_de_morgan_and_optimizated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) OR ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Local_array() : - AssertSql( - @"@__get_Item_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_Customers_Orders_Skip_Take() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT TOP @__p_1+@__p_0 [c].[ContactName], [o].[OrderID] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -ORDER BY [o].[OrderID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_expression_long_to_string() : - AssertSql( - @"SELECT Str([o].[OrderID]) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_no_arg() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Distinct_Take() : - AssertSql( - @"@__p_0='5' - -SELECT TOP @__p_0 [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT DISTINCT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] -) AS [t] -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_collection_sql_injection() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ALFKI', 'ABC'')); GO; DROP TABLE Orders; GO; --', 'ALFKI', 'ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A')) AND (([c].[City] <> 'London') OR [c].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.SelectMany_projection1() : - AssertSql( - @"SELECT [e1].[City], [e2].[Country] -FROM [Employees] AS [e1] -, [Employees] AS [e2]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_EndsWith_MethodCall() : - AssertSql( - @"@__LocalMethod2_0='m' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (RIGHT([c].[ContactName], LEN(@__LocalMethod2_0)) = @__LocalMethod2_0) OR (@__LocalMethod2_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_closure_via_query_cache() : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0", - // - @"@__city_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_expression_invoke() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition2_FirstOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t] -WHERE [t].[FirstName] = ( - SELECT TOP 1 [e0].[FirstName] - FROM [Employees] AS [e0] - ORDER BY [e0].[EmployeeID] -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_member_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[CustomerID] LIKE 'A' + '%' AND (LEFT([t].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_Customers_Orders_Projection_With_String_Concat_Skip_Take() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT TOP @__p_1+@__p_0 ([c].[ContactName] + ' ') + [c].[ContactTitle] AS [Contact], [o].[OrderID] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -ORDER BY [o].[OrderID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_select_many_or3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN ('London', 'Berlin', 'Seattle')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_compared_to_binary_expression() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = IIf( - [p].[ProductID] > 50, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Null_conditional_simple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_comparison_to_nullable_bool() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE RIGHT([c].[CustomerID], LEN('KI')) = 'KI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bitwise_or_with_logical_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True) OR ([c].[CustomerID] = 'ANTON')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_subquery_and_local_array_closure() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [c1] - WHERE [c1].[City] IN ('London', 'Buenos Aires') AND ([c1].[CustomerID] = [c].[CustomerID]))", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [c1] - WHERE [c1].[City] IN ('London') AND ([c1].[CustomerID] = [c].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Lifting_when_subquery_nested_order_by_anonymous() : - AssertSql( - @"@__p_0='2' - -SELECT [c1_Orders].[OrderID], [c1_Orders].[CustomerID], [c1_Orders].[EmployeeID], [c1_Orders].[OrderDate], [t0].[CustomerID] -FROM [Orders] AS [c1_Orders] -INNER JOIN ( - SELECT DISTINCT [t].[CustomerID] - FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] - ) AS [t] - , [Customers] AS [c2] -) AS [t0] ON [c1_Orders].[CustomerID] = [t0].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Distinct_Take_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT DISTINCT TOP @__p_0 [o].* - FROM [Orders] AS [o] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_many_cross_join_same_collection() : - AssertSql( - @"SELECT [c0].[CustomerID], [c0].[Address], [c0].[City], [c0].[CompanyName], [c0].[ContactName], [c0].[ContactTitle], [c0].[Country], [c0].[Fax], [c0].[Phone], [c0].[PostalCode], [c0].[Region] -FROM [Customers] AS [c] -, [Customers] AS [c0]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_arg() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_bitwise_or_with_logical_or() : - AssertSql( - @"SELECT [c].[CustomerID], IIf( - ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False - ) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False - )) = True) OR ([c].[CustomerID] = 'ANTON'), - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_LastOrDefault() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Contains_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Instr([c].[ContactName], 'M') > 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_on_mismatched_types_nullable_int_long() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_false() : - AssertSql( - @"@__flag_0='False' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ((@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_0 <> True) AND ([p].[UnitsInStock] < 20))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_division_on_decimal_no_significant_digits() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull([od].[Quantity] / 2.0),0,[od].[Quantity] / 2.0))) -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_concat_string_int_comparison1() : - AssertSql( - @"@__i_0='10' - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] + (@__i_0&"""")) = [c].[CompanyName]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Single_Predicate() : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Take_simple_parameterized() : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_collection_complex_predicate_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI', 'ALFKI', 'ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_select_many_and() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE (([c].[City] = 'London') AND ([c].[Country] = 'UK')) AND (([e].[City] = 'London') AND ([e].[Country] = 'UK'))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_with_multiple_conditions_still_uses_exists() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[City] = 'London') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[EmployeeID] = 1) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_on_float_column_in_subquery() : - AssertSql( - @"SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10300", - // - @"@_outer_OrderID='10248' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10249' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10250' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10251' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10252' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10253' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10254' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10255' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_expression_other_to_string() : - AssertSql( - @"SELECT Str([o].[OrderDate]) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_on_float_column() : - AssertSql( - @"SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od].[Discount]),0,[od].[Discount])))),0,AVG(CSng(IIf(IsNull([od].[Discount]),0,[od].[Discount]))))) -FROM [Order Details] AS [od] -WHERE [od].[ProductID] = 1"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_sin() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (SIN([od].[Discount]) > 0E0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_concat_string_int_comparison2() : - AssertSql( - @"@__i_0='10' - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE ((@__i_0&"""") + [c].[CustomerID]) = [c].[CompanyName]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_skip_take() : - AssertSql( - @"@__p_0='5' -@__p_1='8' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactTitle], [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_concat_string_int_comparison3() : - AssertSql( - @"@__j_1='21' -@__i_0='10' - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE ((((@__i_0 + 20&"""") + [c].[CustomerID]) + (@__j_1&"""")) + (42&"""")) = [c].[CompanyName]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_in_optimization_multiple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE ([c].[City] IN ('London', 'Berlin') OR ([c].[CustomerID] = 'ALFKI')) OR ([c].[CustomerID] = 'ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_simple_subquery() : - AssertSql( - @"@__p_0='4' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM [Customers] AS [c] -INNER JOIN ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] ON [c].[CustomerID] = [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_multi_level6() : - AssertSql( - @"SELECT ( - SELECT TOP 1 ( - SELECT TOP 1 [od].[ProductID] - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] <> CInt(IIf(IsNull(LEN([c].[CustomerID])),0,LEN([c].[CustomerID])))) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [Order] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_negated_boolean_expression_compared_to_another_negated_boolean_expression() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE IIf( - [p].[ProductID] > 50, - True, - False -) = IIf( - [p].[ProductID] > 20, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_StartsWith_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[ContactName] LIKE [c].[ContactName] + '%' AND (LEFT([c].[ContactName], LEN([c].[ContactName])) = [c].[ContactName])) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OfType_Select() : - AssertSql( - @"SELECT TOP 1 [o#Customer].[City] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_complex_distinct_where() : - AssertSql( - @"SELECT [t].[Property] -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] = 'ALFKIBerlin'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_select_many_or_with_parameter() : - AssertSql( - @"@__lisboa_1='Lisboa' (Nullable = false) (Size = 6) -@__london_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN (@__london_0, 'Berlin', 'Seattle', @__lisboa_1)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_is_not_null() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM [Employees] AS [e2] -WHERE [e2].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM [Employees] AS [e2] -WHERE [e2].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM [Employees] AS [e2] -WHERE [e2].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.SelectMany_entity_deep() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title], [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title], [e3].[EmployeeID], [e3].[City], [e3].[Country], [e3].[FirstName], [e3].[ReportsTo], [e3].[Title], [e4].[EmployeeID], [e4].[City], [e4].[Country], [e4].[FirstName], [e4].[ReportsTo], [e4].[Title] -FROM [Employees] AS [e1] -, [Employees] AS [e2] -, [Employees] AS [e3] -, [Employees] AS [e4]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_customers_orders_with_subquery_with_take() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[ContactName], [t].[OrderID] -FROM [Customers] AS [c] -INNER JOIN ( - SELECT TOP @__p_0 [o2].* - FROM [Orders] AS [o2] - ORDER BY [o2].[OrderID] -) AS [t] ON [c].[CustomerID] = [t].[CustomerID] -WHERE [t].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_true() : - AssertSql( - @"@__flag_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ((@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_0 <> True) AND ([p].[UnitsInStock] < 20))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_collection_complex_predicate_not_matching_ins1() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ALFKI', 'ABCDE') OR [c].[CustomerID] NOT IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_client_side_negated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Take_Where_Distinct_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT DISTINCT [t].* - FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - WHERE [o].[CustomerID] = 'FRANK' - ) AS [t] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_multi_level() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_correlated_subquery_projection() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[CustomerID] -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] -) AS [t] -ORDER BY [t].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_coalesce_take_distinct() : - AssertSql( - @"@__p_0='15' - -SELECT DISTINCT [t].* -FROM ( - SELECT TOP @__p_0 [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] - FROM [Products] AS [p] - ORDER BY IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice]) -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_SelectMany() : - AssertSql( - @"SELECT [c].[ContactName], [t].[OrderID] -FROM [Customers] AS [c] -, ( - SELECT TOP 3 [o].* - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] -WHERE [c].[CustomerID] = [t].[CustomerID] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.IsNullOrEmpty_in_projection() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], IIf( - [c].[Region] IS NULL OR ([c].[Region] = ''), - True, - False -) AS [Value] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_shadow_projection() : - AssertSql( - @"SELECT [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[Title] = 'Sales Representative'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_closure_via_query_cache_nullable_type() : - AssertSql( - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_nested_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0", - // - @"@__city_Nested_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_DefaultIfEmpty_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [o].[OrderID] IS NOT NULL AND ([o].[CustomerID] = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_constant_is_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A'))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Last() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_method_call_nullable_type_reverse_closure_via_query_cache() : - AssertSql( - @"@__city_NullableInt_0='1' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0", - // - @"@__city_NullableInt_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_take_average() : - AssertSql( - @"@__p_0='10' - -SELECT AVG(CDbl(IIf(IsNull([t].[OrderID]),0,[t].[OrderID]))) -FROM ( - SELECT TOP @__p_0 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_subquery_closure_via_query_cache() : - AssertSql( - @"@__customerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] = @__customerID_0) AND ([o].[CustomerID] = [c].[CustomerID]))", - // - @"@__customerID_0='ANATR' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] = @__customerID_0) AND ([o].[CustomerID] = [c].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_exp() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (EXP([od].[Discount]) > 1E0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Skip_Take() : - AssertSql( - @"@__p_0='5' -@__p_1='10' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_de_morgan_or_optimizated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) AND ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_bitwise_and() : - AssertSql( - @"SELECT [c].[CustomerID], IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE [e1].[FirstName] = ( - SELECT TOP 1 [e].[FirstName] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_scalar_primitive_after_take() : - AssertSql( - @"@__p_0='9' - -SELECT TOP @__p_0 [e].[EmployeeID] -FROM [Employees] AS [e]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.FirstOrDefault_inside_subquery_gets_server_evaluated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND (( - SELECT TOP 1 [o].[CustomerID] - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] = 'ALFKI') AND ([c].[CustomerID] = [o].[CustomerID]) -) = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_orderby_select_many() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_coalesce() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])),0,IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])))) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bitwise_and_with_logical_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True) OR ([c].[CustomerID] = 'ANTON')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.IsNullOrWhiteSpace_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[Region] IS NULL OR (LTRIM(RTRIM([c].[Region])) = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_array_closure() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI')", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Subquery_is_null_translated_correctly() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ( - SELECT TOP 1 [o].[CustomerID] - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ORDER BY [o].[OrderID] DESC -) IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_division_on_decimal() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull([od].[Quantity] / 2.09),0,[od].[Quantity] / 2.09))) -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_multi_level4() : - AssertSql( - @"SELECT ( - SELECT TOP 1 ( - SELECT COUNT(*) - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] > 10) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [Order] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Handle_materialization_properly_when_more_than_two_query_sources_are_involved() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -, [Orders] AS [o] -, [Employees] AS [e] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Query_expression_with_to_string_and_contains() : - AssertSql( - @"SELECT [o].[CustomerID] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL AND (Instr(Str([o].[EmployeeID]), '10') > 0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_bitwise_or() : - AssertSql( - @"SELECT [c].[CustomerID], IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Take_simple_projection() : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[City] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_static_property_access_closure_via_query_cache() : - AssertSql( - @"@__StaticPropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0", - // - @"@__StaticPropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_subquery_on_bool() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE 'Chai' IN ( - SELECT [p2].[ProductName] - FROM [Products] AS [p2] -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_Where_Subquery_Deep_First() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ( - SELECT TOP 1 ( - SELECT TOP 1 [c].[City] - FROM [Customers] AS [c] - WHERE [o].[CustomerID] = [c].[CustomerID] - ) - FROM [Orders] AS [o] - WHERE [od].[OrderID] = [o].[OrderID] -) = 'Seattle'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_DefaultIfEmpty3() : - AssertSql( - @"@__p_0='1' - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -LEFT JOIN [Orders] AS [o] ON [t].[CustomerID] = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_client_deep_inside_predicate_and_server_top_level() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Subquery_is_not_null_translated_correctly() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ( - SELECT TOP 1 [o].[CustomerID] - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ORDER BY [o].[OrderID] DESC -) IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_customers_orders_with_subquery_predicate_with_take() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[ContactName], [t].[OrderID] -FROM [Customers] AS [c] -INNER JOIN ( - SELECT TOP @__p_0 [o2].* - FROM [Orders] AS [o2] - WHERE [o2].[OrderID] > 0 - ORDER BY [o2].[OrderID] -) AS [t] ON [c].[CustomerID] = [t].[CustomerID] -WHERE [t].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_collection_false() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] NOT IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_parameter_compared_to_binary_expression() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE IIf( - [p].[ProductID] > 50, - True, - False -) <> @__prm_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Last_when_no_order_by() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_subquery_anon_nested() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title], [t0].[OrderID], [t0].[CustomerID], [t0].[EmployeeID], [t0].[OrderDate], [t1].[CustomerID], [t1].[Address], [t1].[City], [t1].[CompanyName], [t1].[ContactName], [t1].[ContactTitle], [t1].[Country], [t1].[Fax], [t1].[Phone], [t1].[PostalCode], [t1].[Region] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t] -, ( - SELECT TOP 5 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] -) AS [t0] -, ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] -) AS [t1] -WHERE [t].[City] = 'London'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_distinct_average() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([t].[OrderID]),0,[t].[OrderID]))) -FROM ( - SELECT DISTINCT [o].[OrderID] - FROM [Orders] AS [o] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_anonymous_conditional_expression() : - AssertSql( - @"SELECT [p].[ProductID], IIf( - [p].[UnitsInStock] > 0, - True, - False -) AS [IsAvailable] -FROM [Products] AS [p]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_not_bool_member_compared_to_binary_expression() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] <> IIf( - [p].[ProductID] > 50, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_anonymous_constant_in_expression() : - AssertSql( - @"SELECT [c].[CustomerID], CInt(IIf(IsNull(LEN([c].[CustomerID])),0,LEN([c].[CustomerID]))) + 5 AS [Expression] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_orderby_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [c].[CustomerID] <> 'ALFKI' -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_DTO_with_member_init_distinct_in_subquery_translated_to_server() : - AssertSql( - @"SELECT [t].[Id], [t].[Count], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ( - SELECT DISTINCT [o].[CustomerID] AS [Id], [o].[OrderID] AS [Count] - FROM [Orders] AS [o] - WHERE [o].[OrderID] < 10300 -) AS [t] -, [Customers] AS [c] -WHERE [c].[CustomerID] = [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Selected_column_can_coalesce() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_entity_equality_no_elements_FirstOrDefault() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE ( - SELECT TOP 1 [e2].[EmployeeID] - FROM [Employees] AS [e2] - WHERE [e2].[EmployeeID] = 42 -) = 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_string_length() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE CInt(IIf(IsNull(LEN([c].[City])),0,LEN([c].[City]))) = 6"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_not_in_optimization1() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND (([e].[City] <> 'London') OR [e].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_cos() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (COS([od].[Discount]) > 0E0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_not_in_optimization3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] NOT IN ('London', 'Berlin', 'Seattle')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.SelectMany_simple2() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e2].[FirstName] AS [FirstName0] -FROM [Employees] AS [e1] -, [Customers] AS [c] -, [Employees] AS [e2]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A'))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Count_with_predicate() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupBy_anonymous_with_where() : - AssertSql( - @"SELECT [c].[City], [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[Country] IN ('Argentina', 'Austria', 'Brazil', 'France', 'Germany', 'USA') -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_list_inline_closure_mix() : line_closure_mix() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\QueryJetTest.cs:riga 6242 - AssertSql( - @"@__id_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', @__id_0)", - // - @"@__id_0='ANATR' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', @__id_0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_closure_via_query_cache_nullable_type_reverse() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0", - // - @"@__city_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_select_many_or2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN ('London', 'Berlin')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_null_is_not_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_Where_Count_with_predicate() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -WHERE ([o].[OrderID] > 10) AND (([o].[CustomerID] <> 'ALFKI') OR [o].[CustomerID] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.IsNullOrEmpty_negated_in_projection() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], IIf( - [c].[Region] IS NOT NULL AND ([c].[Region] <> ''), - True, - False -) AS [Value] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OfType_Select_OfType_Select() : - AssertSql( - @"SELECT TOP 1 [o#Customer].[City] -FROM [Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID] -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_Where_Subquery_Equality() : - AssertSql( - @"@__p_0='1' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] -) AS [t] -ORDER BY [t].[OrderID]", - // - @"SELECT [t1].[OrderID] -FROM ( - SELECT TOP 2 [od0].* - FROM [Order Details] AS [od0] - ORDER BY [od0].[OrderID] -) AS [t1]", - // - @"@_outer_CustomerID2='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 1 [c3].[Country] -FROM [Customers] AS [c3] -WHERE [c3].[CustomerID] = @_outer_CustomerID2 -ORDER BY [c3].[CustomerID]", - // - @"@_outer_OrderID1='10248' - -SELECT TOP 1 [c4].[Country] -FROM [Orders] AS [o20] -INNER JOIN [Customers] AS [c4] ON [o20].[CustomerID] = [c4].[CustomerID] -WHERE [o20].[OrderID] = @_outer_OrderID1 -ORDER BY [o20].[OrderID], [c4].[CustomerID]", - // - @"@_outer_CustomerID2='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 1 [c3].[Country] -FROM [Customers] AS [c3] -WHERE [c3].[CustomerID] = @_outer_CustomerID2 -ORDER BY [c3].[CustomerID]", - // - @"@_outer_OrderID1='10248' - -SELECT TOP 1 [c4].[Country] -FROM [Orders] AS [o20] -INNER JOIN [Customers] AS [c4] ON [o20].[CustomerID] = [c4].[CustomerID] -WHERE [o20].[OrderID] = @_outer_OrderID1 -ORDER BY [o20].[OrderID], [c4].[CustomerID]", - // - @"@_outer_CustomerID2='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 1 [c3].[Country] -FROM [Customers] AS [c3] -WHERE [c3].[CustomerID] = @_outer_CustomerID2 -ORDER BY [c3].[CustomerID]", - // - @"@_outer_OrderID1='10248' - -SELECT TOP 1 [c4].[Country] -FROM [Orders] AS [o20] -INNER JOIN [Customers] AS [c4] ON [o20].[CustomerID] = [c4].[CustomerID] -WHERE [o20].[OrderID] = @_outer_OrderID1 -ORDER BY [o20].[OrderID], [c4].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition2_FirstOrDefault_with_anonymous() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_Where_Subquery_Deep_Single() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[OrderID] = 10344", - // - @"@_outer_OrderID='10344' - -SELECT TOP 2 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE @_outer_OrderID = [o0].[OrderID]", - // - @"@_outer_CustomerID1='WHITC' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID1 = [c2].[CustomerID]", - // - @"@_outer_OrderID='10344' - -SELECT TOP 2 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE @_outer_OrderID = [o0].[OrderID]", - // - @"@_outer_CustomerID1='WHITC' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID1 = [c2].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_nested_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0", - // - @"@__city_Nested_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_and_parameter_compared_to_binary_expression_nested() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = IIf( - IIf( - [p].[ProductID] > 50, - True, - False - ) <> @__prm_0, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_Last() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Contains_MethodCall() : - AssertSql( - @"@__LocalMethod1_0='M' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr([c].[ContactName], @__LocalMethod1_0) > 0) OR (@__LocalMethod1_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_compare_with_parameter() : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_bitwise_and_with_logical_and() : - AssertSql( - @"SELECT [c].[CustomerID], IIf( - ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False - ) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False - )) = True) AND ([c].[CustomerID] = 'ANTON'), - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_complex_distinct_where() : - AssertSql( - @"SELECT [t].[A] -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [A] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[A] = 'ALFKIBerlin'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_equals_constant() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0", - // - @"@__city_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_binary_expression() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID] * 2),0,[o].[OrderID] * 2))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_on_matched_nullable_int_types() : - AssertSql( - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE @__nullableIntPrm_0 = [e].[ReportsTo]", - // - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__nullableIntPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Take_Distinct() : - AssertSql( - @"@__p_0='5' - -SELECT DISTINCT [t].* -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_OrderBy_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_with_false_as_result_false() : - AssertSql( - @"@__flag_0='False' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Compare_multi_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= 'ALFKI' AND [c].[CustomerID] < 'CACTU'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactTitle] = 'Owner' AND [c].[Country] <> 'USA'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_complex_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] LIKE 'A' + '%' AND (LEFT([t].[Property], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_with_false_as_result_true() : - AssertSql( - @"@__flag_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_new_instance_field_access_closure_via_query_cache() : - AssertSql( - @"@__InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0", - // - @"@__InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_compare_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] IS NULL AND ([c].[Country] = 'UK')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_Take_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bitwise_and() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_take_count() : - AssertSql( - @"@__p_0='7' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_subquery_correlated_client_eval() : - AssertSql( - @"@__p_0='5' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] -) AS [t] -ORDER BY [t].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID = [c2].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID = [c2].[CustomerID]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID = [c2].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID = [c2].[CustomerID]", - // - @"@_outer_CustomerID='BERGS' (Nullable = false) (Size = 5) - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID = [c2].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Entity_equality_local() : - AssertSql( - @"@__local_0_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__local_0_CustomerID"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Queryable_simple_anonymous_projection_subquery() : - AssertSql( - @"@__p_0='91' - -SELECT TOP @__p_0 [c].[City] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_primitive() : - AssertSql( - @"@__p_0='9' - -SELECT [t].[EmployeeID] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID] - FROM [Employees] AS [e] -) AS [t] -WHERE [t].[EmployeeID] = 5"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_false() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_comparison_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[Region] = 'ASK', - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_entity_equality_multiple_elements_FirstOrDefault() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE ( - SELECT TOP 1 [e2].[EmployeeID] - FROM [Employees] AS [e2] - WHERE ([e2].[EmployeeID] <> [e1].[ReportsTo]) OR [e1].[ReportsTo] IS NULL -) = 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_using_object_overload_on_mismatched_types() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.SelectMany_simple1() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Employees] AS [e] -, [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_collection_complex_predicate_and() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ALFKI', 'ABCDE') AND [c].[CustomerID] IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Sum_on_float_column() : - AssertSql( - @"SELECT CSng(IIf(IsNull(SUM([od].[Discount])),0,SUM([od].[Discount]))) -FROM [Order Details] AS [od] -WHERE [od].[ProductID] = 1"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_shadow() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_on_mismatched_types_nullable_long_nullable_int() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.SelectMany_mixed() : - AssertSql( - @"@__p_0='2' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_StartsWith_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE 'M' + '%' AND (LEFT([c].[ContactName], LEN('M')) = 'M')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_entity_equality_one_element_FirstOrDefault() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE ( - SELECT TOP 1 [e2].[EmployeeID] - FROM [Employees] AS [e2] - WHERE [e2].[EmployeeID] = [e1].[ReportsTo] -) = 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_bitwise_and_or() : - AssertSql( - @"SELECT [c].[CustomerID], (IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) BOR IIf( - [c].[CustomerID] = 'ANTON', - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_false_shadow() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_tan() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (TAN([od].[Discount]) > 0E0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_array_inline() : line() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\QueryJetTest.cs:riga 6212 - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_conditional_operator_where_condition_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - False = True, - 'ZZ', - [c].[City] -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Last_Predicate() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Entity_equality_local_inline() : line() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\QueryJetTest.cs:riga 173 - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ANATR'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_multi_level2() : - AssertSql( - @"SELECT ( - SELECT TOP 1 [o].[OrderDate] - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [OrderDates] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Environment_newline_is_funcletized() : line_is_funcletized() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\QueryJetTest.cs:riga 6638 - AssertSql( - @"@__NewLine_0=' -' (Nullable = false) (Size = 2) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr([c].[CustomerID], @__NewLine_0) > 0) OR (@__NewLine_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Compare_simple_one() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_entity_equality_no_elements_SingleOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = 42", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = 42", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = 42"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.LastOrDefault_Predicate() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_complex_negated_expression_optimized() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[Discontinued] = False) AND ([p].[ProductID] < 60)) AND ([p].[ProductID] > 30)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_list_closure() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Subquery_member_pushdown_does_not_change_original_subquery_model() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[CustomerID], [t].[OrderID] -FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]", - // - @"@_outer_CustomerID='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c0].[City] -FROM [Customers] AS [c0] -WHERE [c0].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='TOMSP' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c0].[City] -FROM [Customers] AS [c0] -WHERE [c0].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='HANAR' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c0].[City] -FROM [Customers] AS [c0] -WHERE [c0].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID1='TOMSP' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE [c2].[CustomerID] = @_outer_CustomerID1", - // - @"@_outer_CustomerID1='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE [c2].[CustomerID] = @_outer_CustomerID1", - // - @"@_outer_CustomerID1='HANAR' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE [c2].[CustomerID] = @_outer_CustomerID1"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Compare_simple_zero() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_select_many_or4() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM ([Customers] AS [c]) -, [Employees] AS [e] -WHERE [c].[City] IN ('London', 'Berlin', 'Seattle', 'Lisboa')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_Where_Count_with_predicate_client_eval_mixed() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] <> 'ALFKI') OR [o].[CustomerID] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_method_call_closure_via_query_cache() : - AssertSql( - @"@__GetCity_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0", - // - @"@__GetCity_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_count_using_anonymous_type() : - AssertSql( - @"SELECT ( - SELECT COUNT(*) - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] -) AS [Count] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_bitwise_or_multiple() : - AssertSql( - @"SELECT [c].[CustomerID], (IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) BOR IIf( - [c].[CustomerID] = 'ANTON', - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Let_any_subquery_anonymous() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A') -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Orders] AS [o0] - WHERE [o0].[CustomerID] = @_outer_CustomerID), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Orders] AS [o0] - WHERE [o0].[CustomerID] = @_outer_CustomerID), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Orders] AS [o0] - WHERE [o0].[CustomerID] = @_outer_CustomerID), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Orders] AS [o0] - WHERE [o0].[CustomerID] = @_outer_CustomerID), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_StartsWith_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[ContactName] LIKE [c].[ContactName] + '%' AND (LEFT([c].[ContactName], LEN([c].[ContactName])) = [c].[ContactName])) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_take_long_count() : - AssertSql( - @"@__p_0='7' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_Customers_Orders_Orders_Skip_Take_Same_Properties() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT TOP @__p_1+@__p_0 [o].[OrderID], [ca].[CustomerID] AS [CustomerIDA], [cb].[CustomerID] AS [CustomerIDB], [ca].[ContactName] AS [ContactNameA], [cb].[ContactName] AS [ContactNameB] -FROM (([Orders] AS [o]) -INNER JOIN [Customers] AS [ca] ON [o].[CustomerID] = [ca].[CustomerID]) -INNER JOIN [Customers] AS [cb] ON [o].[CustomerID] = [cb].[CustomerID] -ORDER BY [o].[OrderID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_with_groupby() : - AssertSql( - @"SELECT ( - SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Orders] AS [o0] - WHERE [c].[CustomerID] = [o0].[CustomerID]), - True, - False - ) - FROM (SELECT COUNT(*) FROM MSysAccessStorage) -), [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')", - // - @"@_outer_CustomerID1='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM [Orders] AS [o2] -WHERE @_outer_CustomerID1 = [o2].[CustomerID] -ORDER BY [o2].[OrderID]", - // - @"@_outer_CustomerID1='ANATR' (Nullable = false) (Size = 5) - -SELECT [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM [Orders] AS [o2] -WHERE @_outer_CustomerID1 = [o2].[CustomerID] -ORDER BY [o2].[OrderID]", - // - @"@_outer_CustomerID1='ANTON' (Nullable = false) (Size = 5) - -SELECT [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM [Orders] AS [o2] -WHERE @_outer_CustomerID1 = [o2].[CustomerID] -ORDER BY [o2].[OrderID]", - // - @"@_outer_CustomerID1='AROUT' (Nullable = false) (Size = 5) - -SELECT [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM [Orders] AS [o2] -WHERE @_outer_CustomerID1 = [o2].[CustomerID] -ORDER BY [o2].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_client_and_server_top_level() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> 'AROUT'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_shadow() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[Title] = 'Sales Representative'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_project_filter() : - AssertSql( - @"SELECT [c].[CompanyName] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_select_many() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c]) -, [Orders] AS [o] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_StartsWith_MethodCall() : - AssertSql( - @"@__LocalMethod1_0='M' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[ContactName] LIKE @__LocalMethod1_0 + '%' AND (LEFT([c].[ContactName], LEN(@__LocalMethod1_0)) = @__LocalMethod1_0)) OR (@__LocalMethod1_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.First_inside_subquery_gets_client_evaluated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE ([o0].[CustomerID] = 'ALFKI') AND (@_outer_CustomerID = [o0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_Count_with_predicate() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition4() : - AssertSql( - @"@__p_0='2' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t]", - // - @"SELECT 1 -FROM [Customers] AS [c0] -ORDER BY [c0].[CustomerID]", - // - @"SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2]", - // - @"SELECT 1 -FROM [Customers] AS [c0] -ORDER BY [c0].[CustomerID]", - // - @"SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_method_string() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Filter_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE IIf(IsNull([c].[CompanyName]), [c].[ContactName], [c].[CompanyName]) = 'The Big Cheese'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_customers_orders_entities() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c]) -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_Where_OrderBy() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c]) -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE ([o].[CustomerID] = 'ALFKI') OR ([c].[CustomerID] = 'ANATR') -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_Subquery_Single() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [od].[OrderID] -FROM [Order Details] AS [od] -ORDER BY [od].[ProductID], [od].[OrderID]", - // - @"@_outer_OrderID='10285' - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_OrderID = [o].[OrderID] -ORDER BY [o].[OrderID]", - // - @"@_outer_OrderID='10294' - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_OrderID = [o].[OrderID] -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_select_many_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM ([Customers] AS [c]) -, [Employees] AS [e] -WHERE ([c].[City] = 'London') OR ([e].[City] = 'London')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Take_Distinct_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT DISTINCT [t].* - FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - ) AS [t] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bitwise_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_expression_int_to_string() : - AssertSql( - @"SELECT Str([o].[OrderID]) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_is_null() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM [Employees] AS [e2] -WHERE [e2].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM [Employees] AS [e2] -WHERE [e2].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM [Employees] AS [e2] -WHERE [e2].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_closure() : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bitwise_or_with_logical_and() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True) AND ([c].[Country] = 'Germany')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_project_filter2() : - AssertSql( - @"SELECT [c].[City] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_conditional_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[Region] IS NULL, - 'ZZ', - [c].[Region] -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Lifting_when_subquery_nested_order_by_simple() : - AssertSql( - @"@__p_0='2' - -SELECT [t0].[CustomerID] -FROM ( - SELECT DISTINCT [t].[CustomerID] - FROM (( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] - ) AS [t]) - , [Customers] AS [c2] -) AS [t0]", - // - @"SELECT [c1_Orders].[OrderID], [c1_Orders].[CustomerID], [c1_Orders].[EmployeeID], [c1_Orders].[OrderDate] -FROM [Orders] AS [c1_Orders]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_collection_complex_predicate_not_matching_ins2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI') AND [c].[CustomerID] NOT IN ('ALFKI', 'ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Contains_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr([c].[ContactName], [c].[ContactName]) > 0) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_member_distinct_where() : - AssertSql( - @"SELECT [t].[CustomerID] -FROM ( - SELECT DISTINCT [c].[CustomerID] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Contains_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr([c].[ContactName], [c].[ContactName]) > 0) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_null_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_reversed() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE 'London' = [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_concat_with_navigation2() : - AssertSql( - @"SELECT ([o#Customer].[City] + ' ') + [o#Customer].[City] -FROM ([Orders] AS [o]) -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_SelectMany_subquery_with_filter_orderby_and_DefaultIfEmpty() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c]) -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_SelectMany_subquery_with_filter() : - AssertSql( - @"SELECT [c].[ContactName], [t].[OrderID] -FROM ([Customers] AS [c]) -INNER JOIN ( - SELECT [o].* - FROM [Orders] AS [o] - WHERE [o].[OrderID] > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_Where_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_EndsWith_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE RIGHT([c].[ContactName], LEN('b')) = 'b'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_static_field_access_closure_via_query_cache() : - AssertSql( - @"@__StaticFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0", - // - @"@__StaticFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A')) AND (([c].[City] <> 'London') OR [c].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_subquery_involving_join_binds_to_correct_table() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] > 11000) AND [o].[OrderID] IN ( - SELECT [od].[OrderID] - FROM ([Order Details] AS [od]) - INNER JOIN [Products] AS [od#Product] ON [od].[ProductID] = [od#Product].[ProductID] - WHERE [od#Product].[ProductName] = 'Chai' -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A'))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_not_in_optimization2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM ([Customers] AS [c]) -, [Employees] AS [e] -WHERE [c].[City] NOT IN ('London', 'Berlin')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition2() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_correlated_subquery_ordered() : - AssertSql( - @"@__p_0='3' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_select_many() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM (([Customers] AS [c]) -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -, [Employees] AS [e]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_in_complex_predicate() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[ProductID] > 100) AND ([p].[Discontinued] = True)) OR ([p].[Discontinued] = True)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_DTO_with_member_init_distinct_in_subquery_used_in_projection_translated_to_server() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [t].[Id], [t].[Count] -FROM ([Customers] AS [c]) -, ( - SELECT DISTINCT [o].[CustomerID] AS [Id], [o].[OrderID] AS [Count] - FROM [Orders] AS [o] - WHERE [o].[OrderID] < 10300 -) AS [t] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_take_max() : - AssertSql( - @"@__p_0='10' - -SELECT MAX([t].[OrderID]) -FROM ( - SELECT TOP @__p_0 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.SelectMany_LongCount() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Customers] AS [c]) -, [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_list_inline() : line() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\QueryJetTest.cs:riga 6247 - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.IsNullOrEmpty_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[Region] IS NULL OR ([c].[Region] = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_closure_constant() : - AssertSql( - @"@__predicate_0='True' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE @__predicate_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_customers_orders_with_subquery_anonymous_property_method_with_take() : - AssertSql( - @"@__p_0='5' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT TOP @__p_0 [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] - FROM [Orders] AS [o2] - ORDER BY [o2].[OrderID] -) AS [t]", - // - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Take_simple() : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_customers_orders_projection() : - AssertSql( - @"SELECT [c].[ContactName], [o].[OrderID] -FROM ([Customers] AS [c]) -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_multi_level5() : - AssertSql( - @"SELECT ( - SELECT TOP 1 ( - SELECT TOP 1 [od].[ProductID] - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] <> ( - SELECT COUNT(*) - FROM [Orders] AS [o0] - WHERE [c].[CustomerID] = [o0].[CustomerID] - )) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [Order] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_SelectMany_subquery_with_filter_orderby() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c]) -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A'))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Take_subquery_projection() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[City] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_arg_expression() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID] + [o].[OrderID]),0,[o].[OrderID] + [o].[OrderID]))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_negated_twice() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_entity_equality_one_element_SingleOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_math_round_int() : - AssertSql( - @"SELECT ROUND(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID])), 0) AS [A] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10250"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_count_using_DTO() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], ( - SELECT COUNT(*) - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] -) AS [Count] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_complex_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [A] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[A] LIKE 'A' + '%' AND (LEFT([t].[A], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Take_OrderBy_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_EndsWith_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (RIGHT([c].[ContactName], LEN([c].[ContactName])) = [c].[ContactName]) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_tracking_groups() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c]) -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bitwise_and_with_logical_and() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True) AND ([c].[CustomerID] = 'ANTON')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_null_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[CompanyName], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [Region] -FROM [Customers] AS [c] -ORDER BY [Region]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.SelectMany_simple_subquery() : - AssertSql( - @"@__p_0='9' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM (( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]) -, [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Projection_null_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[CompanyName], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_parameter() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE @__prm_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Null_conditional_deep() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE CInt(IIf(IsNull(LEN([c].[CustomerID])),0,LEN([c].[CustomerID]))) = 5"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_not_in_optimization4() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM ([Customers] AS [c]) -, [Employees] AS [e] -WHERE [c].[City] NOT IN ('London', 'Berlin', 'Seattle', 'Lisboa')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_concat_with_navigation1() : - AssertSql( - @"SELECT ([o].[CustomerID] + ' ') + [o#Customer].[City] -FROM ([Orders] AS [o]) -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_member_distinct_where() : - AssertSql( - @"SELECT [t].[Property] -FROM ( - SELECT DISTINCT [c].[CustomerID] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Queryable_simple_anonymous_subquery() : - AssertSql( - @"@__p_0='91' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Sum_on_float_column_in_subquery() : - AssertSql( - @"SELECT [o].[OrderID], ( - SELECT CSng(IIf(IsNull(SUM([od].[Discount])),0,SUM([od].[Discount]))) - FROM [Order Details] AS [od] - WHERE [o].[OrderID] = [od].[OrderID] -) AS [Sum] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10300"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_orderBy_take_count() : - AssertSql( - @"@__p_0='7' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[Country] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_multi_level3() : - AssertSql( - @"SELECT ( - SELECT TOP 1 [o].[OrderDate] - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [OrderDates] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_simple() : - AssertSql( - @"SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c]), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.SelectMany_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Customers] AS [c]) -, [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_shadow_subquery_FirstOrDefault() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[Title] = ( - SELECT TOP 1 [e2].[Title] - FROM [Employees] AS [e2] - ORDER BY [e2].[Title] -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_Where_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Customers] AS [c]) -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_take_min() : - AssertSql( - @"@__p_0='10' - -SELECT MIN([t].[OrderID]) -FROM ( - SELECT TOP @__p_0 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_false() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupBy_join_default_if_empty_anonymous() : - AssertSql( - @"SELECT [order0].[OrderID], [order0].[CustomerID], [order0].[EmployeeID], [order0].[OrderDate], [orderDetail0].[OrderID], [orderDetail0].[ProductID], [orderDetail0].[Discount], [orderDetail0].[Quantity], [orderDetail0].[UnitPrice] -FROM ([Orders] AS [order0]) -LEFT JOIN [Order Details] AS [orderDetail0] ON [order0].[OrderID] = [orderDetail0].[OrderID] -ORDER BY [order0].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Orderby_added_for_client_side_GroupJoin_principal_to_dependent_LOJ() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City] AS [City1], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title], [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM ([Employees] AS [e1]) -LEFT JOIN [Employees] AS [e2] ON [e1].[EmployeeID] = [e2].[ReportsTo] -ORDER BY [e1].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_member_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] LIKE 'A' + '%' AND (LEFT([t].[Property], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_same_collection_force_alias_uniquefication() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM ([Orders] AS [o]) -INNER JOIN [Orders] AS [o0] ON [o].[CustomerID] = [o0].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_using_int_overload_on_mismatched_types() : - AssertSql( - @"@__shortPrm_0='1' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] = @__shortPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_join_orderby_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM (([Customers] AS [c]) -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -INNER JOIN [Order Details] AS [od] ON [o].[OrderID] = [od].[OrderID] -WHERE [c].[CustomerID] <> 'ALFKI' -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_EndsWith_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (RIGHT([c].[ContactName], LEN([c].[ContactName])) = [c].[ContactName]) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_de_morgan_and_optimizated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) OR ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Local_array() : - AssertSql( - @"@__get_Item_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_Customers_Orders_Skip_Take() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT TOP @__p_1+@__p_0 [c].[ContactName], [o].[OrderID] -FROM ([Customers] AS [c]) -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -ORDER BY [o].[OrderID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_All() : - AssertSql( - @"SELECT IIf( - NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] <> 'ALFKI') OR [o].[CustomerID] IS NULL), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_expression_long_to_string() : - AssertSql( - @"SELECT Str([o].[OrderID]) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_GroupJoin_DefaultIfEmpty_Where() : - AssertSql( - @"SELECT [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM (([Customers] AS [c]) -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -LEFT JOIN [Orders] AS [o2] ON [c].[CustomerID] = [o2].[CustomerID] -WHERE [o2].[OrderID] IS NOT NULL AND ([o2].[CustomerID] = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_no_arg() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Distinct_Take() : - AssertSql( - @"@__p_0='5' - -SELECT TOP @__p_0 [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT DISTINCT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] -) AS [t] -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_collection_sql_injection() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ALFKI', 'ABC'')); GO; DROP TABLE Orders; GO; --', 'ALFKI', 'ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A')) AND (([c].[City] <> 'London') OR [c].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.SelectMany_projection1() : - AssertSql( - @"SELECT [e1].[City], [e2].[Country] -FROM ([Employees] AS [e1]) -, [Employees] AS [e2]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_EndsWith_MethodCall() : - AssertSql( - @"@__LocalMethod2_0='m' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (RIGHT([c].[ContactName], LEN(@__LocalMethod2_0)) = @__LocalMethod2_0) OR (@__LocalMethod2_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_with_different_outer_elements_with_same_key() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o]) -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_closure_via_query_cache() : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0", - // - @"@__city_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_expression_invoke() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition2_FirstOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t] -WHERE [t].[FirstName] = ( - SELECT TOP 1 [e0].[FirstName] - FROM [Employees] AS [e0] - ORDER BY [e0].[EmployeeID] -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_member_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[CustomerID] LIKE 'A' + '%' AND (LEFT([t].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_Customers_Orders_Projection_With_String_Concat_Skip_Take() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT TOP @__p_1+@__p_0 ([c].[ContactName] + ' ') + [c].[ContactTitle] AS [Contact], [o].[OrderID] -FROM ([Customers] AS [c]) -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -ORDER BY [o].[OrderID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_select_many_or3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM ([Customers] AS [c]) -, [Employees] AS [e] -WHERE [c].[City] IN ('London', 'Berlin', 'Seattle')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_compared_to_binary_expression() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = IIf( - [p].[ProductID] > 50, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Null_conditional_simple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_comparison_to_nullable_bool() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE RIGHT([c].[CustomerID], LEN('KI')) = 'KI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bitwise_or_with_logical_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True) OR ([c].[CustomerID] = 'ANTON')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_subquery_and_local_array_closure() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [c1] - WHERE [c1].[City] IN ('London', 'Buenos Aires') AND ([c1].[CustomerID] = [c].[CustomerID]))", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [c1] - WHERE [c1].[City] IN ('London') AND ([c1].[CustomerID] = [c].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Lifting_when_subquery_nested_order_by_anonymous() : - AssertSql( - @"@__p_0='2' - -SELECT [c1_Orders].[OrderID], [c1_Orders].[CustomerID], [c1_Orders].[EmployeeID], [c1_Orders].[OrderDate], [t0].[CustomerID] -FROM ([Orders] AS [c1_Orders]) -INNER JOIN ( - SELECT DISTINCT [t].[CustomerID] - FROM (( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] - ) AS [t]) - , [Customers] AS [c2] -) AS [t0] ON [c1_Orders].[CustomerID] = [t0].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Distinct_Take_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT DISTINCT TOP @__p_0 [o].* - FROM [Orders] AS [o] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_many_cross_join_same_collection() : - AssertSql( - @"SELECT [c0].[CustomerID], [c0].[Address], [c0].[City], [c0].[CompanyName], [c0].[ContactName], [c0].[ContactTitle], [c0].[Country], [c0].[Fax], [c0].[Phone], [c0].[PostalCode], [c0].[Region] -FROM ([Customers] AS [c]) -, [Customers] AS [c0]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_arg() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_bitwise_or_with_logical_or() : - AssertSql( - @"SELECT [c].[CustomerID], IIf( - ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False - ) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False - )) = True) OR ([c].[CustomerID] = 'ANTON'), - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_LastOrDefault() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Contains_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Instr([c].[ContactName], 'M') > 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_on_mismatched_types_nullable_int_long() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_simple3() : - AssertSql( - @"SELECT [o].[OrderID] -FROM ([Customers] AS [c]) -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_false() : - AssertSql( - @"@__flag_0='False' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ((@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_0 <> True) AND ([p].[UnitsInStock] < 20))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_division_on_decimal_no_significant_digits() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull([od].[Quantity] / 2.0),0,[od].[Quantity] / 2.0))) -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Sum_with_coalesce() : - AssertSql( - @"SELECT SUM(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_concat_string_int_comparison1() : - AssertSql( - @"@__i_0='10' - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] + (@__i_0&"""")) = [c].[CompanyName]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Single_Predicate() : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Take_simple_parameterized() : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_collection_complex_predicate_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI', 'ALFKI', 'ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_select_many_and() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM ([Customers] AS [c]) -, [Employees] AS [e] -WHERE (([c].[City] = 'London') AND ([c].[Country] = 'UK')) AND (([e].[City] = 'London') AND ([e].[Country] = 'UK'))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_with_multiple_conditions_still_uses_exists() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[City] = 'London') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[EmployeeID] = 1) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.No_orderby_added_for_fully_translated_manually_constructed_LOJ() : - AssertSql( - @"SELECT [e1].[City] AS [City1], [e2].[City] AS [City2] -FROM ([Employees] AS [e1]) -LEFT JOIN [Employees] AS [e2] ON [e1].[EmployeeID] = [e2].[ReportsTo]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_complex_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [A] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[A] LIKE 'A' + '%' AND (LEFT([t].[A], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A'))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_member_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[CustomerID] LIKE 'A' + '%' AND (LEFT([t].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A')) AND (([c].[City] <> 'London') OR [c].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_subquery_involving_join_binds_to_correct_table() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] > 11000) AND [o].[OrderID] IN ( - SELECT [od].[OrderID] - FROM ([Order Details] AS [od]) - INNER JOIN [Products] AS [od#Product] ON [od].[ProductID] = [od#Product].[ProductID] - WHERE [od#Product].[ProductName] = 'Chai' -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A'))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_arg_expression() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID] + [o].[OrderID]),0,[o].[OrderID] + [o].[OrderID]))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_simple() : - AssertSql( - @"SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c]), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_no_arg() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A')) AND (([c].[City] <> 'London') OR [c].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_arg() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_division_on_decimal_no_significant_digits() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull([od].[Quantity] / 2.0),0,[od].[Quantity] / 2.0))) -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_on_float_column_in_subquery() : - AssertSql( - @"SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10300", - // - @"@_outer_OrderID='10248' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10249' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10250' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10251' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10252' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10253' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10254' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10255' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_on_float_column() : - AssertSql( - @"SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od].[Discount]),0,[od].[Discount])))),0,AVG(CSng(IIf(IsNull([od].[Discount]),0,[od].[Discount]))))) -FROM [Order Details] AS [od] -WHERE [od].[ProductID] = 1"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Complex_query_with_repeated_query_model_compiles_correctly() : - AssertSql( - @"SELECT [outer].[CustomerID], [outer].[Address], [outer].[City], [outer].[CompanyName], [outer].[ContactName], [outer].[ContactTitle], [outer].[Country], [outer].[Fax], [outer].[Phone], [outer].[PostalCode], [outer].[Region] -FROM [Customers] AS [outer] -WHERE [outer].[CustomerID] = 'ALFKI'", - // - @"SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c0] - WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [cc1])), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Complex_query_with_repeated_nested_query_model_compiles_correctly() : - AssertSql( - @"SELECT [outer].[CustomerID], [outer].[Address], [outer].[City], [outer].[CompanyName], [outer].[ContactName], [outer].[ContactTitle], [outer].[Country], [outer].[Fax], [outer].[Phone], [outer].[PostalCode], [outer].[Region] -FROM [Customers] AS [outer] -WHERE [outer].[CustomerID] = 'ALFKI'", - // - @"SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c0] - WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [cc1] - WHERE EXISTS ( - SELECT DISTINCT 1 - FROM ( - SELECT TOP 10 [inner1].* - FROM [Customers] AS [inner1] - ORDER BY [inner1].[CustomerID] - ) AS [t1]))), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A'))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_coalesce() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])),0,IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])))) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_division_on_decimal() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull([od].[Quantity] / 2.09),0,[od].[Quantity] / 2.09))) -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_predicate() : - AssertSql( - @"SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c] - WHERE [c].[ContactName] LIKE 'A' + '%' AND (LEFT([c].[ContactName], LEN('A')) = 'A')), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_top_level() : - AssertSql( - @"@__p_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT IIf( - @__p_0 IN ( - SELECT [c].[CustomerID] - FROM [Customers] AS [c] - ), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A'))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_list_inline_closure_mix() : line_closure_mix() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\QueryJetTest.cs:riga 6247 - AssertSql( - @"@__id_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', @__id_0)", - // - @"@__id_0='ANATR' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', @__id_0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_binary_expression() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID] * 2),0,[o].[OrderID] * 2))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_simple() : - AssertSql( - @"SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c]), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_predicate() : - AssertSql( - @"SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c] - WHERE [c].[ContactName] LIKE 'A' + '%' AND (LEFT([c].[ContactName], LEN('A')) = 'A')), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_arg_expression() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID] + [o].[OrderID]),0,[o].[OrderID] + [o].[OrderID]))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_no_arg() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_arg() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_division_on_decimal_no_significant_digits() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull([od].[Quantity] / 2.0),0,[od].[Quantity] / 2.0))) -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_on_float_column_in_subquery() : - AssertSql( - @"SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10300", - // - @"@_outer_OrderID='10248' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10249' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10250' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10251' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10252' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10253' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10254' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10255' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_on_float_column() : - AssertSql( - @"SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od].[Discount]),0,[od].[Discount])))),0,AVG(CSng(IIf(IsNull([od].[Discount]),0,[od].[Discount]))))) -FROM [Order Details] AS [od] -WHERE [od].[ProductID] = 1"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_coalesce() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])),0,IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])))) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_division_on_decimal() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull([od].[Quantity] / 2.09),0,[od].[Quantity] / 2.09))) -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_binary_expression() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID] * 2),0,[o].[OrderID] * 2))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_no_arg() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Average_with_binary_expression() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID] * 2),0,[o].[OrderID] * 2))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.First_inside_subquery_gets_client_evaluated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE ([o0].[CustomerID] = 'ALFKI') AND (@_outer_CustomerID = [o0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Filter_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE IIf(IsNull([c].[CompanyName]), [c].[ContactName], [c].[CompanyName]) = 'The Big Cheese'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_Where_OrderBy() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c]) -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE ([o].[CustomerID] = 'ALFKI') OR ([c].[CustomerID] = 'ANATR') -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_SelectMany_subquery_with_filter_orderby_and_DefaultIfEmpty() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c]) -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_SelectMany_subquery_with_filter() : - AssertSql( - @"SELECT [c].[ContactName], [t].[OrderID] -FROM ([Customers] AS [c]) -INNER JOIN ( - SELECT [o].* - FROM [Orders] AS [o] - WHERE [o].[OrderID] > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_SelectMany_subquery_with_filter_orderby() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c]) -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_tracking_groups() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c]) -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupBy_join_default_if_empty_anonymous() : - AssertSql( - @"SELECT [order0].[OrderID], [order0].[CustomerID], [order0].[EmployeeID], [order0].[OrderDate], [orderDetail0].[OrderID], [orderDetail0].[ProductID], [orderDetail0].[Discount], [orderDetail0].[Quantity], [orderDetail0].[UnitPrice] -FROM ([Orders] AS [order0]) -LEFT JOIN [Order Details] AS [orderDetail0] ON [order0].[OrderID] = [orderDetail0].[OrderID] -ORDER BY [order0].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_member_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] LIKE 'A' + '%' AND (LEFT([t].[Property], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Distinct_Take() : - AssertSql( - @"@__p_0='5' - -SELECT TOP @__p_0 [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT DISTINCT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] -) AS [t] -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_with_different_outer_elements_with_same_key() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o]) -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Distinct_Take_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT DISTINCT TOP @__p_0 [o].* - FROM [Orders] AS [o] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_simple3() : - AssertSql( - @"SELECT [o].[OrderID] -FROM ([Customers] AS [c]) -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_simple_subquery() : - AssertSql( - @"@__p_0='4' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ([Customers] AS [c]) -INNER JOIN ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] ON [c].[CustomerID] = [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_DefaultIfEmpty_multiple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o1].[OrderID], [o1].[CustomerID], [o1].[EmployeeID], [o1].[OrderDate], [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM (([Customers] AS [c]) -LEFT JOIN [Orders] AS [o1] ON [c].[CustomerID] = [o1].[CustomerID]) -LEFT JOIN [Orders] AS [o2] ON [c].[CustomerID] = [o2].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_DefaultIfEmpty2() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Employees] AS [e]) -LEFT JOIN [Orders] AS [o] ON [e].[EmployeeID] = [o].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_SelectMany_subquery_with_filter_and_DefaultIfEmpty() : - AssertSql( - @"SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate], [c].[ContactName] -FROM ([Customers] AS [c]) -LEFT JOIN ( - SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - WHERE [o].[OrderID] > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.IsNullOrEmpty_in_projection() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], IIf( - [c].[Region] IS NULL OR ([c].[Region] = ''), - True, - False -) AS [Value] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_DefaultIfEmpty_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c]) -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [o].[OrderID] IS NOT NULL AND ([o].[CustomerID] = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.FirstOrDefault_inside_subquery_gets_server_evaluated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND (( - SELECT TOP 1 [o].[CustomerID] - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] = 'ALFKI') AND ([c].[CustomerID] = [o].[CustomerID]) -) = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_DefaultIfEmpty3() : - AssertSql( - @"@__p_0='1' - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM (( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t]) -LEFT JOIN [Orders] AS [o] ON [t].[CustomerID] = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupBy_join_anonymous() : - AssertSql( - @"SELECT [order0].[OrderID], [order0].[CustomerID], [order0].[EmployeeID], [order0].[OrderDate], [orderDetail0].[OrderID], [orderDetail0].[ProductID], [orderDetail0].[Discount], [orderDetail0].[Quantity], [orderDetail0].[UnitPrice] -FROM ([Orders] AS [order0]) -LEFT JOIN [Order Details] AS [orderDetail0] ON [order0].[OrderID] = [orderDetail0].[OrderID] -ORDER BY [order0].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_simple2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c]) -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_simple() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c]) -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_DefaultIfEmpty_Project() : - AssertSql( - @"SELECT [o].[OrderID] -FROM ([Customers] AS [c]) -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_complex_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] LIKE 'A' + '%' AND (LEFT([t].[Property], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Entity_equality_local() : - AssertSql( - @"@__local_0_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__local_0_CustomerID"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_customers_orders_count() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c]) -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_with_different_outer_elements_with_same_key_projected_from_another_entity() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM (([Order Details] AS [od]) -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -LEFT JOIN [Customers] AS [c] ON [od#Order].[CustomerID] = [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Does_not_change_ordering_of_projection_with_complex_projections() : - AssertSql( - @"SELECT [e].[CustomerID] AS [Id], ( - SELECT COUNT(*) - FROM [Orders] AS [o0] - WHERE [e].[CustomerID] = [o0].[CustomerID] -) AS [TotalOrders] -FROM [Customers] AS [e] -WHERE ([e].[ContactTitle] = 'Owner') AND (( - SELECT COUNT(*) - FROM [Orders] AS [o] - WHERE [e].[CustomerID] = [o].[CustomerID] -) > 2) -ORDER BY [e].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_with_different_outer_elements_with_same_key_with_predicate() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o]) -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID] -WHERE [o].[OrderID] > 11500"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_simple_ordering() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c]) -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_DefaultIfEmpty() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c]) -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c]) -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Environment_newline_is_funcletized() : line_is_funcletized() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\QueryJetTest.cs:riga 6374 - AssertSql( - @"@__NewLine_0=' -' (Nullable = false) (Size = 2) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr([c].[CustomerID], @__NewLine_0) > 0) OR (@__NewLine_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupBy_LongCount() : - AssertSql( - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM ([Orders] AS [o0]) - -ORDER BY [o0].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Let_any_subquery_anonymous() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c]) - -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A') -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT IIf( - EXISTS ( - SELECT 1 - FROM ([Orders] AS [o0]) - - WHERE [o0].[CustomerID] = @_outer_CustomerID), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT IIf( - EXISTS ( - SELECT 1 - FROM ([Orders] AS [o0]) - - WHERE [o0].[CustomerID] = @_outer_CustomerID), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT IIf( - EXISTS ( - SELECT 1 - FROM ([Orders] AS [o0]) - - WHERE [o0].[CustomerID] = @_outer_CustomerID), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT IIf( - EXISTS ( - SELECT 1 - FROM ([Orders] AS [o0]) - - WHERE [o0].[CustomerID] = @_outer_CustomerID), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_customers_orders_entities() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM (([Customers] AS [c]) -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_Where_OrderBy() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM (([Customers] AS [c]) -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) - -WHERE ([o].[CustomerID] = 'ALFKI') OR ([c].[CustomerID] = 'ANATR') -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Lifting_when_subquery_nested_order_by_simple() : - AssertSql( - @"@__p_0='2' - -SELECT [t0].[CustomerID] -FROM (( - SELECT DISTINCT [t].[CustomerID] - FROM (( - SELECT TOP @__p_0 [c].* - FROM ([Customers] AS [c]) - - ORDER BY [c].[CustomerID] - ) AS [t]) - , [Customers] AS [c2] - -) AS [t0])", - // - @"SELECT [c1_Orders].[OrderID], [c1_Orders].[CustomerID], [c1_Orders].[EmployeeID], [c1_Orders].[OrderDate] -FROM ([Orders] AS [c1_Orders])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_SelectMany_subquery_with_filter_orderby_and_DefaultIfEmpty() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM (([Customers] AS [c]) -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) - -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_SelectMany_subquery_with_filter() : - AssertSql( - @"SELECT [c].[ContactName], [t].[OrderID] -FROM (([Customers] AS [c]) -INNER JOIN ( - SELECT [o].* - FROM ([Orders] AS [o]) - - WHERE [o].[OrderID] > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_customers_orders_with_subquery_anonymous_property_method() : - AssertSql( - @"SELECT [o20].[OrderID], [o20].[CustomerID], [o20].[EmployeeID], [o20].[OrderDate] -FROM ([Orders] AS [o20]) - -ORDER BY [o20].[OrderID]", - // - @"SELECT [c].[CustomerID] -FROM ([Customers] AS [c])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_customers_orders_with_subquery_predicate() : - AssertSql( - @"SELECT [o20].[CustomerID], [o20].[OrderID] -FROM ([Orders] AS [o20]) - -WHERE [o20].[OrderID] > 0 -ORDER BY [o20].[OrderID]", - // - @"SELECT [c].[CustomerID], [c].[ContactName] -FROM ([Customers] AS [c])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_select_many() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM (([Customers] AS [c]) -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -, [Employees] AS [e]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_client_new_expression() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Orders] AS [o])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.LastOrDefault() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c]) - -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.IsNullOrEmpty_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c]) - -WHERE [c].[Region] IS NULL OR ([c].[Region] = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupBy_with_orderby_take_skip_distinct() : - AssertSql( - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM ([Orders] AS [o0]) - -ORDER BY [o0].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Distinct_OrderBy() : - AssertSql( - @"SELECT [t].[Country] -FROM (( - SELECT DISTINCT [c].[Country] - FROM ([Customers] AS [c]) - -) AS [t]) - -ORDER BY [t].[Country]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_customers_orders_with_subquery_anonymous_property_method_with_take() : - AssertSql( - @"@__p_0='5' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM (( - SELECT TOP @__p_0 [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] - FROM ([Orders] AS [o2]) - - ORDER BY [o2].[OrderID] -) AS [t])", - // - @"SELECT [c].[CustomerID] -FROM ([Customers] AS [c])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_customers_orders_projection() : - AssertSql( - @"SELECT [c].[ContactName], [o].[OrderID] -FROM (([Customers] AS [c]) -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_SelectMany_subquery_with_filter_orderby() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM (([Customers] AS [c]) -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) - -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_tracking_groups() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM (([Customers] AS [c]) -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) - -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_member_distinct_where() : - AssertSql( - @"SELECT [t].[Property] -FROM (( - SELECT DISTINCT [c].[CustomerID] AS [Property] - FROM ([Customers] AS [c]) - -) AS [t]) - -WHERE [t].[Property] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_Where_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM (([Customers] AS [c]) -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) - -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Distinct() : - AssertSql( - @"SELECT DISTINCT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_member_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM (( - SELECT DISTINCT [c].[CustomerID] AS [Property] - FROM ([Customers] AS [c]) - -) AS [t]) - -WHERE [t].[Property] LIKE 'A' + '%' AND (LEFT([t].[Property], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_same_collection_force_alias_uniquefication() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM (([Orders] AS [o]) -INNER JOIN [Orders] AS [o0] ON [o].[CustomerID] = [o0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Local_array() : - AssertSql( - @"@__get_Item_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c]) - -WHERE [c].[CustomerID] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_GroupJoin_DefaultIfEmpty_Where() : - AssertSql( - @"SELECT [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM ((([Customers] AS [c]) -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -LEFT JOIN [Orders] AS [o2] ON [c].[CustomerID] = [o2].[CustomerID]) - -WHERE [o2].[OrderID] IS NOT NULL AND ([o2].[CustomerID] = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Distinct_Take() : - AssertSql( - @"@__p_0='5' - -SELECT TOP @__p_0 [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM (( - SELECT DISTINCT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM ([Orders] AS [o]) - -) AS [t]) - -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_with_different_outer_elements_with_same_key() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM (([Orders] AS [o]) -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupBy_simple() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Orders] AS [o]) - -ORDER BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Entity_equality_self() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM ([Customers] AS [c]) - -WHERE [c].[CustomerID] = [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Lifting_when_subquery_nested_order_by_anonymous() : - AssertSql( - @"@__p_0='2' - -SELECT [c1_Orders].[OrderID], [c1_Orders].[CustomerID], [c1_Orders].[EmployeeID], [c1_Orders].[OrderDate], [t0].[CustomerID] -FROM (([Orders] AS [c1_Orders]) -INNER JOIN ( - SELECT DISTINCT [t].[CustomerID] - FROM (( - SELECT TOP @__p_0 [c].* - FROM ([Customers] AS [c]) - - ORDER BY [c].[CustomerID] - ) AS [t]) - , [Customers] AS [c2] - -) AS [t0] ON [c1_Orders].[CustomerID] = [t0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Distinct_Take_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM (( - SELECT DISTINCT TOP @__p_0 [o].* - FROM ([Orders] AS [o]) - -) AS [t])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_simple3() : - AssertSql( - @"SELECT [o].[OrderID] -FROM (([Customers] AS [c]) -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Entity_equality_not_null() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM ([Customers] AS [c]) - -WHERE [c].[CustomerID] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Distinct_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM (( - SELECT DISTINCT [c].* - FROM ([Customers] AS [c]) - -) AS [t])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_simple_subquery() : - AssertSql( - @"@__p_0='4' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM (([Customers] AS [c]) -INNER JOIN ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM ([Orders] AS [o]) - - ORDER BY [o].[OrderID] -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_DefaultIfEmpty_multiple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o1].[OrderID], [o1].[CustomerID], [o1].[EmployeeID], [o1].[OrderDate], [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM ((([Customers] AS [c]) -LEFT JOIN [Orders] AS [o1] ON [c].[CustomerID] = [o1].[CustomerID]) -LEFT JOIN [Orders] AS [o2] ON [c].[CustomerID] = [o2].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_complex_distinct_where() : - AssertSql( - @"SELECT [t].[Property] -FROM (( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [Property] - FROM ([Customers] AS [c]) - -) AS [t]) - -WHERE [t].[Property] = 'ALFKIBerlin'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_DefaultIfEmpty2() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM (([Employees] AS [e]) -LEFT JOIN [Orders] AS [o] ON [e].[EmployeeID] = [o].[EmployeeID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupBy_nested_order_by_enumerable() : - AssertSql( - @"SELECT [c0].[Country], [c0].[CustomerID] -FROM ([Customers] AS [c0]) - -ORDER BY [c0].[Country]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_member_distinct_orderby() : - AssertSql( - @"SELECT [t].[Property] -FROM (( - SELECT DISTINCT [c].[CustomerID] AS [Property] - FROM ([Customers] AS [c]) - -) AS [t]) - -ORDER BY [t].[Property]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_customers_orders_with_subquery_with_take() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[ContactName], [t].[OrderID] -FROM (([Customers] AS [c]) -INNER JOIN ( - SELECT TOP @__p_0 [o2].* - FROM ([Orders] AS [o2]) - - ORDER BY [o2].[OrderID] -) AS [t] ON [c].[CustomerID] = [t].[CustomerID]) - -WHERE [t].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_SelectMany_subquery_with_filter_and_DefaultIfEmpty() : - AssertSql( - @"SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate], [c].[ContactName] -FROM (([Customers] AS [c]) -LEFT JOIN ( - SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM ([Orders] AS [o]) - - WHERE [o].[OrderID] > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.IsNullOrEmpty_in_projection() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], IIf( - [c].[Region] IS NULL OR ([c].[Region] = ''), - True, - False -) AS [Value] -FROM ([Customers] AS [c])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_DefaultIfEmpty_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM (([Customers] AS [c]) -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) - -WHERE [o].[OrderID] IS NOT NULL AND ([o].[CustomerID] = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Last() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c]) - -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_same_collection_multiple() : - AssertSql( - @"SELECT [c3].[CustomerID], [c3].[Address], [c3].[City], [c3].[CompanyName], [c3].[ContactName], [c3].[ContactTitle], [c3].[Country], [c3].[Fax], [c3].[Phone], [c3].[PostalCode], [c3].[Region] -FROM ((([Customers] AS [o]) -INNER JOIN [Customers] AS [c2] ON [o].[CustomerID] = [c2].[CustomerID]) -INNER JOIN [Customers] AS [c3] ON [o].[CustomerID] = [c3].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_OrderBy_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM (([Customers] AS [c]) -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Distinct_OrderBy2() : - AssertSql( - @"SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM (( - SELECT DISTINCT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM ([Customers] AS [c]) - -) AS [t]) - -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupBy_anonymous() : - AssertSql( - @"SELECT [c].[City], [c].[CustomerID] -FROM ([Customers] AS [c]) - -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Default_if_empty_top_level_arg() : - AssertSql( - @"SELECT [c].[EmployeeID], [c].[City], [c].[Country], [c].[FirstName], [c].[ReportsTo], [c].[Title] -FROM ([Employees] AS [c]) - -WHERE [c].[EmployeeID] = -1"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.IsNullOrWhiteSpace_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c]) - -WHERE [c].[Region] IS NULL OR (LTRIM(RTRIM([c].[Region])) = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Handle_materialization_properly_when_more_than_two_query_sources_are_involved() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c]) -, [Orders] AS [o] -, [Employees] AS [e] - -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Int16_parameter_can_be_used_for_int_column() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Orders] AS [o]) - -WHERE [o].[OrderID] = 10300"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_DefaultIfEmpty3() : - AssertSql( - @"@__p_0='1' - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ((( - SELECT TOP @__p_0 [c].* - FROM ([Customers] AS [c]) - - ORDER BY [c].[CustomerID] -) AS [t]) -LEFT JOIN [Orders] AS [o] ON [t].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_customers_orders_with_subquery_predicate_with_take() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[ContactName], [t].[OrderID] -FROM (([Customers] AS [c]) -INNER JOIN ( - SELECT TOP @__p_0 [o2].* - FROM ([Orders] AS [o2]) - - WHERE [o2].[OrderID] > 0 - ORDER BY [o2].[OrderID] -) AS [t] ON [c].[CustomerID] = [t].[CustomerID]) - -WHERE [t].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Last_when_no_order_by() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c]) - -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.First_client_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c]) - -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Count_with_predicate() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Orders] AS [o]) - -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_customers_orders_with_subquery() : - AssertSql( - @"SELECT [o20].[CustomerID], [o20].[OrderID] -FROM ([Orders] AS [o20]) - -ORDER BY [o20].[OrderID]", - // - @"SELECT [c].[CustomerID], [c].[ContactName] -FROM ([Customers] AS [c])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_composite_key() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM (([Customers] AS [c]) -INNER JOIN [Orders] AS [o] ON ([c].[CustomerID] = [o].[CustomerID]) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupBy_anonymous_with_where() : - AssertSql( - @"SELECT [c].[City], [c].[CustomerID] -FROM ([Customers] AS [c]) - -WHERE [c].[Country] IN ('Argentina', 'Austria', 'Brazil', 'France', 'Germany', 'USA') -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupBy_with_orderby_and_anonymous_projection() : - AssertSql( - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM ([Orders] AS [o0]) - -ORDER BY [o0].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.IsNullOrEmpty_negated_in_projection() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], IIf( - [c].[Region] IS NOT NULL AND ([c].[Region] <> ''), - True, - False -) AS [Value] -FROM ([Customers] AS [c])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Entity_equality_null() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM ([Customers] AS [c]) - -WHERE [c].[CustomerID] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_simple2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM (([Customers] AS [c]) -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_simple() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM (([Customers] AS [c]) -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_customers_orders_select() : - AssertSql( - @"SELECT [c].[ContactName], [o].[OrderID] -FROM (([Customers] AS [c]) -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_DefaultIfEmpty_Project() : - AssertSql( - @"SELECT [o].[OrderID] -FROM (([Customers] AS [c]) -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_complex_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM (( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [Property] - FROM ([Customers] AS [c]) - -) AS [t]) - -WHERE [t].[Property] LIKE 'A' + '%' AND (LEFT([t].[Property], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupBy_with_orderby() : - AssertSql( - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM ([Orders] AS [o0]) - -ORDER BY [o0].[CustomerID], [o0].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Entity_equality_local() : - AssertSql( - @"@__local_0_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID] -FROM ([Customers] AS [c]) - -WHERE [c].[CustomerID] = @__local_0_CustomerID"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_customers_orders_count() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM (([Customers] AS [c]) -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) - -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Distinct_OrderBy3() : - AssertSql( - @"SELECT [t].[CustomerID] -FROM (( - SELECT DISTINCT [c].[CustomerID] - FROM ([Customers] AS [c]) - -) AS [t]) - -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_complex_distinct_orderby() : - AssertSql( - @"SELECT [t].[Property] -FROM (( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [Property] - FROM ([Customers] AS [c]) - -) AS [t]) - -ORDER BY [t].[Property]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_with_different_outer_elements_with_same_key_projected_from_another_entity() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ((([Order Details] AS [od]) -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -LEFT JOIN [Customers] AS [c] ON [od#Order].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DateTime_parse_is_parameterized() : - AssertSql( - @"@__Parse_0='01/01/1998 12:00:00' (DbType = DateTime) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Orders] AS [o]) - -WHERE [o].[OrderDate] > @__Parse_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Does_not_change_ordering_of_projection_with_complex_projections() : - AssertSql( - @"SELECT [e].[CustomerID] AS [Id], ( - SELECT COUNT(*) - FROM ([Orders] AS [o0]) - - WHERE [e].[CustomerID] = [o0].[CustomerID] -) AS [TotalOrders] -FROM ([Customers] AS [e]) - -WHERE ([e].[ContactTitle] = 'Owner') AND (( - SELECT COUNT(*) - FROM ([Orders] AS [o]) - - WHERE [e].[CustomerID] = [o].[CustomerID] -) > 2) -ORDER BY [e].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupBy_Count() : - AssertSql( - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM ([Orders] AS [o0]) - -ORDER BY [o0].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupBy_Distinct() : - AssertSql( - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM ([Orders] AS [o0]) - -ORDER BY [o0].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_with_different_outer_elements_with_same_key_with_predicate() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM (([Orders] AS [o]) -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID]) - -WHERE [o].[OrderID] > 11500"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Distinct_Scalar() : - AssertSql( - @"SELECT DISTINCT [c].[City] -FROM ([Customers] AS [c])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_simple_ordering() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM (([Customers] AS [c]) -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) - -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_DefaultIfEmpty() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM (([Customers] AS [c]) -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Last_Predicate() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c]) - -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Entity_equality_local_inline() : line() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\QueryJetTest.cs:riga 164 - AssertSql( - @"SELECT [c].[CustomerID] -FROM ([Customers] AS [c]) - -WHERE [c].[CustomerID] = 'ANATR'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM (([Customers] AS [c]) -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) - -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.LastOrDefault_Predicate() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c]) - -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Count_with_predicate() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] - -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Let_any_subquery_anonymous() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A') -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Orders] AS [o0] - WHERE [o0].[CustomerID] = @_outer_CustomerID), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Orders] AS [o0] - WHERE [o0].[CustomerID] = @_outer_CustomerID), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Orders] AS [o0] - WHERE [o0].[CustomerID] = @_outer_CustomerID), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Orders] AS [o0] - WHERE [o0].[CustomerID] = @_outer_CustomerID), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_customers_orders_entities() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c]INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_Where_OrderBy() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c]INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) - -WHERE ([o].[CustomerID] = 'ALFKI') OR ([c].[CustomerID] = 'ANATR') -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Lifting_when_subquery_nested_order_by_simple() : - AssertSql( - @"@__p_0='2' - -SELECT [t0].[CustomerID] -FROM ( - SELECT DISTINCT [t].[CustomerID] - FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] - ) AS [t], [Customers] AS [c2] - -) AS [t0]", - // - @"SELECT [c1_Orders].[OrderID], [c1_Orders].[CustomerID], [c1_Orders].[EmployeeID], [c1_Orders].[OrderDate] -FROM [Orders] AS [c1_Orders]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_SelectMany_subquery_with_filter_orderby_and_DefaultIfEmpty() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c]LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) - -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_SelectMany_subquery_with_filter() : - AssertSql( - @"SELECT [c].[ContactName], [t].[OrderID] -FROM ([Customers] AS [c]INNER JOIN ( - SELECT [o].* - FROM [Orders] AS [o] - WHERE [o].[OrderID] > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_select_many() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM ([Customers] AS [c]INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -, [Employees] AS [e]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_customers_orders_projection() : - AssertSql( - @"SELECT [c].[ContactName], [o].[OrderID] -FROM ([Customers] AS [c]INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_SelectMany_subquery_with_filter_orderby() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c]LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) - -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_tracking_groups() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c]LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) - -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_Where_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Customers] AS [c]INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) - -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_same_collection_force_alias_uniquefication() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM ([Orders] AS [o]INNER JOIN [Orders] AS [o0] ON [o].[CustomerID] = [o0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Local_array() : - AssertSql( - @"@__get_Item_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_GroupJoin_DefaultIfEmpty_Where() : - AssertSql( - @"SELECT [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM (([Customers] AS [c]INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -LEFT JOIN [Orders] AS [o2] ON [c].[CustomerID] = [o2].[CustomerID]) - -WHERE [o2].[OrderID] IS NOT NULL AND ([o2].[CustomerID] = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_with_different_outer_elements_with_same_key() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o]LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Lifting_when_subquery_nested_order_by_anonymous() : - AssertSql( - @"@__p_0='2' - -SELECT [c1_Orders].[OrderID], [c1_Orders].[CustomerID], [c1_Orders].[EmployeeID], [c1_Orders].[OrderDate], [t0].[CustomerID] -FROM ([Orders] AS [c1_Orders]INNER JOIN ( - SELECT DISTINCT [t].[CustomerID] - FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] - ) AS [t], [Customers] AS [c2] - -) AS [t0] ON [c1_Orders].[CustomerID] = [t0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_simple3() : - AssertSql( - @"SELECT [o].[OrderID] -FROM ([Customers] AS [c]INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_simple_subquery() : - AssertSql( - @"@__p_0='4' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ([Customers] AS [c]INNER JOIN ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_DefaultIfEmpty_multiple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o1].[OrderID], [o1].[CustomerID], [o1].[EmployeeID], [o1].[OrderDate], [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM (([Customers] AS [c]LEFT JOIN [Orders] AS [o1] ON [c].[CustomerID] = [o1].[CustomerID]) -LEFT JOIN [Orders] AS [o2] ON [c].[CustomerID] = [o2].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_DefaultIfEmpty2() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Employees] AS [e]LEFT JOIN [Orders] AS [o] ON [e].[EmployeeID] = [o].[EmployeeID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_customers_orders_with_subquery_with_take() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[ContactName], [t].[OrderID] -FROM ([Customers] AS [c]INNER JOIN ( - SELECT TOP @__p_0 [o2].* - FROM [Orders] AS [o2] - ORDER BY [o2].[OrderID] -) AS [t] ON [c].[CustomerID] = [t].[CustomerID]) - -WHERE [t].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_SelectMany_subquery_with_filter_and_DefaultIfEmpty() : - AssertSql( - @"SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate], [c].[ContactName] -FROM ([Customers] AS [c]LEFT JOIN ( - SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - WHERE [o].[OrderID] > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.IsNullOrEmpty_in_projection() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], IIf( - [c].[Region] IS NULL OR ([c].[Region] = ''), - True, - False -) AS [Value] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_DefaultIfEmpty_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c]LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) - -WHERE [o].[OrderID] IS NOT NULL AND ([o].[CustomerID] = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_same_collection_multiple() : - AssertSql( - @"SELECT [c3].[CustomerID], [c3].[Address], [c3].[City], [c3].[CompanyName], [c3].[ContactName], [c3].[ContactTitle], [c3].[Country], [c3].[Fax], [c3].[Phone], [c3].[PostalCode], [c3].[Region] -FROM (([Customers] AS [o]INNER JOIN [Customers] AS [c2] ON [o].[CustomerID] = [c2].[CustomerID]) -INNER JOIN [Customers] AS [c3] ON [o].[CustomerID] = [c3].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_OrderBy_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Customers] AS [c]INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Handle_materialization_properly_when_more_than_two_query_sources_are_involved() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c], [Orders] AS [o] -, [Employees] AS [e] - -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_DefaultIfEmpty3() : - AssertSql( - @"@__p_0='1' - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM (( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t]LEFT JOIN [Orders] AS [o] ON [t].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_customers_orders_with_subquery_predicate_with_take() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[ContactName], [t].[OrderID] -FROM ([Customers] AS [c]INNER JOIN ( - SELECT TOP @__p_0 [o2].* - FROM [Orders] AS [o2] - WHERE [o2].[OrderID] > 0 - ORDER BY [o2].[OrderID] -) AS [t] ON [c].[CustomerID] = [t].[CustomerID]) - -WHERE [t].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_composite_key() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c]INNER JOIN [Orders] AS [o] ON ([c].[CustomerID] = [o].[CustomerID]) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.IsNullOrEmpty_negated_in_projection() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], IIf( - [c].[Region] IS NOT NULL AND ([c].[Region] <> ''), - True, - False -) AS [Value] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_simple2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c]INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_simple() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c]INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Join_customers_orders_select() : - AssertSql( - @"SELECT [c].[ContactName], [o].[OrderID] -FROM ([Customers] AS [c]INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_DefaultIfEmpty_Project() : - AssertSql( - @"SELECT [o].[OrderID] -FROM ([Customers] AS [c]LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_customers_orders_count() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c]LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) - -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_with_different_outer_elements_with_same_key_projected_from_another_entity() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM (([Order Details] AS [od]INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -LEFT JOIN [Customers] AS [c] ON [od#Order].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_with_different_outer_elements_with_same_key_with_predicate() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o]LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID]) - -WHERE [o].[OrderID] > 11500"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_simple_ordering() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c]INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) - -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_DefaultIfEmpty() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c]LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupJoin_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c]INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) - -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.IsNullOrEmpty_in_projection() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], IIf( - [c].[Region] IS NULL OR ([c].[Region] = ''), - True, - False -) AS [Value] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Handle_materialization_properly_when_more_than_two_query_sources_are_involved() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c], [Orders] AS [o] -, [Employees] AS [e] - -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.IsNullOrEmpty_negated_in_projection() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], IIf( - [c].[Region] IS NOT NULL AND ([c].[Region] <> ''), - True, - False -) AS [Value] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Handle_materialization_properly_when_more_than_two_query_sources_are_involved() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c], [Orders] AS [o] -, [Employees] AS [e] - -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Handle_materialization_properly_when_more_than_two_query_sources_are_involved() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -, [Orders] AS [o] -, [Employees] AS [e] - -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_null_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_DTO_with_member_init_distinct_in_subquery_used_in_projection_translated_to_server() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [t].[Id], [t].[Count] -FROM [Customers] AS [c] -, ( - SELECT DISTINCT [o].[CustomerID] AS [Id], [o].[OrderID] AS [Count] - FROM [Orders] AS [o] - WHERE [o].[OrderID] < 10300 -) AS [t] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Projection_null_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[CompanyName], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Null_conditional_deep() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE CInt(IIf(IsNull(LEN([c].[CustomerID])),0,LEN([c].[CustomerID]))) = 5"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Local_array() : - AssertSql( - @"@__get_Item_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Max_with_coalesce() : - AssertSql( - @"SELECT MAX(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_skip_take() : - AssertSql( - @"@__p_0='5' -@__p_1='8' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactTitle], [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.SelectMany_cartesian_product_with_ordering() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[City] AS [City0] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE ([c].[City] = [e].[City]) OR ([c].[City] IS NULL AND [e].[City] IS NULL) -ORDER BY [e].[City], [c].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_coalesce_take_distinct() : - AssertSql( - @"@__p_0='15' - -SELECT DISTINCT [t].* -FROM ( - SELECT TOP @__p_0 [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] - FROM [Products] AS [p] - ORDER BY IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice]) -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Min_with_coalesce() : - AssertSql( - @"SELECT MIN(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Query_expression_with_to_string_and_contains() : - AssertSql( - @"SELECT [o].[CustomerID] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL AND (Instr(Str([o].[EmployeeID]), '10') > 0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Null_conditional_deep() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE CInt(IIf(IsNull(LEN([c].[CustomerID])),0,LEN([c].[CustomerID]))) = 5"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_take_long_count() : - AssertSql( - @"@__p_0='7' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_expression_int_to_string() : - AssertSql( - @"SELECT Str([o].[OrderID]) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_DTO_with_member_init_distinct_in_subquery_used_in_projection_translated_to_server() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [t].[Id], [t].[Count] -FROM [Customers] AS [c] -, ( - SELECT DISTINCT [o].[CustomerID] AS [Id], [o].[OrderID] AS [Count] - FROM [Orders] AS [o] - WHERE [o].[OrderID] < 10300 -) AS [t] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_math_round_int() : - AssertSql( - @"SELECT ROUND(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID])), 0) AS [A] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10250"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_expression_long_to_string() : - AssertSql( - @"SELECT Str([o].[OrderID]) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_expression_other_to_string() : - AssertSql( - @"SELECT Str([o].[OrderDate]) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_distinct_long_count() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].* - FROM [Customers] AS [c] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_skip_take() : - AssertSql( - @"@__p_0='5' -@__p_1='8' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactTitle], [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.SelectMany_cartesian_product_with_ordering() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[City] AS [City0] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE ([c].[City] = [e].[City]) OR ([c].[City] IS NULL AND [e].[City] IS NULL) -ORDER BY [e].[City], [c].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_multi_level6() : - AssertSql( - @"SELECT ( - SELECT TOP 1 ( - SELECT TOP 1 [od].[ProductID] - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] <> CInt(IIf(IsNull(LEN([c].[CustomerID])),0,LEN([c].[CustomerID])))) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [Order] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_multi_level() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_correlated_subquery_projection() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[CustomerID] -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] -) AS [t] -ORDER BY [t].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_take_average() : - AssertSql( - @"@__p_0='10' - -SELECT AVG(CDbl(IIf(IsNull([t].[OrderID]),0,[t].[OrderID]))) -FROM ( - SELECT TOP @__p_0 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Skip_Take() : - AssertSql( - @"@__p_0='5' -@__p_1='10' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Query_expression_with_to_string_and_contains() : - AssertSql( - @"SELECT [o].[CustomerID] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL AND (Instr(Str([o].[EmployeeID]), '10') > 0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_distinct_average() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([t].[OrderID]),0,[t].[OrderID]))) -FROM ( - SELECT DISTINCT [o].[OrderID] - FROM [Orders] AS [o] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_anonymous_constant_in_expression() : - AssertSql( - @"SELECT [c].[CustomerID], CInt(IIf(IsNull(LEN([c].[CustomerID])),0,LEN([c].[CustomerID]))) + 5 AS [Expression] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_Where_Subquery_Deep_Single() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[OrderID] = 10344", - // - @"@_outer_OrderID='10344' - -SELECT TOP 2 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE @_outer_OrderID = [o0].[OrderID]", - // - @"@_outer_CustomerID1='WHITC' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID1 = [c2].[CustomerID]", - // - @"@_outer_OrderID='10344' - -SELECT TOP 2 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE @_outer_OrderID = [o0].[OrderID]", - // - @"@_outer_CustomerID1='WHITC' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID1 = [c2].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_orderBy_take_long_count() : - AssertSql( - @"@__p_0='7' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[Country] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_multi_level2() : - AssertSql( - @"SELECT ( - SELECT TOP 1 [o].[OrderDate] - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [OrderDates] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Query_expression_with_to_string_and_contains() : - AssertSql( - @"SELECT [o].[CustomerID] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL AND (Instr(Str([o].[EmployeeID]), '10') > 0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_expression_int_to_string() : - AssertSql( - @"SELECT Str([o].[OrderID]) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_math_round_int() : - AssertSql( - @"SELECT ROUND(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID])), 0) AS [A] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10250"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_expression_long_to_string() : - AssertSql( - @"SELECT Str([o].[OrderID]) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_expression_other_to_string() : - AssertSql( - @"SELECT Str([o].[OrderDate]) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_distinct_long_count() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].* - FROM [Customers] AS [c] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_multi_level6() : - AssertSql( - @"SELECT ( - SELECT TOP 1 ( - SELECT TOP 1 [od].[ProductID] - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] <> CInt(IIf(IsNull(LEN([c].[CustomerID])),0,LEN([c].[CustomerID])))) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [Order] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_correlated_subquery_projection() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[CustomerID] -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] -) AS [t] -ORDER BY [t].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_distinct_average() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([t].[OrderID]),0,[t].[OrderID]))) -FROM ( - SELECT DISTINCT [o].[OrderID] - FROM [Orders] AS [o] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_multi_level2() : - AssertSql( - @"SELECT ( - SELECT TOP 1 [o].[OrderDate] - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [OrderDates] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_expression_int_to_string() : - AssertSql( - @"SELECT Str([o].[OrderID]) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_expression_long_to_string() : - AssertSql( - @"SELECT Str([o].[OrderID]) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_expression_other_to_string() : - AssertSql( - @"SELECT Str([o].[OrderDate]) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_multi_level2() : - AssertSql( - @"SELECT ( - SELECT TOP 1 [o].[OrderDate] - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [OrderDates] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_expression_int_to_string() : - AssertSql( - @"SELECT Str([o].[OrderID]) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_expression_long_to_string() : - AssertSql( - @"SELECT Str([o].[OrderID]) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_expression_other_to_string() : - AssertSql( - @"SELECT Str([o].[OrderDate]) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_EndsWith_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE RIGHT([c].[ContactName], LEN('b')) = 'b'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_EndsWith_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (RIGHT([c].[ContactName], LEN([c].[ContactName])) = [c].[ContactName]) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_EndsWith_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (RIGHT([c].[ContactName], LEN([c].[ContactName])) = [c].[ContactName]) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_EndsWith_MethodCall() : - AssertSql( - @"@__LocalMethod2_0='m' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (RIGHT([c].[ContactName], LEN(@__LocalMethod2_0)) = @__LocalMethod2_0) OR (@__LocalMethod2_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_compare_with_parameter() : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_in_complex_predicate() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[ProductID] > 100) AND ([p].[Discontinued] = True)) OR ([p].[Discontinued] = True)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_negated_twice() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_parameter() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE @__prm_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_client_side_negated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_equals_constant() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_false() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_shadow() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_false_shadow() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_bool_member_false() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_complex_negated_expression_optimized() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[Discontinued] = False) AND ([p].[ProductID] < 60)) AND ([p].[ProductID] > 30)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_method_call_closure_via_query_cache() : - AssertSql( - @"@__GetCity_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0", - // - @"@__GetCity_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_is_null() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM [Employees] AS [e2] -WHERE [e2].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM [Employees] AS [e2] -WHERE [e2].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM [Employees] AS [e2] -WHERE [e2].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_closure() : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_static_field_access_closure_via_query_cache() : - AssertSql( - @"@__StaticFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0", - // - @"@__StaticFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_closure_constant() : - AssertSql( - @"@__predicate_0='True' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE @__predicate_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_entity_equality_one_element_SingleOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_shadow_subquery_FirstOrDefault() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[Title] = ( - SELECT TOP 1 [e2].[Title] - FROM [Employees] AS [e2] - ORDER BY [e2].[Title] -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_false() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_using_int_overload_on_mismatched_types() : - AssertSql( - @"@__shortPrm_0='1' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] = @__shortPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_closure_via_query_cache() : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0", - // - @"@__city_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition2_FirstOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t] -WHERE [t].[FirstName] = ( - SELECT TOP 1 [e0].[FirstName] - FROM [Employees] AS [e0] - ORDER BY [e0].[EmployeeID] -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_on_mismatched_types_nullable_int_long() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_false() : - AssertSql( - @"@__flag_0='False' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ((@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_0 <> True) AND ([p].[UnitsInStock] < 20))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_sin() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (SIN([od].[Discount]) > 0E0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_select_many_or_with_parameter() : - AssertSql( - @"@__lisboa_1='Lisboa' (Nullable = false) (Size = 6) -@__london_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN (@__london_0, 'Berlin', 'Seattle', @__lisboa_1)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_is_not_null() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM [Employees] AS [e2] -WHERE [e2].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM [Employees] AS [e2] -WHERE [e2].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM [Employees] AS [e2] -WHERE [e2].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_true() : - AssertSql( - @"@__flag_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ((@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_0 <> True) AND ([p].[UnitsInStock] < 20))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_closure_via_query_cache_nullable_type() : - AssertSql( - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_nested_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0", - // - @"@__city_Nested_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_method_call_nullable_type_reverse_closure_via_query_cache() : - AssertSql( - @"@__city_NullableInt_0='1' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0", - // - @"@__city_NullableInt_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_exp() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (EXP([od].[Discount]) > 1E0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE [e1].[FirstName] = ( - SELECT TOP 1 [e].[FirstName] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_static_property_access_closure_via_query_cache() : - AssertSql( - @"@__StaticPropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0", - // - @"@__StaticPropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_entity_equality_no_elements_FirstOrDefault() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE ( - SELECT TOP 1 [e2].[EmployeeID] - FROM [Employees] AS [e2] - WHERE [e2].[EmployeeID] = 42 -) = 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_string_length() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE CInt(IIf(IsNull(LEN([c].[City])),0,LEN([c].[City]))) = 6"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_cos() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (COS([od].[Discount]) > 0E0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_simple_closure_via_query_cache_nullable_type_reverse() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0", - // - @"@__city_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_null_is_not_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_nested_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0", - // - @"@__city_Nested_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0", - // - @"@__city_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_on_matched_nullable_int_types() : - AssertSql( - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE @__nullableIntPrm_0 = [e].[ReportsTo]", - // - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__nullableIntPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_with_false_as_result_false() : - AssertSql( - @"@__flag_0='False' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_new_instance_field_access_closure_via_query_cache() : - AssertSql( - @"@__InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0", - // - @"@__InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_entity_equality_multiple_elements_FirstOrDefault() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE ( - SELECT TOP 1 [e2].[EmployeeID] - FROM [Employees] AS [e2] - WHERE ([e2].[EmployeeID] <> [e1].[ReportsTo]) OR [e1].[ReportsTo] IS NULL -) = 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_using_object_overload_on_mismatched_types() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_on_mismatched_types_nullable_long_nullable_int() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_entity_equality_one_element_FirstOrDefault() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE ( - SELECT TOP 1 [e2].[EmployeeID] - FROM [Employees] AS [e2] - WHERE [e2].[EmployeeID] = [e1].[ReportsTo] -) = 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_tan() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (TAN([od].[Discount]) > 0E0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_false() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_using_int_overload_on_mismatched_types() : - AssertSql( - @"@__shortPrm_0='1' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] = @__shortPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0", - // - @"@__city_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_on_matched_nullable_int_types() : - AssertSql( - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE @__nullableIntPrm_0 = [e].[ReportsTo]", - // - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__nullableIntPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_method_call_closure_via_query_cache() : - AssertSql( - @"@__GetCity_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0", - // - @"@__GetCity_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_false() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_using_int_overload_on_mismatched_types() : - AssertSql( - @"@__shortPrm_0='1' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] = @__shortPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_sin() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (SIN([od].[Discount]) > 0E0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_nested_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0", - // - @"@__city_Nested_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_method_call_nullable_type_reverse_closure_via_query_cache() : - AssertSql( - @"@__city_NullableInt_0='1' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0", - // - @"@__city_NullableInt_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_exp() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (EXP([od].[Discount]) > 1E0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_cos() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (COS([od].[Discount]) > 0E0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_nested_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0", - // - @"@__city_Nested_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0", - // - @"@__city_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_on_matched_nullable_int_types() : - AssertSql( - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE @__nullableIntPrm_0 = [e].[ReportsTo]", - // - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__nullableIntPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_new_instance_field_access_closure_via_query_cache() : - AssertSql( - @"@__InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0", - // - @"@__InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_tan() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (TAN([od].[Discount]) > 0E0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_on_matched_nullable_int_types() : - AssertSql( - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE @__nullableIntPrm_0 = [e].[ReportsTo]", - // - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__nullableIntPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0", - // - @"@__city_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_DateTime_Date() : - AssertSql( - @"SELECT [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE IIf(IsNull([e].[OrderDate]), NULL, DateValue([e].[OrderDate])) IN (#07/04/1996 00:00:00#, #07/16/1996 00:00:00#)", - // - @"SELECT [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE IIf(IsNull([e].[OrderDate]), NULL, DateValue([e].[OrderDate])) IN (#07/04/1996 00:00:00#)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_complex_orderby() : - AssertSql( - @"SELECT [c].[CustomerID] + [c].[City] AS [A] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] + [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_complex_orderby() : - AssertSql( - @"SELECT [c].[CustomerID] + [c].[City] AS [Property] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] + [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_client_Take() : - AssertSql( - @"@__p_1='10' - -SELECT TOP @__p_1 [o].[EmployeeID], [o].[City], [o].[Country], [o].[FirstName], [o].[ReportsTo], [o].[Title] -FROM [Employees] AS [o] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupBy_DateTimeOffset_Property() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL -ORDER BY DatePart(""m"", [o].[OrderDate])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.GroupBy_DateTimeOffset_Property() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL -ORDER BY DatePart(""m"", [o].[OrderDate])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.OrderBy_integer() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Parameter_extraction_short_circuits_3() : - AssertSql( - @"@__dateFilter_Value_Year_1='1996' -@__dateFilter_Value_Month_0='7' - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10400) OR (([o].[OrderDate] IS NOT NULL AND (DatePart('m', [o].[OrderDate]) = @__dateFilter_Value_Month_0)) AND (DatePart('yyyy', [o].[OrderDate]) = @__dateFilter_Value_Year_1))", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Parameter_extraction_short_circuits_3() : - AssertSql( - @"@__dateFilter_Value_Year_1='1996' -@__dateFilter_Value_Month_0='7' - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10400) OR (([o].[OrderDate] IS NOT NULL AND (DatePart('m', [o].[OrderDate]) = @__dateFilter_Value_Month_0)) AND (DatePart('yyyy', [o].[OrderDate]) = @__dateFilter_Value_Year_1))", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Parameter_extraction_short_circuits_2() : - AssertSql( - @"@__dateFilter_Value_Month_0='7' -@__dateFilter_Value_Year_1='1996' - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10400) AND (([o].[OrderDate] IS NOT NULL AND (DatePart('m', [o].[OrderDate]) = @__dateFilter_Value_Month_0)) AND (DatePart('yyyy', [o].[OrderDate]) = @__dateFilter_Value_Year_1))", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Query_expression_with_to_string_and_contains() : - AssertSql( - @"SELECT [o].[CustomerID] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL AND (Instr(Str([o].[EmployeeID]), '10') > 0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_chain() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'QUICK') AND ([o].[OrderDate] > #01/01/1998 00:00:00#)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_using_int_overload_on_mismatched_types() : - AssertSql( - @"@__shortPrm_0='1' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] = @__shortPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Skip_Take() : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0", - // - @"@__city_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_expression_date_add_year() : - AssertSql( - @"SELECT DateAdd('yyyy', 1, [o].[OrderDate]) AS [OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Skip() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Skip_Take() : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Skip_no_orderby() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a' - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Skip_Take() : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Skip_Take() : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Skip_Take() : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Compare_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_datetime_utcnow() : - AssertSql( - @"@__myDatetime_0='04/10/2015 00:00:00' (DbType = DateTime) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Now() <> @__myDatetime_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_datetime_now() : - AssertSql( - @"@__myDatetime_0='04/10/2015 00:00:00' (DbType = DateTime) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Now() <> @__myDatetime_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_datetime_utcnow() : - AssertSql( - @"@__myDatetime_0='04/10/2015 00:00:00' (DbType = DateTime) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Now() <> @__myDatetime_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_functions_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_functions_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE CInt(IIf(IsNull(Len([c].[CustomerID])),0,Len([c].[CustomerID])))^2E0 = 25E0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_equals_using_int_overload_on_mismatched_types() : - AssertSql( - @"@__shortPrm_0='1' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] = @__shortPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_guid_newguid() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE NewGuid() <> '00000000-0000-0000-0000-000000000000'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_power() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[Discount]^2E0 > 0.05000000074505806E0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_sin() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (SIN([od].[Discount]) > 0E0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_sign() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Sgn([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_log() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE (([od].[OrderID] = 11077) AND ([od].[Discount] > 0)) AND (LOG([od].[Discount]) < 0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_log() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE (([od].[OrderID] = 11077) AND ([od].[Discount] > 0)) AND (LOG([od].[Discount]) < 0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_asin() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Atn([od].[Discount] / Sqr(-[od].[Discount] * [od].[Discount] + 1)) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_acos() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND ((1.5707963267948966 + Atn(-[od].[Discount] / Sqr(-[od].[Discount] * [od].[Discount] + 1))) > 1)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_atan() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Atn([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_method_call_closure_via_query_cache() : - AssertSql( - @"@__GetCity_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0", - // - @"@__GetCity_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_sqrt() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Sqr([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_nested_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0", - // - @"@__city_Nested_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_method_call_nullable_type_reverse_closure_via_query_cache() : - AssertSql( - @"@__city_NullableInt_0='1' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0", - // - @"@__city_NullableInt_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_nested_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0", - // - @"@__city_Nested_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_new_instance_field_access_closure_via_query_cache() : - AssertSql( - @"@__InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0", - // - @"@__InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_log10() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE (([od].[OrderID] = 11077) AND ([od].[Discount] > 0)) AND ((Log([od].[Discount]) / 2.3025850929940459) < 0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_log_new_base() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE (([od].[OrderID] = 11077) AND ([od].[Discount] > 0)) AND ((Log([od].[Discount]) / Log(7)) < 0)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_math_truncate() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE Int([od].[UnitPrice]) > 10.0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_method_call_nullable_type_reverse_closure_via_query_cache() : - AssertSql( - @"@__city_NullableInt_0='1' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0", - // - @"@__city_NullableInt_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition2_FirstOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t] -WHERE [t].[FirstName] = ( - SELECT TOP 1 [e0].[FirstName] - FROM [Employees] AS [e0] - ORDER BY [e0].[EmployeeID] -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_is_null() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM [Employees] AS [e2] -WHERE [e2].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM [Employees] AS [e2] -WHERE [e2].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM [Employees] AS [e2] -WHERE [e2].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_entity_equality_one_element_SingleOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_is_not_null() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM [Employees] AS [e2] -WHERE [e2].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM [Employees] AS [e2] -WHERE [e2].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM [Employees] AS [e2] -WHERE [e2].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_entity_equality_no_elements_FirstOrDefault() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE ( - SELECT TOP 1 [e2].[EmployeeID] - FROM [Employees] AS [e2] - WHERE [e2].[EmployeeID] = 42 -) = 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0", - // - @"@__city_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_entity_equality_multiple_elements_FirstOrDefault() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE ( - SELECT TOP 1 [e2].[EmployeeID] - FROM [Employees] AS [e2] - WHERE ([e2].[EmployeeID] <> [e1].[ReportsTo]) OR [e1].[ReportsTo] IS NULL -) = 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_entity_equality_one_element_FirstOrDefault() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE ( - SELECT TOP 1 [e2].[EmployeeID] - FROM [Employees] AS [e2] - WHERE [e2].[EmployeeID] = [e1].[ReportsTo] -) = 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_query_composition_is_null() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM [Employees] AS [e2] -WHERE [e2].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM [Employees] AS [e2] -WHERE [e2].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM [Employees] AS [e2] -WHERE [e2].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_shadow_subquery_FirstOrDefault() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[Title] = ( - SELECT TOP 1 [e2].[Title] - FROM [Employees] AS [e2] - ORDER BY [e2].[Title] -)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_select_many_or_with_parameter() : - AssertSql( - @"@__london_0='London' (Nullable = false) (Size = 6) -@__lisboa_1='Lisboa' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN (@__london_0, 'Berlin', 'Seattle', @__lisboa_1)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_static_field_access_closure_via_query_cache() : - AssertSql( - @"@__StaticFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0", - // - @"@__StaticFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_false() : - AssertSql( - @"@__flag_0='False' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ((@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_0 <> True) AND ([p].[UnitsInStock] < 20))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_true() : - AssertSql( - @"@__flag_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ((@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_0 <> True) AND ([p].[UnitsInStock] < 20))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_static_property_access_closure_via_query_cache() : - AssertSql( - @"@__StaticPropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0", - // - @"@__StaticPropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_string_length() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE CInt(IIf(IsNull(Len([c].[City])),0,Len([c].[City]))) = 6"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_with_another_condition() : - AssertSql( - @"@__productId_0='15' -@__flag_1='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[ProductID] < @__productId_0) AND (((@__flag_1 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_1 <> True) AND ([p].[UnitsInStock] < 20)))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_with_false_as_result_false() : - AssertSql( - @"@__flag_0='False' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_with_false_as_result_true() : - AssertSql( - @"@__flag_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_false() : - AssertSql( - @"@__flag_0='False' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ((@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_0 <> True) AND ([p].[UnitsInStock] < 20))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_true() : - AssertSql( - @"@__flag_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ((@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_0 <> True) AND ([p].[UnitsInStock] < 20))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_ternary_boolean_condition_with_another_condition() : - AssertSql( - @"@__productId_0='15' -@__flag_1='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[ProductID] < @__productId_0) AND (((@__flag_1 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_1 <> True) AND ([p].[UnitsInStock] < 20)))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A')) AND (([c].[City] <> 'London') OR [c].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A'))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A'))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_complex_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [A] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[A] LIKE 'A' + '%' AND (LEFT([t].[A], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_member_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] LIKE 'A' + '%' AND (LEFT([t].[Property], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A')) AND (([c].[City] <> 'London') OR [c].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_member_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[CustomerID] LIKE 'A' + '%' AND (LEFT([t].[CustomerID], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Contains_with_local_collection_empty_closure() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE 0 = 1"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A'))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%' AND (LEFT([o].[CustomerID], LEN('A')) = 'A'))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_complex_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] LIKE 'A' + '%' AND (LEFT([t].[Property], LEN('A')) = 'A')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.String_Compare_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Query_expression_with_to_string_and_contains() : - AssertSql( - @"SELECT [o].[CustomerID] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL AND (Instr(1, Str([o].[EmployeeID]), '10', 0) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Where_bitwise_and_enum() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[Rank] BAND 1) > 0)", - // - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[Rank] BAND 1) = 1)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Where_bitwise_and_enum() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[Rank] BAND 1) > 0)", - // - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[Rank] BAND 1) = 1)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Null_propagation_optimization5() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (CInt(IIf(IsNull(Len([g].[LeaderNickname])),0,Len([g].[LeaderNickname]))) = 5)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Client_method_on_collection_navigation_in_additional_from_clause() : - AssertSql( - @"SELECT [g].[Nickname] AS [g], [g].[SquadId] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] = 'Officer'", - // - @"@_outer_Nickname='Baird' (Nullable = false) (Size = 5) -@_outer_SquadId='1' - -SELECT [g0].[Nickname], [g0].[SquadId], [g0].[AssignedCityName], [g0].[CityOrBirthName], [g0].[Discriminator], [g0].[FullName], [g0].[HasSoulPatch], [g0].[LeaderNickname], [g0].[LeaderSquadId], [g0].[Rank] -FROM [Gear] AS [g0] -WHERE [g0].[Discriminator] IN ('Officer', 'Gear') AND ((@_outer_Nickname = [g0].[LeaderNickname]) AND (@_outer_SquadId = [g0].[LeaderSquadId]))", - // - @"@_outer_Nickname='Marcus' (Nullable = false) (Size = 6) -@_outer_SquadId='1' - -SELECT [g0].[Nickname], [g0].[SquadId], [g0].[AssignedCityName], [g0].[CityOrBirthName], [g0].[Discriminator], [g0].[FullName], [g0].[HasSoulPatch], [g0].[LeaderNickname], [g0].[LeaderSquadId], [g0].[Rank] -FROM [Gear] AS [g0] -WHERE [g0].[Discriminator] IN ('Officer', 'Gear') AND ((@_outer_Nickname = [g0].[LeaderNickname]) AND (@_outer_SquadId = [g0].[LeaderSquadId]))"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_predicate_negated_complex2() : - AssertSql( - @"SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE IIf( - ([t0].[HasSoulPatch] <> True) AND [t0].[HasSoulPatch] IS NOT NULL, - False, - [t0].[HasSoulPatch] -) <> True"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Where_and_order_by_are_properly_lifted_from_subquery_created_by_tracking() : - AssertSql( - @"SELECT [g].[FullName] -FROM [Gear] AS [g] -WHERE ([g].[Discriminator] IN ('Officer', 'Gear') AND ([g].[FullName] <> 'Augustus Cole')) AND ([g].[HasSoulPatch] = False) -ORDER BY [g].[FullName], [g].[Rank]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Count_with_optional_navigation_is_translated_to_sql() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Gear] AS [g] -LEFT JOIN [CogTag] AS [g#Tag] ON ([g].[Nickname] = [g#Tag].[GearNickName]) AND ([g].[SquadId] = [g#Tag].[GearSquadId])) -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g#Tag].[Note] <> 'Foo') OR [g#Tag].[Note] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Client_method_on_collection_navigation_in_predicate_accessed_by_ef_property() : - AssertSql( - @"SELECT [g].[FullName], [g].[Nickname] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND ([g].[HasSoulPatch] = False)", - // - @"@_outer_FullName='Augustus Cole' (Nullable = false) (Size = 13) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE @_outer_FullName = [w].[OwnerFullName]", - // - @"@_outer_FullName='Dominic Santiago' (Nullable = false) (Size = 16) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE @_outer_FullName = [w].[OwnerFullName]", - // - @"@_outer_FullName='Garron Paduk' (Nullable = false) (Size = 12) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE @_outer_FullName = [w].[OwnerFullName]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_nested_ternary_operations() : - AssertSql( - @"SELECT [w].[Id], IIf( - [w].[IsAutomatic] = False, - IIf( - [w].[AmmunitionType] = 1, - 'ManualCartridge', - 'Manual' - ), - 'Auto' -) AS [IsManualCartidge] -FROM [Weapon] AS [w]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Subquery_containing_SelectMany_projecting_main_from_clause_gets_lifted() : - AssertSql( - @"SELECT [gear].[FullName] -FROM [Gear] AS [gear] -, [CogTag] AS [tag] -WHERE [gear].[Discriminator] IN ('Officer', 'Gear') AND ([gear].[HasSoulPatch] = True) -ORDER BY [gear].[FullName], [tag].[Note]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Null_propagation_optimization2() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (RIGHT([g].[LeaderNickname], Len('us')) = 'us')"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_Where_Navigation() : - AssertSql( - @"SELECT [ct].[Id], [ct].[GearNickName], [ct].[GearSquadId], [ct].[Note] -FROM ([CogTag] AS [ct] -LEFT JOIN ( - SELECT [ct#Gear].* - FROM [Gear] AS [ct#Gear] - WHERE [ct#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t] ON ([ct].[GearNickName] = [t].[Nickname]) AND ([ct].[GearSquadId] = [t].[SquadId])) -WHERE [t].[Nickname] = 'Marcus'"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.FirstOrDefault_with_manually_created_groupjoin_is_translated_to_sql() : - AssertSql( - @"SELECT TOP 1 [s].[Id], [s].[InternalNumber], [s].[Name] -FROM ([Squad] AS [s] -LEFT JOIN ( - SELECT [g].* - FROM [Gear] AS [g] - WHERE [g].[Discriminator] IN ('Officer', 'Gear') -) AS [t] ON [s].[Id] = [t].[SquadId]) -WHERE [s].[Name] = 'Kilo'"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_list_initializers() : - AssertSql( - @"SELECT [t0].[SquadId], [t0].[SquadId] + 1 -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Order_by_is_properly_lifted_from_subquery_with_same_order_by_in_the_outer_query() : - AssertSql( - @"SELECT [g].[FullName] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND ([g].[HasSoulPatch] = False) -ORDER BY [g].[FullName]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_predicate2() : - AssertSql( - @"SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE [t0].[HasSoulPatch] = True"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.All_with_optional_navigation_is_translated_to_sql() : - AssertSql( - @"SELECT IIf( - NOT EXISTS ( - SELECT 1 - FROM ([Gear] AS [g] - LEFT JOIN [CogTag] AS [g#Tag] ON ([g].[Nickname] = [g#Tag].[GearNickName]) AND ([g].[SquadId] = [g#Tag].[GearSquadId])) - WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND ([g#Tag].[Note] = 'Foo')), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Client_method_on_collection_navigation_in_predicate() : - AssertSql( - @"SELECT [g].[FullName], [g].[Nickname] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND ([g].[HasSoulPatch] = True)", - // - @"@_outer_FullName='Damon Baird' (Nullable = false) (Size = 11) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE @_outer_FullName = [w].[OwnerFullName]", - // - @"@_outer_FullName='Marcus Fenix' (Nullable = false) (Size = 12) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE @_outer_FullName = [w].[OwnerFullName]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_predicate_negated() : - AssertSql( - @"SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t0].[HasSoulPatch] <> True) AND [t0].[HasSoulPatch] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Where_bitwise_and_nullable_enum_with_constant() : - AssertSql( - @"SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE ([w].[AmmunitionType] BAND 1) > 0"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Where_enum_has_flag_with_non_nullable_parameter() : - AssertSql( - @"@__parameter_0='Corporal' - -SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[Rank] BAND @__parameter_0) = @__parameter_0)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_DTOs() : - AssertSql( - @"SELECT [t0].[SquadId] AS [Id] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_ternary_operation_with_has_value_not_null() : - AssertSql( - @"SELECT [w].[Id], IIf( - [w].[AmmunitionType] IS NOT NULL AND ([w].[AmmunitionType] = 1), - 'Yes', - 'No' -) AS [IsCartidge] -FROM [Weapon] AS [w] -WHERE [w].[AmmunitionType] IS NOT NULL AND ([w].[AmmunitionType] = 1)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_orderby() : - AssertSql( - @"SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL -ORDER BY [t0].[SquadId]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_ternary_operation_with_boolean() : - AssertSql( - @"SELECT [w].[Id], IIf( - [w].[IsAutomatic] = True, - 1, - 0 -) AS [Num] -FROM [Weapon] AS [w]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_inverted_boolean() : - AssertSql( - @"SELECT [w].[Id], IIf( - [w].[IsAutomatic] = False, - True, - False -) AS [Manual] -FROM [Weapon] AS [w] -WHERE [w].[IsAutomatic] = True"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Client_method_on_collection_navigation_in_outer_join_key() : - AssertSql( - @"SELECT [g].[FullName], [g].[Nickname] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear')", - // - @"@_outer_FullName1='Damon Baird' (Nullable = false) (Size = 11) - -SELECT [w0].[Id], [w0].[AmmunitionType], [w0].[IsAutomatic], [w0].[Name], [w0].[OwnerFullName], [w0].[SynergyWithId] -FROM [Weapon] AS [w0] -WHERE @_outer_FullName1 = [w0].[OwnerFullName]", - // - @"@_outer_FullName1='Augustus Cole' (Nullable = false) (Size = 13) - -SELECT [w0].[Id], [w0].[AmmunitionType], [w0].[IsAutomatic], [w0].[Name], [w0].[OwnerFullName], [w0].[SynergyWithId] -FROM [Weapon] AS [w0] -WHERE @_outer_FullName1 = [w0].[OwnerFullName]", - // - @"@_outer_FullName1='Dominic Santiago' (Nullable = false) (Size = 16) - -SELECT [w0].[Id], [w0].[AmmunitionType], [w0].[IsAutomatic], [w0].[Name], [w0].[OwnerFullName], [w0].[SynergyWithId] -FROM [Weapon] AS [w0] -WHERE @_outer_FullName1 = [w0].[OwnerFullName]", - // - @"@_outer_FullName1='Marcus Fenix' (Nullable = false) (Size = 12) - -SELECT [w0].[Id], [w0].[AmmunitionType], [w0].[IsAutomatic], [w0].[Name], [w0].[OwnerFullName], [w0].[SynergyWithId] -FROM [Weapon] AS [w0] -WHERE @_outer_FullName1 = [w0].[OwnerFullName]", - // - @"@_outer_FullName1='Garron Paduk' (Nullable = false) (Size = 12) - -SELECT [w0].[Id], [w0].[AmmunitionType], [w0].[IsAutomatic], [w0].[Name], [w0].[OwnerFullName], [w0].[SynergyWithId] -FROM [Weapon] AS [w0] -WHERE @_outer_FullName1 = [w0].[OwnerFullName]", - // - @"SELECT [o].[FullName], [o].[Nickname] AS [o] -FROM [Gear] AS [o] -WHERE ([o].[Discriminator] = 'Officer') AND ([o].[HasSoulPatch] = True)", - // - @"@_outer_FullName='Damon Baird' (Nullable = false) (Size = 11) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE @_outer_FullName = [w].[OwnerFullName]", - // - @"@_outer_FullName='Marcus Fenix' (Nullable = false) (Size = 12) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE @_outer_FullName = [w].[OwnerFullName]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_projection() : - AssertSql( - @"SELECT [t0].[SquadId] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_groupby() : - AssertSql( - @"SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note], [t0].[SquadId] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL -ORDER BY [t0].[SquadId]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_multiple_conditions() : - AssertSql( - @"SELECT [w].[Id], IIf( - ([w].[IsAutomatic] = False) AND ([w].[SynergyWithId] = 1), - True, - False -) AS [IsCartidge] -FROM [Weapon] AS [w]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Null_propagation_optimization3() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (RIGHT([g].[LeaderNickname], Len('us')) = 'us')"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_correlated_filtered_collection_with_composite_key() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] = 'Officer'", - // - @"@_outer_Nickname='Baird' (Nullable = false) (Size = 5) -@_outer_SquadId='1' - -SELECT [r].[Nickname], [r].[SquadId], [r].[AssignedCityName], [r].[CityOrBirthName], [r].[Discriminator], [r].[FullName], [r].[HasSoulPatch], [r].[LeaderNickname], [r].[LeaderSquadId], [r].[Rank] -FROM [Gear] AS [r] -WHERE ([r].[Discriminator] IN ('Officer', 'Gear') AND ([r].[Nickname] <> 'Dom')) AND ((@_outer_Nickname = [r].[LeaderNickname]) AND (@_outer_SquadId = [r].[LeaderSquadId]))", - // - @"@_outer_Nickname='Marcus' (Nullable = false) (Size = 6) -@_outer_SquadId='1' - -SELECT [r].[Nickname], [r].[SquadId], [r].[AssignedCityName], [r].[CityOrBirthName], [r].[Discriminator], [r].[FullName], [r].[HasSoulPatch], [r].[LeaderNickname], [r].[LeaderSquadId], [r].[Rank] -FROM [Gear] AS [r] -WHERE ([r].[Discriminator] IN ('Officer', 'Gear') AND ([r].[Nickname] <> 'Dom')) AND ((@_outer_Nickname = [r].[LeaderNickname]) AND (@_outer_SquadId = [r].[LeaderSquadId]))"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Subquery_created_by_include_gets_lifted_nested() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank], [g#CityOfBirth].[Name], [g#CityOfBirth].[Location] -FROM ([Gear] AS [g] -INNER JOIN [City] AS [g#CityOfBirth] ON [g].[CityOrBirthName] = [g#CityOfBirth].[Name]) -WHERE ([g].[Discriminator] IN ('Officer', 'Gear') AND EXISTS ( - SELECT 1 - FROM [Weapon] AS [w] - WHERE [g].[FullName] = [w].[OwnerFullName])) AND ([g].[HasSoulPatch] = False) -ORDER BY [g].[Nickname], [g].[Rank]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_binary_expression() : - AssertSql( - @"SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t0].[HasSoulPatch] = True) OR (Instr(1, [t].[Note], 'Cole', 0) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Any_with_optional_navigation_as_subquery_predicate_is_translated_to_sql() : - AssertSql( - @"SELECT [s].[Name] -FROM [Squad] AS [s] -WHERE NOT EXISTS ( - SELECT 1 - FROM ([Gear] AS [m] - LEFT JOIN [CogTag] AS [m#Tag] ON ([m].[Nickname] = [m#Tag].[GearNickName]) AND ([m].[SquadId] = [m#Tag].[GearSquadId])) - WHERE ([m].[Discriminator] IN ('Officer', 'Gear') AND ([m#Tag].[Note] = 'Dom''s Tag')) AND ([s].[Id] = [m].[SquadId]))"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Where_has_flag_with_nullable_parameter() : - AssertSql( - @"@__parameter_0='Corporal' - -SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[Rank] BAND @__parameter_0) = @__parameter_0)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Singleton_Navigation_With_Member_Access() : - AssertSql( - @"SELECT [t].[CityOrBirthName] AS [B] -FROM ([CogTag] AS [ct] -LEFT JOIN ( - SELECT [ct#Gear].* - FROM [Gear] AS [ct#Gear] - WHERE [ct#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t] ON ([ct].[GearNickName] = [t].[Nickname]) AND ([ct].[GearSquadId] = [t].[SquadId])) -WHERE ([t].[Nickname] = 'Marcus') AND (([t].[CityOrBirthName] <> 'Ephyra') OR [t].[CityOrBirthName] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Where_enum_has_flag() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[Rank] BAND 1) = 1)", - // - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[Rank] BAND 5) = 5)", - // - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[Rank] BAND 1) = 1)", - // - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[Rank] BAND 1) = 1)", - // - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND ((1 BAND [g].[Rank]) = [g].[Rank])"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Navigation_access_via_EFProperty_on_derived_entity_using_cast() : - AssertSql( - @"SELECT [f].[Name], [t].[ThreatLevel] AS [Threat] -FROM ([Faction] AS [f] -LEFT JOIN ( - SELECT [f#Commander].* - FROM [LocustLeader] AS [f#Commander] - WHERE [f#Commander].[Discriminator] = 'LocustCommander' -) AS [t] ON [f].[CommanderName] = [t].[Name]) -WHERE ([f].[Discriminator] = 'LocustHorde') AND ([f].[Discriminator] = 'LocustHorde') -ORDER BY [f].[Name]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_null_propagation_negative2() : - AssertSql( - @"SELECT IIf( - [g1].[LeaderNickname] IS NOT NULL, - [g2].[LeaderNickname], - NULL -) -FROM [Gear] AS [g1] -, [Gear] AS [g2] -WHERE [g1].[Discriminator] IN ('Officer', 'Gear')"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Coalesce_operator_in_predicate_with_other_conditions() : - AssertSql( - @"SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE ([w].[AmmunitionType] = 1) AND (IIf(IsNull([w].[IsAutomatic]), False, [w].[IsAutomatic]) = True)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Where_nullable_enum_with_nullable_parameter() : - AssertSql( - @"@__ammunitionType_0='Cartridge' - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE [w].[AmmunitionType] = @__ammunitionType_0", - // - @"SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE [w].[AmmunitionType] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Order_by_then_by_is_properly_lifted_from_subquery_created_by_include() : - AssertSql( - @"SELECT [g].[FullName] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND ([g].[HasSoulPatch] = False) -ORDER BY [g].[FullName], [g].[Rank], [g].[Nickname] DESC"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Distinct_with_optional_navigation_is_translated_to_sql() : - AssertSql( - @"SELECT DISTINCT [g].[HasSoulPatch] -FROM ([Gear] AS [g] -LEFT JOIN [CogTag] AS [g#Tag] ON ([g].[Nickname] = [g#Tag].[GearNickName]) AND ([g].[SquadId] = [g#Tag].[GearSquadId])) -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g#Tag].[Note] <> 'Foo') OR [g#Tag].[Note] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Where_bitwise_and_nullable_enum_with_null_constant() : - AssertSql( - @"SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE ([w].[AmmunitionType] BAND NULL) > 0"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Unnecessary_include_doesnt_get_added_complex_when_projecting_EF_Property() : - AssertSql( - @"SELECT [g].[FullName] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND ([g].[HasSoulPatch] = True) -ORDER BY [g].[Rank]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Order_by_is_properly_lifted_from_subquery_created_by_include() : - AssertSql( - @"SELECT [g].[FullName] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND ([g].[HasSoulPatch] = False) -ORDER BY [g].[FullName], [g].[Rank]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Subquery_containing_join_projecting_main_from_clause_gets_lifted() : - AssertSql( - @"SELECT [gear].[Nickname] -FROM ([Gear] AS [gear] -INNER JOIN [CogTag] AS [tag] ON [gear].[Nickname] = [tag].[GearNickName]) -WHERE [gear].[Discriminator] IN ('Officer', 'Gear') -ORDER BY [gear].[Nickname], [tag].[Note]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_take() : - AssertSql( - @"SELECT [t0].[SquadId] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Navigation_access_on_derived_materialized_entity_using_cast() : - AssertSql( - @"SELECT [f].[Id], [f].[CapitalName], [f].[Discriminator], [f].[Name], [f].[CommanderName], [f].[Eradicated], [t].[ThreatLevel] -FROM ([Faction] AS [f] -LEFT JOIN ( - SELECT [f#Commander].* - FROM [LocustLeader] AS [f#Commander] - WHERE [f#Commander].[Discriminator] = 'LocustCommander' -) AS [t] ON [f].[CommanderName] = [t].[Name]) -WHERE ([f].[Discriminator] = 'LocustHorde') AND ([f].[Discriminator] = 'LocustHorde') -ORDER BY [f].[Name]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_Navigation_Null_Coalesce_To_Clr_Type() : - AssertSql( - @"SELECT TOP 1 CBool(IIf(IsNull(IIf(IsNull([w#SynergyWith].[IsAutomatic]), False, [w#SynergyWith].[IsAutomatic])),0,IIf(IsNull([w#SynergyWith].[IsAutomatic]), False, [w#SynergyWith].[IsAutomatic]))) AS [IsAutomatic] -FROM ([Weapon] AS [w] -LEFT JOIN [Weapon] AS [w#SynergyWith] ON [w].[SynergyWithId] = [w#SynergyWith].[Id])"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Non_unicode_parameter_is_used_for_non_unicode_column() : - AssertSql( - @"@__value_0='Unknown' (Nullable = false) (Size = 7) - -SELECT [c].[Name], [c].[Location] -FROM [City] AS [c] -WHERE [c].[Location] = @__value_0"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_all() : - AssertSql( - @"SELECT IIf( - NOT EXISTS ( - SELECT 1 - FROM ([CogTag] AS [t] - LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') - ) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) - WHERE (([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL) AND ([t0].[HasSoulPatch] = False)), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Where_bitwise_and_integral() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[Rank] BAND 1) = 1)", - // - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[Rank] BAND 1) = 1)", - // - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[Rank] BAND 1) = 1)", - // - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[Rank] BAND 1) = 1)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Subquery_containing_join_gets_lifted_clashing_names() : - AssertSql( - @"SELECT [gear].[Nickname] -FROM (([Gear] AS [gear] -INNER JOIN [CogTag] AS [tag] ON [gear].[Nickname] = [tag].[GearNickName]) -INNER JOIN [CogTag] AS [tag0] ON [gear].[Nickname] = [tag0].[GearNickName]) -WHERE [gear].[Discriminator] IN ('Officer', 'Gear') AND (([tag].[GearNickName] <> 'Cole Train') OR [tag].[GearNickName] IS NULL) -ORDER BY [gear].[Nickname], [tag0].[Id], [tag].[Note]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Subquery_is_not_lifted_from_additional_from_clause() : - AssertSql( - @"SELECT [g1].[FullName] AS [Name1] -FROM [Gear] AS [g1] -WHERE [g1].[Discriminator] IN ('Officer', 'Gear') AND ([g1].[HasSoulPatch] = True) -ORDER BY [g1].[FullName]", - // - @"SELECT [g0].[HasSoulPatch], [g0].[FullName] -FROM [Gear] AS [g0] -WHERE [g0].[Discriminator] IN ('Officer', 'Gear') -ORDER BY [g0].[Rank]", - // - @"SELECT [g0].[HasSoulPatch], [g0].[FullName] -FROM [Gear] AS [g0] -WHERE [g0].[Discriminator] IN ('Officer', 'Gear') -ORDER BY [g0].[Rank]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Where_is_properly_lifted_from_subquery_created_by_include() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank], [g#Tag].[Id], [g#Tag].[GearNickName], [g#Tag].[GearSquadId], [g#Tag].[Note] -FROM ([Gear] AS [g] -LEFT JOIN [CogTag] AS [g#Tag] ON ([g].[Nickname] = [g#Tag].[GearNickName]) AND ([g].[SquadId] = [g#Tag].[GearSquadId])) -WHERE ([g].[Discriminator] IN ('Officer', 'Gear') AND ([g].[FullName] <> 'Augustus Cole')) AND ([g].[HasSoulPatch] = False) -ORDER BY [g].[FullName]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_comparison_with_null() : - AssertSql( - @"@__ammunitionType_1='Cartridge' -@__ammunitionType_0='Cartridge' - -SELECT [w].[Id], IIf( - [w].[AmmunitionType] = @__ammunitionType_1, - True, - False -) AS [Cartidge] -FROM [Weapon] AS [w] -WHERE [w].[AmmunitionType] = @__ammunitionType_0", - // - @"SELECT [w].[Id], IIf( - [w].[AmmunitionType] IS NULL, - True, - False -) AS [Cartidge] -FROM [Weapon] AS [w] -WHERE [w].[AmmunitionType] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_ternary_operation_with_inverted_boolean() : - AssertSql( - @"SELECT [w].[Id], IIf( - [w].[IsAutomatic] = False, - 1, - 0 -) AS [Num] -FROM [Weapon] AS [w]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_length_of_string_property() : - AssertSql( - @"SELECT [w].[Name], CInt(IIf(IsNull(Len([w].[Name])),0,Len([w].[Name]))) AS [Length] -FROM [Weapon] AS [w]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_enum_has_flag() : - AssertSql( - @"SELECT TOP 1 IIf( - ([g].[Rank] BAND 1) = 1, - True, - False -) AS [hasFlagTrue], IIf( - ([g].[Rank] BAND 2) = 2, - True, - False -) AS [hasFlagFalse] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[Rank] BAND 1) = 1)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Subquery_containing_left_join_projecting_main_from_clause_gets_lifted() : - AssertSql( - @"SELECT [gear].[Nickname] -FROM ([Gear] AS [gear] -LEFT JOIN [CogTag] AS [tag] ON [gear].[Nickname] = [tag].[GearNickName]) -WHERE [gear].[Discriminator] IN ('Officer', 'Gear') -ORDER BY [gear].[Nickname], [gear].[Rank]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_skip() : - AssertSql( - @"SELECT [t0].[SquadId] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Client_method_on_collection_navigation_in_order_by() : - AssertSql( - @"SELECT [g].[FullName], [g].[Nickname] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND ([g].[HasSoulPatch] = False)", - // - @"@_outer_FullName='Augustus Cole' (Nullable = false) (Size = 13) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE @_outer_FullName = [w].[OwnerFullName]", - // - @"@_outer_FullName='Dominic Santiago' (Nullable = false) (Size = 16) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE @_outer_FullName = [w].[OwnerFullName]", - // - @"@_outer_FullName='Garron Paduk' (Nullable = false) (Size = 12) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE @_outer_FullName = [w].[OwnerFullName]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_ternary_operation_multiple_conditions_2() : - AssertSql( - @"SELECT [w].[Id], IIf( - ([w].[IsAutomatic] = False) AND ([w].[SynergyWithId] = 1), - 'Yes', - 'No' -) AS [IsCartidge] -FROM [Weapon] AS [w]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Complex_predicate_with_AndAlso_and_nullable_bool_property() : - AssertSql( - @"SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM ([Weapon] AS [w] -LEFT JOIN ( - SELECT [w#Owner].* - FROM [Gear] AS [w#Owner] - WHERE [w#Owner].[Discriminator] IN ('Officer', 'Gear') -) AS [t] ON [w].[OwnerFullName] = [t].[FullName]) -WHERE ([w].[Id] <> 50) AND ([t].[HasSoulPatch] = False)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Coalesce_operator_in_predicate() : - AssertSql( - @"SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE IIf(IsNull([w].[IsAutomatic]), False, [w].[IsAutomatic]) = True"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Subquery_is_lifted_from_main_from_clause_of_SelectMany() : - AssertSql( - @"SELECT [g].[FullName] AS [Name1], [g2].[FullName] AS [Name2] -FROM [Gear] AS [g] -, [Gear] AS [g2] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[HasSoulPatch] = True) AND ([g2].[HasSoulPatch] = False)) -ORDER BY [g].[FullName], [g].[Rank]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Multiple_order_bys_are_properly_lifted_from_subquery_created_by_include() : - AssertSql( - @"SELECT [g].[FullName] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND ([g].[HasSoulPatch] = False) -ORDER BY [g].[FullName], [g].[Nickname] DESC, [g].[Rank]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_contains() : - AssertSql( - @"SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE (([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL) AND [t0].[SquadId] IN ( - SELECT [g].[SquadId] - FROM [Gear] AS [g] - WHERE [g].[Discriminator] IN ('Officer', 'Gear') -)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Where_bitwise_and_nullable_enum_with_non_nullable_parameter() : - AssertSql( - @"@__ammunitionType_0='Cartridge' - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE ([w].[AmmunitionType] BAND @__ammunitionType_0) > 0"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Where_bitwise_and_nullable_enum_with_nullable_parameter() : - AssertSql( - @"@__ammunitionType_0='Cartridge' - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE ([w].[AmmunitionType] BAND @__ammunitionType_0) > 0", - // - @"@__ammunitionType_0='' (Nullable = false) (DbType = String) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE ([w].[AmmunitionType] BAND @__ammunitionType_0) > 0"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_predicate_negated_complex1() : - AssertSql( - @"SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE IIf( - [t0].[HasSoulPatch] = True, - True, - [t0].[HasSoulPatch] -) <> True"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_correlated_filtered_collection() : - AssertSql( - @"SELECT [g].[FullName] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND [g].[CityOrBirthName] IN ('Ephyra', 'Hanover')", - // - @"@_outer_FullName='Augustus Cole' (Nullable = false) (Size = 13) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE (([w].[Name] <> 'Lancer') OR [w].[Name] IS NULL) AND (@_outer_FullName = [w].[OwnerFullName])", - // - @"@_outer_FullName='Dominic Santiago' (Nullable = false) (Size = 16) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE (([w].[Name] <> 'Lancer') OR [w].[Name] IS NULL) AND (@_outer_FullName = [w].[OwnerFullName])"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Navigation_access_on_derived_entity_using_cast() : - AssertSql( - @"SELECT [f].[Name], [t].[ThreatLevel] AS [Threat] -FROM ([Faction] AS [f] -LEFT JOIN ( - SELECT [f#Commander].* - FROM [LocustLeader] AS [f#Commander] - WHERE [f#Commander].[Discriminator] = 'LocustCommander' -) AS [t] ON [f].[CommanderName] = [t].[Name]) -WHERE ([f].[Discriminator] = 'LocustHorde') AND ([f].[Discriminator] = 'LocustHorde') -ORDER BY [f].[Name]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_predicate() : - AssertSql( - @"SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE (([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL) AND ([t0].[HasSoulPatch] = True)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_array_initializers() : - AssertSql( - @"SELECT [t0].[SquadId] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_projection_into_anonymous_type() : - AssertSql( - @"SELECT [t0].[SquadId] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Non_unicode_string_literals_is_used_for_non_unicode_column_with_subquery() : - AssertSql( - @"SELECT [c].[Name], [c].[Location] -FROM [City] AS [c] -WHERE ([c].[Location] = 'Unknown') AND (( - SELECT COUNT(*) - FROM [Gear] AS [g] - WHERE ([g].[Discriminator] IN ('Officer', 'Gear') AND ([g].[Nickname] = 'Paduk')) AND ([c].[Name] = [g].[CityOrBirthName]) -) = 1)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Bitwise_projects_values_in_select() : - AssertSql( - @"SELECT TOP 1 IIf( - ([g].[Rank] BAND 1) = 1, - True, - False -) AS [BitwiseTrue], IIf( - ([g].[Rank] BAND 1) = 2, - True, - False -) AS [BitwiseFalse], [g].[Rank] BAND 1 AS [BitwiseValue] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[Rank] BAND 1) = 1)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_conditional_expression() : - AssertSql( - @"SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE IIf( - [t0].[HasSoulPatch] = True, - True, - False -) = True"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Subquery_with_result_operator_is_not_lifted() : - AssertSql( - @"@__p_0='2' - -SELECT [t].[FullName] -FROM ( - SELECT TOP @__p_0 [g].* - FROM [Gear] AS [g] - WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND ([g].[HasSoulPatch] = False) - ORDER BY [g].[FullName] -) AS [t] -ORDER BY [t].[Rank]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_null_propagation_negative1() : - AssertSql( - @"SELECT IIf( - [g].[LeaderNickname] IS NOT NULL, - IIf( - CInt(IIf(IsNull(Len([g].[Nickname])),0,Len([g].[Nickname]))) = 5, - True, - False - ), - NULL -) -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear')"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Null_propagation_optimization6() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (CInt(IIf(IsNull(Len([g].[LeaderNickname])),0,Len([g].[LeaderNickname]))) = 5)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Null_propagation_optimization4() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (CInt(IIf(IsNull(Len([g].[LeaderNickname])),0,Len([g].[LeaderNickname]))) = 5)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Non_unicode_string_literals_is_used_for_non_unicode_column_with_contains() : - AssertSql( - @"SELECT [c].[Name], [c].[Location] -FROM [City] AS [c] -WHERE Instr(1, [c].[Location], 'Jacinto', 0) > 0"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_ternary_operation_multiple_conditions() : - AssertSql( - @"SELECT [w].[Id], IIf( - ([w].[AmmunitionType] = 2) AND ([w].[SynergyWithId] = 1), - 'Yes', - 'No' -) AS [IsCartidge] -FROM [Weapon] AS [w]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Coalesce_operator_in_projection_with_other_conditions() : - AssertSql( - @"SELECT IIf( - ([w].[AmmunitionType] = 1) AND (IIf(IsNull([w].[IsAutomatic]), False, [w].[IsAutomatic]) = True), - True, - False -) -FROM [Weapon] AS [w]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Where_bitwise_and_nullable_enum_with_nullable_parameter() : - AssertSql( - @"@__ammunitionType_0='Cartridge' - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE ([w].[AmmunitionType] BAND @__ammunitionType_0) > 0", - // - @"@__ammunitionType_0='' (Nullable = false) (DbType = String) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE ([w].[AmmunitionType] BAND @__ammunitionType_0) > 0"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Where_bitwise_and_nullable_enum_with_nullable_parameter() : - AssertSql( - @"@__ammunitionType_0='Cartridge' - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE ([w].[AmmunitionType] BAND @__ammunitionType_0) > 0", - // - @"@__ammunitionType_0='' (Nullable = false) (DbType = String) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE ([w].[AmmunitionType] BAND @__ammunitionType_0) > 0"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Where_bitwise_and_nullable_enum_with_nullable_parameter() : - AssertSql( - @"@__ammunitionType_0='Cartridge' - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE ([w].[AmmunitionType] BAND @__ammunitionType_0) > 0", - // - @"@__ammunitionType_0='' (Nullable = false) (DbType = String) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE ([w].[AmmunitionType] BAND @__ammunitionType_0) > 0"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Null_propagation_optimization5() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (CInt(IIf(IsNull(Len([g].[LeaderNickname])),0,Len([g].[LeaderNickname]))) = 5)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_predicate_negated_complex2() : - AssertSql( - @"SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE IIf( - ([t0].[HasSoulPatch] <> True) AND [t0].[HasSoulPatch] IS NOT NULL, - False, - [t0].[HasSoulPatch] -) <> True"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Count_with_optional_navigation_is_translated_to_sql() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Gear] AS [g] -LEFT JOIN [CogTag] AS [g#Tag] ON ([g].[Nickname] = [g#Tag].[GearNickName]) AND ([g].[SquadId] = [g#Tag].[GearSquadId])) -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g#Tag].[Note] <> 'Foo') OR [g#Tag].[Note] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Client_method_on_collection_navigation_in_predicate_accessed_by_ef_property() : - AssertSql( - @"SELECT [g].[FullName], [g].[Nickname] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND ([g].[HasSoulPatch] = False)", - // - @"@_outer_FullName='Augustus Cole' (Nullable = false) (Size = 13) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE @_outer_FullName = [w].[OwnerFullName]", - // - @"@_outer_FullName='Dominic Santiago' (Nullable = false) (Size = 16) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE @_outer_FullName = [w].[OwnerFullName]", - // - @"@_outer_FullName='Garron Paduk' (Nullable = false) (Size = 12) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE @_outer_FullName = [w].[OwnerFullName]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_nested_ternary_operations() : - AssertSql( - @"SELECT [w].[Id], IIf( - [w].[IsAutomatic] = False, - IIf( - [w].[AmmunitionType] = 1, - 'ManualCartridge', - 'Manual' - ), - 'Auto' -) AS [IsManualCartidge] -FROM [Weapon] AS [w]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Subquery_containing_SelectMany_projecting_main_from_clause_gets_lifted() : - AssertSql( - @"SELECT [gear].[FullName] -FROM [Gear] AS [gear] -, [CogTag] AS [tag] -WHERE [gear].[Discriminator] IN ('Officer', 'Gear') AND ([gear].[HasSoulPatch] = True) -ORDER BY [gear].[FullName], [tag].[Note]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Null_propagation_optimization2() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (RIGHT([g].[LeaderNickname], Len('us')) = 'us')"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_Where_Navigation() : - AssertSql( - @"SELECT [ct].[Id], [ct].[GearNickName], [ct].[GearSquadId], [ct].[Note] -FROM ([CogTag] AS [ct] -LEFT JOIN ( - SELECT [ct#Gear].* - FROM [Gear] AS [ct#Gear] - WHERE [ct#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t] ON ([ct].[GearNickName] = [t].[Nickname]) AND ([ct].[GearSquadId] = [t].[SquadId])) -WHERE [t].[Nickname] = 'Marcus'"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.FirstOrDefault_with_manually_created_groupjoin_is_translated_to_sql() : - AssertSql( - @"SELECT TOP 1 [s].[Id], [s].[InternalNumber], [s].[Name] -FROM ([Squad] AS [s] -LEFT JOIN ( - SELECT [g].* - FROM [Gear] AS [g] - WHERE [g].[Discriminator] IN ('Officer', 'Gear') -) AS [t] ON [s].[Id] = [t].[SquadId]) -WHERE [s].[Name] = 'Kilo'"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_list_initializers() : - AssertSql( - @"SELECT [t0].[SquadId], [t0].[SquadId] + 1 -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_predicate2() : - AssertSql( - @"SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE [t0].[HasSoulPatch] = True"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Client_method_on_collection_navigation_in_predicate() : - AssertSql( - @"SELECT [g].[FullName], [g].[Nickname] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND ([g].[HasSoulPatch] = True)", - // - @"@_outer_FullName='Damon Baird' (Nullable = false) (Size = 11) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE @_outer_FullName = [w].[OwnerFullName]", - // - @"@_outer_FullName='Marcus Fenix' (Nullable = false) (Size = 12) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE @_outer_FullName = [w].[OwnerFullName]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_predicate_negated() : - AssertSql( - @"SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t0].[HasSoulPatch] <> True) AND [t0].[HasSoulPatch] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Where_enum_has_flag_with_non_nullable_parameter() : - AssertSql( - @"@__parameter_0='Corporal' - -SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[Rank] BAND @__parameter_0) = @__parameter_0)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_DTOs() : - AssertSql( - @"SELECT [t0].[SquadId] AS [Id] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_ternary_operation_with_has_value_not_null() : - AssertSql( - @"SELECT [w].[Id], IIf( - [w].[AmmunitionType] IS NOT NULL AND ([w].[AmmunitionType] = 1), - 'Yes', - 'No' -) AS [IsCartidge] -FROM [Weapon] AS [w] -WHERE [w].[AmmunitionType] IS NOT NULL AND ([w].[AmmunitionType] = 1)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_orderby() : - AssertSql( - @"SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL -ORDER BY [t0].[SquadId]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_ternary_operation_with_boolean() : - AssertSql( - @"SELECT [w].[Id], IIf( - [w].[IsAutomatic] = True, - 1, - 0 -) AS [Num] -FROM [Weapon] AS [w]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_inverted_boolean() : - AssertSql( - @"SELECT [w].[Id], IIf( - [w].[IsAutomatic] = False, - True, - False -) AS [Manual] -FROM [Weapon] AS [w] -WHERE [w].[IsAutomatic] = True"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Client_method_on_collection_navigation_in_outer_join_key() : - AssertSql( - @"SELECT [g].[FullName], [g].[Nickname] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear')", - // - @"@_outer_FullName1='Damon Baird' (Nullable = false) (Size = 11) - -SELECT [w0].[Id], [w0].[AmmunitionType], [w0].[IsAutomatic], [w0].[Name], [w0].[OwnerFullName], [w0].[SynergyWithId] -FROM [Weapon] AS [w0] -WHERE @_outer_FullName1 = [w0].[OwnerFullName]", - // - @"@_outer_FullName1='Augustus Cole' (Nullable = false) (Size = 13) - -SELECT [w0].[Id], [w0].[AmmunitionType], [w0].[IsAutomatic], [w0].[Name], [w0].[OwnerFullName], [w0].[SynergyWithId] -FROM [Weapon] AS [w0] -WHERE @_outer_FullName1 = [w0].[OwnerFullName]", - // - @"@_outer_FullName1='Dominic Santiago' (Nullable = false) (Size = 16) - -SELECT [w0].[Id], [w0].[AmmunitionType], [w0].[IsAutomatic], [w0].[Name], [w0].[OwnerFullName], [w0].[SynergyWithId] -FROM [Weapon] AS [w0] -WHERE @_outer_FullName1 = [w0].[OwnerFullName]", - // - @"@_outer_FullName1='Marcus Fenix' (Nullable = false) (Size = 12) - -SELECT [w0].[Id], [w0].[AmmunitionType], [w0].[IsAutomatic], [w0].[Name], [w0].[OwnerFullName], [w0].[SynergyWithId] -FROM [Weapon] AS [w0] -WHERE @_outer_FullName1 = [w0].[OwnerFullName]", - // - @"@_outer_FullName1='Garron Paduk' (Nullable = false) (Size = 12) - -SELECT [w0].[Id], [w0].[AmmunitionType], [w0].[IsAutomatic], [w0].[Name], [w0].[OwnerFullName], [w0].[SynergyWithId] -FROM [Weapon] AS [w0] -WHERE @_outer_FullName1 = [w0].[OwnerFullName]", - // - @"SELECT [o].[FullName], [o].[Nickname] AS [o] -FROM [Gear] AS [o] -WHERE ([o].[Discriminator] = 'Officer') AND ([o].[HasSoulPatch] = True)", - // - @"@_outer_FullName='Damon Baird' (Nullable = false) (Size = 11) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE @_outer_FullName = [w].[OwnerFullName]", - // - @"@_outer_FullName='Marcus Fenix' (Nullable = false) (Size = 12) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE @_outer_FullName = [w].[OwnerFullName]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_projection() : - AssertSql( - @"SELECT [t0].[SquadId] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_groupby() : - AssertSql( - @"SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note], [t0].[SquadId] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL -ORDER BY [t0].[SquadId]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_multiple_conditions() : - AssertSql( - @"SELECT [w].[Id], IIf( - ([w].[IsAutomatic] = False) AND ([w].[SynergyWithId] = 1), - True, - False -) AS [IsCartidge] -FROM [Weapon] AS [w]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Null_propagation_optimization3() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (RIGHT([g].[LeaderNickname], Len('us')) = 'us')"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_correlated_filtered_collection_with_composite_key() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] = 'Officer'", - // - @"@_outer_Nickname='Baird' (Nullable = false) (Size = 5) -@_outer_SquadId='1' - -SELECT [r].[Nickname], [r].[SquadId], [r].[AssignedCityName], [r].[CityOrBirthName], [r].[Discriminator], [r].[FullName], [r].[HasSoulPatch], [r].[LeaderNickname], [r].[LeaderSquadId], [r].[Rank] -FROM [Gear] AS [r] -WHERE ([r].[Discriminator] IN ('Officer', 'Gear') AND ([r].[Nickname] <> 'Dom')) AND ((@_outer_Nickname = [r].[LeaderNickname]) AND (@_outer_SquadId = [r].[LeaderSquadId]))", - // - @"@_outer_Nickname='Marcus' (Nullable = false) (Size = 6) -@_outer_SquadId='1' - -SELECT [r].[Nickname], [r].[SquadId], [r].[AssignedCityName], [r].[CityOrBirthName], [r].[Discriminator], [r].[FullName], [r].[HasSoulPatch], [r].[LeaderNickname], [r].[LeaderSquadId], [r].[Rank] -FROM [Gear] AS [r] -WHERE ([r].[Discriminator] IN ('Officer', 'Gear') AND ([r].[Nickname] <> 'Dom')) AND ((@_outer_Nickname = [r].[LeaderNickname]) AND (@_outer_SquadId = [r].[LeaderSquadId]))"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Subquery_created_by_include_gets_lifted_nested() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank], [g#CityOfBirth].[Name], [g#CityOfBirth].[Location] -FROM ([Gear] AS [g] -INNER JOIN [City] AS [g#CityOfBirth] ON [g].[CityOrBirthName] = [g#CityOfBirth].[Name]) -WHERE ([g].[Discriminator] IN ('Officer', 'Gear') AND EXISTS ( - SELECT 1 - FROM [Weapon] AS [w] - WHERE [g].[FullName] = [w].[OwnerFullName])) AND ([g].[HasSoulPatch] = False) -ORDER BY [g].[Nickname], [g].[Rank]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_binary_expression() : - AssertSql( - @"SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t0].[HasSoulPatch] = True) OR (Instr(1, [t].[Note], 'Cole', 0) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Where_has_flag_with_nullable_parameter() : - AssertSql( - @"@__parameter_0='Corporal' - -SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[Rank] BAND @__parameter_0) = @__parameter_0)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Singleton_Navigation_With_Member_Access() : - AssertSql( - @"SELECT [t].[CityOrBirthName] AS [B] -FROM ([CogTag] AS [ct] -LEFT JOIN ( - SELECT [ct#Gear].* - FROM [Gear] AS [ct#Gear] - WHERE [ct#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t] ON ([ct].[GearNickName] = [t].[Nickname]) AND ([ct].[GearSquadId] = [t].[SquadId])) -WHERE ([t].[Nickname] = 'Marcus') AND (([t].[CityOrBirthName] <> 'Ephyra') OR [t].[CityOrBirthName] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Where_enum_has_flag() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[Rank] BAND 1) = 1)", - // - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[Rank] BAND 5) = 5)", - // - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[Rank] BAND 1) = 1)", - // - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[Rank] BAND 1) = 1)", - // - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND ((1 BAND [g].[Rank]) = [g].[Rank])"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Navigation_access_via_EFProperty_on_derived_entity_using_cast() : - AssertSql( - @"SELECT [f].[Name], [t].[ThreatLevel] AS [Threat] -FROM ([Faction] AS [f] -LEFT JOIN ( - SELECT [f#Commander].* - FROM [LocustLeader] AS [f#Commander] - WHERE [f#Commander].[Discriminator] = 'LocustCommander' -) AS [t] ON [f].[CommanderName] = [t].[Name]) -WHERE ([f].[Discriminator] = 'LocustHorde') AND ([f].[Discriminator] = 'LocustHorde') -ORDER BY [f].[Name]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_null_propagation_negative2() : - AssertSql( - @"SELECT IIf( - [g1].[LeaderNickname] IS NOT NULL, - [g2].[LeaderNickname], - NULL -) -FROM [Gear] AS [g1] -, [Gear] AS [g2] -WHERE [g1].[Discriminator] IN ('Officer', 'Gear')"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Coalesce_operator_in_predicate_with_other_conditions() : - AssertSql( - @"SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE ([w].[AmmunitionType] = 1) AND (IIf(IsNull([w].[IsAutomatic]), False, [w].[IsAutomatic]) = True)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Where_nullable_enum_with_nullable_parameter() : - AssertSql( - @"@__ammunitionType_0='Cartridge' - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE [w].[AmmunitionType] = @__ammunitionType_0", - // - @"SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE [w].[AmmunitionType] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Distinct_with_optional_navigation_is_translated_to_sql() : - AssertSql( - @"SELECT DISTINCT [g].[HasSoulPatch] -FROM ([Gear] AS [g] -LEFT JOIN [CogTag] AS [g#Tag] ON ([g].[Nickname] = [g#Tag].[GearNickName]) AND ([g].[SquadId] = [g#Tag].[GearSquadId])) -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g#Tag].[Note] <> 'Foo') OR [g#Tag].[Note] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Subquery_containing_join_projecting_main_from_clause_gets_lifted() : - AssertSql( - @"SELECT [gear].[Nickname] -FROM ([Gear] AS [gear] -INNER JOIN [CogTag] AS [tag] ON [gear].[Nickname] = [tag].[GearNickName]) -WHERE [gear].[Discriminator] IN ('Officer', 'Gear') -ORDER BY [gear].[Nickname], [tag].[Note]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_take() : - AssertSql( - @"SELECT [t0].[SquadId] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Navigation_access_on_derived_materialized_entity_using_cast() : - AssertSql( - @"SELECT [f].[Id], [f].[CapitalName], [f].[Discriminator], [f].[Name], [f].[CommanderName], [f].[Eradicated], [t].[ThreatLevel] -FROM ([Faction] AS [f] -LEFT JOIN ( - SELECT [f#Commander].* - FROM [LocustLeader] AS [f#Commander] - WHERE [f#Commander].[Discriminator] = 'LocustCommander' -) AS [t] ON [f].[CommanderName] = [t].[Name]) -WHERE ([f].[Discriminator] = 'LocustHorde') AND ([f].[Discriminator] = 'LocustHorde') -ORDER BY [f].[Name]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_Navigation_Null_Coalesce_To_Clr_Type() : - AssertSql( - @"SELECT TOP 1 CBool(IIf(IsNull(IIf(IsNull([w#SynergyWith].[IsAutomatic]), False, [w#SynergyWith].[IsAutomatic])),0,IIf(IsNull([w#SynergyWith].[IsAutomatic]), False, [w#SynergyWith].[IsAutomatic]))) AS [IsAutomatic] -FROM ([Weapon] AS [w] -LEFT JOIN [Weapon] AS [w#SynergyWith] ON [w].[SynergyWithId] = [w#SynergyWith].[Id])"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Non_unicode_parameter_is_used_for_non_unicode_column() : - AssertSql( - @"@__value_0='Unknown' (Nullable = false) (Size = 7) - -SELECT [c].[Name], [c].[Location] -FROM [City] AS [c] -WHERE [c].[Location] = @__value_0"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_all() : - AssertSql( - @"SELECT IIf( - NOT EXISTS ( - SELECT 1 - FROM ([CogTag] AS [t] - LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') - ) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) - WHERE (([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL) AND ([t0].[HasSoulPatch] = False)), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Subquery_containing_join_gets_lifted_clashing_names() : - AssertSql( - @"SELECT [gear].[Nickname] -FROM (([Gear] AS [gear] -INNER JOIN [CogTag] AS [tag] ON [gear].[Nickname] = [tag].[GearNickName]) -INNER JOIN [CogTag] AS [tag0] ON [gear].[Nickname] = [tag0].[GearNickName]) -WHERE [gear].[Discriminator] IN ('Officer', 'Gear') AND (([tag].[GearNickName] <> 'Cole Train') OR [tag].[GearNickName] IS NULL) -ORDER BY [gear].[Nickname], [tag0].[Id], [tag].[Note]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Subquery_is_not_lifted_from_additional_from_clause() : - AssertSql( - @"SELECT [g1].[FullName] AS [Name1] -FROM [Gear] AS [g1] -WHERE [g1].[Discriminator] IN ('Officer', 'Gear') AND ([g1].[HasSoulPatch] = True) -ORDER BY [g1].[FullName]", - // - @"SELECT [g0].[HasSoulPatch], [g0].[FullName] -FROM [Gear] AS [g0] -WHERE [g0].[Discriminator] IN ('Officer', 'Gear') -ORDER BY [g0].[Rank]", - // - @"SELECT [g0].[HasSoulPatch], [g0].[FullName] -FROM [Gear] AS [g0] -WHERE [g0].[Discriminator] IN ('Officer', 'Gear') -ORDER BY [g0].[Rank]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Where_is_properly_lifted_from_subquery_created_by_include() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank], [g#Tag].[Id], [g#Tag].[GearNickName], [g#Tag].[GearSquadId], [g#Tag].[Note] -FROM ([Gear] AS [g] -LEFT JOIN [CogTag] AS [g#Tag] ON ([g].[Nickname] = [g#Tag].[GearNickName]) AND ([g].[SquadId] = [g#Tag].[GearSquadId])) -WHERE ([g].[Discriminator] IN ('Officer', 'Gear') AND ([g].[FullName] <> 'Augustus Cole')) AND ([g].[HasSoulPatch] = False) -ORDER BY [g].[FullName]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_comparison_with_null() : - AssertSql( - @"@__ammunitionType_1='Cartridge' -@__ammunitionType_0='Cartridge' - -SELECT [w].[Id], IIf( - [w].[AmmunitionType] = @__ammunitionType_1, - True, - False -) AS [Cartidge] -FROM [Weapon] AS [w] -WHERE [w].[AmmunitionType] = @__ammunitionType_0", - // - @"SELECT [w].[Id], IIf( - [w].[AmmunitionType] IS NULL, - True, - False -) AS [Cartidge] -FROM [Weapon] AS [w] -WHERE [w].[AmmunitionType] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_ternary_operation_with_inverted_boolean() : - AssertSql( - @"SELECT [w].[Id], IIf( - [w].[IsAutomatic] = False, - 1, - 0 -) AS [Num] -FROM [Weapon] AS [w]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_length_of_string_property() : - AssertSql( - @"SELECT [w].[Name], CInt(IIf(IsNull(Len([w].[Name])),0,Len([w].[Name]))) AS [Length] -FROM [Weapon] AS [w]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_enum_has_flag() : - AssertSql( - @"SELECT TOP 1 IIf( - ([g].[Rank] BAND 1) = 1, - True, - False -) AS [hasFlagTrue], IIf( - ([g].[Rank] BAND 2) = 2, - True, - False -) AS [hasFlagFalse] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[Rank] BAND 1) = 1)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Subquery_containing_left_join_projecting_main_from_clause_gets_lifted() : - AssertSql( - @"SELECT [gear].[Nickname] -FROM ([Gear] AS [gear] -LEFT JOIN [CogTag] AS [tag] ON [gear].[Nickname] = [tag].[GearNickName]) -WHERE [gear].[Discriminator] IN ('Officer', 'Gear') -ORDER BY [gear].[Nickname], [gear].[Rank]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_skip() : - AssertSql( - @"SELECT [t0].[SquadId] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Client_method_on_collection_navigation_in_order_by() : - AssertSql( - @"SELECT [g].[FullName], [g].[Nickname] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND ([g].[HasSoulPatch] = False)", - // - @"@_outer_FullName='Augustus Cole' (Nullable = false) (Size = 13) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE @_outer_FullName = [w].[OwnerFullName]", - // - @"@_outer_FullName='Dominic Santiago' (Nullable = false) (Size = 16) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE @_outer_FullName = [w].[OwnerFullName]", - // - @"@_outer_FullName='Garron Paduk' (Nullable = false) (Size = 12) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE @_outer_FullName = [w].[OwnerFullName]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_ternary_operation_multiple_conditions_2() : - AssertSql( - @"SELECT [w].[Id], IIf( - ([w].[IsAutomatic] = False) AND ([w].[SynergyWithId] = 1), - 'Yes', - 'No' -) AS [IsCartidge] -FROM [Weapon] AS [w]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Complex_predicate_with_AndAlso_and_nullable_bool_property() : - AssertSql( - @"SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM ([Weapon] AS [w] -LEFT JOIN ( - SELECT [w#Owner].* - FROM [Gear] AS [w#Owner] - WHERE [w#Owner].[Discriminator] IN ('Officer', 'Gear') -) AS [t] ON [w].[OwnerFullName] = [t].[FullName]) -WHERE ([w].[Id] <> 50) AND ([t].[HasSoulPatch] = False)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Coalesce_operator_in_predicate() : - AssertSql( - @"SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE IIf(IsNull([w].[IsAutomatic]), False, [w].[IsAutomatic]) = True"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Subquery_is_lifted_from_main_from_clause_of_SelectMany() : - AssertSql( - @"SELECT [g].[FullName] AS [Name1], [g2].[FullName] AS [Name2] -FROM [Gear] AS [g] -, [Gear] AS [g2] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[HasSoulPatch] = True) AND ([g2].[HasSoulPatch] = False)) -ORDER BY [g].[FullName], [g].[Rank]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_contains() : - AssertSql( - @"SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE (([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL) AND [t0].[SquadId] IN ( - SELECT [g].[SquadId] - FROM [Gear] AS [g] - WHERE [g].[Discriminator] IN ('Officer', 'Gear') -)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_predicate_negated_complex1() : - AssertSql( - @"SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE IIf( - [t0].[HasSoulPatch] = True, - True, - [t0].[HasSoulPatch] -) <> True"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_correlated_filtered_collection() : - AssertSql( - @"SELECT [g].[FullName] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND [g].[CityOrBirthName] IN ('Ephyra', 'Hanover')", - // - @"@_outer_FullName='Augustus Cole' (Nullable = false) (Size = 13) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE (([w].[Name] <> 'Lancer') OR [w].[Name] IS NULL) AND (@_outer_FullName = [w].[OwnerFullName])", - // - @"@_outer_FullName='Dominic Santiago' (Nullable = false) (Size = 16) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE (([w].[Name] <> 'Lancer') OR [w].[Name] IS NULL) AND (@_outer_FullName = [w].[OwnerFullName])"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Navigation_access_on_derived_entity_using_cast() : - AssertSql( - @"SELECT [f].[Name], [t].[ThreatLevel] AS [Threat] -FROM ([Faction] AS [f] -LEFT JOIN ( - SELECT [f#Commander].* - FROM [LocustLeader] AS [f#Commander] - WHERE [f#Commander].[Discriminator] = 'LocustCommander' -) AS [t] ON [f].[CommanderName] = [t].[Name]) -WHERE ([f].[Discriminator] = 'LocustHorde') AND ([f].[Discriminator] = 'LocustHorde') -ORDER BY [f].[Name]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_predicate() : - AssertSql( - @"SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE (([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL) AND ([t0].[HasSoulPatch] = True)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_array_initializers() : - AssertSql( - @"SELECT [t0].[SquadId] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_projection_into_anonymous_type() : - AssertSql( - @"SELECT [t0].[SquadId] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Non_unicode_string_literals_is_used_for_non_unicode_column_with_subquery() : - AssertSql( - @"SELECT [c].[Name], [c].[Location] -FROM [City] AS [c] -WHERE ([c].[Location] = 'Unknown') AND (( - SELECT COUNT(*) - FROM [Gear] AS [g] - WHERE ([g].[Discriminator] IN ('Officer', 'Gear') AND ([g].[Nickname] = 'Paduk')) AND ([c].[Name] = [g].[CityOrBirthName]) -) = 1)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_conditional_expression() : - AssertSql( - @"SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE IIf( - [t0].[HasSoulPatch] = True, - True, - False -) = True"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Subquery_with_result_operator_is_not_lifted() : - AssertSql( - @"@__p_0='2' - -SELECT [t].[FullName] -FROM ( - SELECT TOP @__p_0 [g].* - FROM [Gear] AS [g] - WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND ([g].[HasSoulPatch] = False) - ORDER BY [g].[FullName] -) AS [t] -ORDER BY [t].[Rank]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_null_propagation_negative1() : - AssertSql( - @"SELECT IIf( - [g].[LeaderNickname] IS NOT NULL, - IIf( - CInt(IIf(IsNull(Len([g].[Nickname])),0,Len([g].[Nickname]))) = 5, - True, - False - ), - NULL -) -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear')"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Null_propagation_optimization6() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (CInt(IIf(IsNull(Len([g].[LeaderNickname])),0,Len([g].[LeaderNickname]))) = 5)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Null_propagation_optimization4() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (CInt(IIf(IsNull(Len([g].[LeaderNickname])),0,Len([g].[LeaderNickname]))) = 5)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Non_unicode_string_literals_is_used_for_non_unicode_column_with_contains() : - AssertSql( - @"SELECT [c].[Name], [c].[Location] -FROM [City] AS [c] -WHERE Instr(1, [c].[Location], 'Jacinto', 0) > 0"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_ternary_operation_multiple_conditions() : - AssertSql( - @"SELECT [w].[Id], IIf( - ([w].[AmmunitionType] = 2) AND ([w].[SynergyWithId] = 1), - 'Yes', - 'No' -) AS [IsCartidge] -FROM [Weapon] AS [w]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Coalesce_operator_in_projection_with_other_conditions() : - AssertSql( - @"SELECT IIf( - ([w].[AmmunitionType] = 1) AND (IIf(IsNull([w].[IsAutomatic]), False, [w].[IsAutomatic]) = True), - True, - False -) -FROM [Weapon] AS [w]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Null_propagation_optimization5() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (CInt(IIf(IsNull(Len([g].[LeaderNickname])),0,Len([g].[LeaderNickname]))) = 5)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_predicate_negated_complex2() : - AssertSql( - @"SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE IIf( - ([t0].[HasSoulPatch] <> True) AND [t0].[HasSoulPatch] IS NOT NULL, - False, - [t0].[HasSoulPatch] -) <> True"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Count_with_optional_navigation_is_translated_to_sql() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Gear] AS [g] -LEFT JOIN [CogTag] AS [g#Tag] ON ([g].[Nickname] = [g#Tag].[GearNickName]) AND ([g].[SquadId] = [g#Tag].[GearSquadId])) -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g#Tag].[Note] <> 'Foo') OR [g#Tag].[Note] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_nested_ternary_operations() : - AssertSql( - @"SELECT [w].[Id], IIf( - [w].[IsAutomatic] = False, - IIf( - [w].[AmmunitionType] = 1, - 'ManualCartridge', - 'Manual' - ), - 'Auto' -) AS [IsManualCartidge] -FROM [Weapon] AS [w]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Null_propagation_optimization2() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (RIGHT([g].[LeaderNickname], Len('us')) = 'us')"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_Where_Navigation() : - AssertSql( - @"SELECT [ct].[Id], [ct].[GearNickName], [ct].[GearSquadId], [ct].[Note] -FROM ([CogTag] AS [ct] -LEFT JOIN ( - SELECT [ct#Gear].* - FROM [Gear] AS [ct#Gear] - WHERE [ct#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t] ON ([ct].[GearNickName] = [t].[Nickname]) AND ([ct].[GearSquadId] = [t].[SquadId])) -WHERE [t].[Nickname] = 'Marcus'"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.FirstOrDefault_with_manually_created_groupjoin_is_translated_to_sql() : - AssertSql( - @"SELECT TOP 1 [s].[Id], [s].[InternalNumber], [s].[Name] -FROM ([Squad] AS [s] -LEFT JOIN ( - SELECT [g].* - FROM [Gear] AS [g] - WHERE [g].[Discriminator] IN ('Officer', 'Gear') -) AS [t] ON [s].[Id] = [t].[SquadId]) -WHERE [s].[Name] = 'Kilo'"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_list_initializers() : - AssertSql( - @"SELECT [t0].[SquadId], [t0].[SquadId] + 1 -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_predicate2() : - AssertSql( - @"SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE [t0].[HasSoulPatch] = True"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_predicate_negated() : - AssertSql( - @"SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t0].[HasSoulPatch] <> True) AND [t0].[HasSoulPatch] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_DTOs() : - AssertSql( - @"SELECT [t0].[SquadId] AS [Id] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_orderby() : - AssertSql( - @"SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL -ORDER BY [t0].[SquadId]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_ternary_operation_with_boolean() : - AssertSql( - @"SELECT [w].[Id], IIf( - [w].[IsAutomatic] = True, - 1, - 0 -) AS [Num] -FROM [Weapon] AS [w]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_inverted_boolean() : - AssertSql( - @"SELECT [w].[Id], IIf( - [w].[IsAutomatic] = False, - True, - False -) AS [Manual] -FROM [Weapon] AS [w] -WHERE [w].[IsAutomatic] = True"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_projection() : - AssertSql( - @"SELECT [t0].[SquadId] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_groupby() : - AssertSql( - @"SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note], [t0].[SquadId] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL -ORDER BY [t0].[SquadId]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_multiple_conditions() : - AssertSql( - @"SELECT [w].[Id], IIf( - ([w].[IsAutomatic] = False) AND ([w].[SynergyWithId] = 1), - True, - False -) AS [IsCartidge] -FROM [Weapon] AS [w]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Null_propagation_optimization3() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (RIGHT([g].[LeaderNickname], Len('us')) = 'us')"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_correlated_filtered_collection_with_composite_key() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] = 'Officer'", - // - @"@_outer_Nickname='Baird' (Nullable = false) (Size = 5) -@_outer_SquadId='1' - -SELECT [r].[Nickname], [r].[SquadId], [r].[AssignedCityName], [r].[CityOrBirthName], [r].[Discriminator], [r].[FullName], [r].[HasSoulPatch], [r].[LeaderNickname], [r].[LeaderSquadId], [r].[Rank] -FROM [Gear] AS [r] -WHERE ([r].[Discriminator] IN ('Officer', 'Gear') AND ([r].[Nickname] <> 'Dom')) AND ((@_outer_Nickname = [r].[LeaderNickname]) AND (@_outer_SquadId = [r].[LeaderSquadId]))", - // - @"@_outer_Nickname='Marcus' (Nullable = false) (Size = 6) -@_outer_SquadId='1' - -SELECT [r].[Nickname], [r].[SquadId], [r].[AssignedCityName], [r].[CityOrBirthName], [r].[Discriminator], [r].[FullName], [r].[HasSoulPatch], [r].[LeaderNickname], [r].[LeaderSquadId], [r].[Rank] -FROM [Gear] AS [r] -WHERE ([r].[Discriminator] IN ('Officer', 'Gear') AND ([r].[Nickname] <> 'Dom')) AND ((@_outer_Nickname = [r].[LeaderNickname]) AND (@_outer_SquadId = [r].[LeaderSquadId]))"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_binary_expression() : - AssertSql( - @"SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t0].[HasSoulPatch] = True) OR (Instr(1, [t].[Note], 'Cole', 0) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Navigation_access_via_EFProperty_on_derived_entity_using_cast() : - AssertSql( - @"SELECT [f].[Name], [t].[ThreatLevel] AS [Threat] -FROM ([Faction] AS [f] -LEFT JOIN ( - SELECT [f#Commander].* - FROM [LocustLeader] AS [f#Commander] - WHERE [f#Commander].[Discriminator] = 'LocustCommander' -) AS [t] ON [f].[CommanderName] = [t].[Name]) -WHERE ([f].[Discriminator] = 'LocustHorde') AND ([f].[Discriminator] = 'LocustHorde') -ORDER BY [f].[Name]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_null_propagation_negative2() : - AssertSql( - @"SELECT IIf( - [g1].[LeaderNickname] IS NOT NULL, - [g2].[LeaderNickname], - NULL -) -FROM [Gear] AS [g1] -, [Gear] AS [g2] -WHERE [g1].[Discriminator] IN ('Officer', 'Gear')"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Distinct_with_optional_navigation_is_translated_to_sql() : - AssertSql( - @"SELECT DISTINCT [g].[HasSoulPatch] -FROM ([Gear] AS [g] -LEFT JOIN [CogTag] AS [g#Tag] ON ([g].[Nickname] = [g#Tag].[GearNickName]) AND ([g].[SquadId] = [g#Tag].[GearSquadId])) -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g#Tag].[Note] <> 'Foo') OR [g#Tag].[Note] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_take() : - AssertSql( - @"SELECT [t0].[SquadId] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Navigation_access_on_derived_materialized_entity_using_cast() : - AssertSql( - @"SELECT [f].[Id], [f].[CapitalName], [f].[Discriminator], [f].[Name], [f].[CommanderName], [f].[Eradicated], [t].[ThreatLevel] -FROM ([Faction] AS [f] -LEFT JOIN ( - SELECT [f#Commander].* - FROM [LocustLeader] AS [f#Commander] - WHERE [f#Commander].[Discriminator] = 'LocustCommander' -) AS [t] ON [f].[CommanderName] = [t].[Name]) -WHERE ([f].[Discriminator] = 'LocustHorde') AND ([f].[Discriminator] = 'LocustHorde') -ORDER BY [f].[Name]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Non_unicode_parameter_is_used_for_non_unicode_column() : - AssertSql( - @"@__value_0='Unknown' (Nullable = false) (Size = 7) - -SELECT [c].[Name], [c].[Location] -FROM [City] AS [c] -WHERE [c].[Location] = @__value_0"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_all() : - AssertSql( - @"SELECT IIf( - NOT EXISTS ( - SELECT 1 - FROM ([CogTag] AS [t] - LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') - ) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) - WHERE (([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL) AND ([t0].[HasSoulPatch] = False)), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_comparison_with_null() : - AssertSql( - @"@__ammunitionType_1='Cartridge' -@__ammunitionType_0='Cartridge' - -SELECT [w].[Id], IIf( - [w].[AmmunitionType] = @__ammunitionType_1, - True, - False -) AS [Cartidge] -FROM [Weapon] AS [w] -WHERE [w].[AmmunitionType] = @__ammunitionType_0", - // - @"SELECT [w].[Id], IIf( - [w].[AmmunitionType] IS NULL, - True, - False -) AS [Cartidge] -FROM [Weapon] AS [w] -WHERE [w].[AmmunitionType] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_length_of_string_property() : - AssertSql( - @"SELECT [w].[Name], CInt(IIf(IsNull(Len([w].[Name])),0,Len([w].[Name]))) AS [Length] -FROM [Weapon] AS [w]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_enum_has_flag() : - AssertSql( - @"SELECT TOP 1 IIf( - ([g].[Rank] BAND 1) = 1, - True, - False -) AS [hasFlagTrue], IIf( - ([g].[Rank] BAND 2) = 2, - True, - False -) AS [hasFlagFalse] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[Rank] BAND 1) = 1)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_skip() : - AssertSql( - @"SELECT [t0].[SquadId] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_ternary_operation_multiple_conditions_2() : - AssertSql( - @"SELECT [w].[Id], IIf( - ([w].[IsAutomatic] = False) AND ([w].[SynergyWithId] = 1), - 'Yes', - 'No' -) AS [IsCartidge] -FROM [Weapon] AS [w]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Complex_predicate_with_AndAlso_and_nullable_bool_property() : - AssertSql( - @"SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM ([Weapon] AS [w] -LEFT JOIN ( - SELECT [w#Owner].* - FROM [Gear] AS [w#Owner] - WHERE [w#Owner].[Discriminator] IN ('Officer', 'Gear') -) AS [t] ON [w].[OwnerFullName] = [t].[FullName]) -WHERE ([w].[Id] <> 50) AND ([t].[HasSoulPatch] = False)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_contains() : - AssertSql( - @"SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE (([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL) AND [t0].[SquadId] IN ( - SELECT [g].[SquadId] - FROM [Gear] AS [g] - WHERE [g].[Discriminator] IN ('Officer', 'Gear') -)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_predicate_negated_complex1() : - AssertSql( - @"SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE IIf( - [t0].[HasSoulPatch] = True, - True, - [t0].[HasSoulPatch] -) <> True"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_correlated_filtered_collection() : - AssertSql( - @"SELECT [g].[FullName] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND [g].[CityOrBirthName] IN ('Ephyra', 'Hanover')", - // - @"@_outer_FullName='Augustus Cole' (Nullable = false) (Size = 13) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE (([w].[Name] <> 'Lancer') OR [w].[Name] IS NULL) AND (@_outer_FullName = [w].[OwnerFullName])", - // - @"@_outer_FullName='Dominic Santiago' (Nullable = false) (Size = 16) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE (([w].[Name] <> 'Lancer') OR [w].[Name] IS NULL) AND (@_outer_FullName = [w].[OwnerFullName])"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Navigation_access_on_derived_entity_using_cast() : - AssertSql( - @"SELECT [f].[Name], [t].[ThreatLevel] AS [Threat] -FROM ([Faction] AS [f] -LEFT JOIN ( - SELECT [f#Commander].* - FROM [LocustLeader] AS [f#Commander] - WHERE [f#Commander].[Discriminator] = 'LocustCommander' -) AS [t] ON [f].[CommanderName] = [t].[Name]) -WHERE ([f].[Discriminator] = 'LocustHorde') AND ([f].[Discriminator] = 'LocustHorde') -ORDER BY [f].[Name]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_predicate() : - AssertSql( - @"SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE (([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL) AND ([t0].[HasSoulPatch] = True)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_array_initializers() : - AssertSql( - @"SELECT [t0].[SquadId] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_projection_into_anonymous_type() : - AssertSql( - @"SELECT [t0].[SquadId] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE ([t].[Note] <> 'K.I.A.') OR [t].[Note] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Non_unicode_string_literals_is_used_for_non_unicode_column_with_subquery() : - AssertSql( - @"SELECT [c].[Name], [c].[Location] -FROM [City] AS [c] -WHERE ([c].[Location] = 'Unknown') AND (( - SELECT COUNT(*) - FROM [Gear] AS [g] - WHERE ([g].[Discriminator] IN ('Officer', 'Gear') AND ([g].[Nickname] = 'Paduk')) AND ([c].[Name] = [g].[CityOrBirthName]) -) = 1)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Optional_navigation_type_compensation_works_with_conditional_expression() : - AssertSql( - @"SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note] -FROM ([CogTag] AS [t] -LEFT JOIN ( - SELECT [t#Gear].* - FROM [Gear] AS [t#Gear] - WHERE [t#Gear].[Discriminator] IN ('Officer', 'Gear') -) AS [t0] ON ([t].[GearNickName] = [t0].[Nickname]) AND ([t].[GearSquadId] = [t0].[SquadId])) -WHERE IIf( - [t0].[HasSoulPatch] = True, - True, - False -) = True"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_null_propagation_negative1() : - AssertSql( - @"SELECT IIf( - [g].[LeaderNickname] IS NOT NULL, - IIf( - CInt(IIf(IsNull(Len([g].[Nickname])),0,Len([g].[Nickname]))) = 5, - True, - False - ), - NULL -) -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear')"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Null_propagation_optimization6() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (CInt(IIf(IsNull(Len([g].[LeaderNickname])),0,Len([g].[LeaderNickname]))) = 5)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Null_propagation_optimization4() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (CInt(IIf(IsNull(Len([g].[LeaderNickname])),0,Len([g].[LeaderNickname]))) = 5)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Non_unicode_string_literals_is_used_for_non_unicode_column_with_contains() : - AssertSql( - @"SELECT [c].[Name], [c].[Location] -FROM [City] AS [c] -WHERE Instr(1, [c].[Location], 'Jacinto', 0) > 0"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_ternary_operation_multiple_conditions() : - AssertSql( - @"SELECT [w].[Id], IIf( - ([w].[AmmunitionType] = 2) AND ([w].[SynergyWithId] = 1), - 'Yes', - 'No' -) AS [IsCartidge] -FROM [Weapon] AS [w]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Collection_with_inheritance_and_join_include_joined() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank], [g#Tag].[Id], [g#Tag].[GearNickName], [g#Tag].[GearSquadId], [g#Tag].[Note] -FROM (([CogTag] AS [t] -INNER JOIN [Gear] AS [g] ON ([t].[GearSquadId] = [g].[SquadId]) AND ([t].[GearNickName] = [g].[Nickname])) -LEFT JOIN [CogTag] AS [g#Tag] ON ([g].[Nickname] = [g#Tag].[GearNickName]) AND ([g].[SquadId] = [g#Tag].[GearSquadId])) -WHERE [g].[Discriminator] = 'Officer'"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Collection_with_inheritance_and_join_include_source() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank], [g#Tag].[Id], [g#Tag].[GearNickName], [g#Tag].[GearSquadId], [g#Tag].[Note] -FROM (([Gear] AS [g] -LEFT JOIN [CogTag] AS [g#Tag] ON ([g].[Nickname] = [g#Tag].[GearNickName]) AND ([g].[SquadId] = [g#Tag].[GearSquadId])) -INNER JOIN [CogTag] AS [t] ON ([g].[SquadId] = [t].[GearSquadId]) AND ([g].[Nickname] = [t].[GearNickName])) -WHERE [g].[Discriminator] = 'Officer'"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Collection_with_inheritance_and_join_include_joined() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank], [g#Tag].[Id], [g#Tag].[GearNickName], [g#Tag].[GearSquadId], [g#Tag].[Note] -FROM (([CogTag] AS [t] -INNER JOIN [Gear] AS [g] ON ([t].[GearSquadId] = [g].[SquadId]) AND ([t].[GearNickName] = [g].[Nickname])) -LEFT JOIN [CogTag] AS [g#Tag] ON ([g].[Nickname] = [g#Tag].[GearNickName]) AND ([g].[SquadId] = [g#Tag].[GearSquadId])) -WHERE [g].[Discriminator] = 'Officer'"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Count_with_optional_navigation_is_translated_to_sql() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Gear] AS [g] -LEFT JOIN [CogTag] AS [g#Tag] ON ([g].[Nickname] = [g#Tag].[GearNickName]) AND ([g].[SquadId] = [g#Tag].[GearSquadId])) -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g#Tag].[Note] <> 'Foo') OR [g#Tag].[Note] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Count_with_unflattened_groupjoin_is_evaluated_on_client() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank], [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note] -FROM ([Gear] AS [g] -LEFT JOIN [CogTag] AS [t] ON ([g].[Nickname] = [t].[GearNickName]) AND ([g].[SquadId] = [t].[GearSquadId])) -WHERE [g].[Discriminator] IN ('Officer', 'Gear') -ORDER BY [g].[Nickname], [g].[SquadId]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Collection_with_inheritance_and_join_include_source() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank], [g#Tag].[Id], [g#Tag].[GearNickName], [g#Tag].[GearSquadId], [g#Tag].[Note] -FROM (([Gear] AS [g] -LEFT JOIN [CogTag] AS [g#Tag] ON ([g].[Nickname] = [g#Tag].[GearNickName]) AND ([g].[SquadId] = [g#Tag].[GearSquadId])) -INNER JOIN [CogTag] AS [t] ON ([g].[SquadId] = [t].[GearSquadId]) AND ([g].[Nickname] = [t].[GearNickName])) -WHERE [g].[Discriminator] = 'Officer'"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Coalesce_operator_in_predicate_with_other_conditions() : - AssertSql( - @"SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE ([w].[AmmunitionType] = 1) AND (IIf(IsNull([w].[IsAutomatic]), False, [w].[IsAutomatic]) = True)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Distinct_with_unflattened_groupjoin_is_evaluated_on_client() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank], [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[Note] -FROM ([Gear] AS [g] -LEFT JOIN [CogTag] AS [t] ON ([g].[Nickname] = [t].[GearNickName]) AND ([g].[SquadId] = [t].[GearSquadId])) -WHERE [g].[Discriminator] IN ('Officer', 'Gear') -ORDER BY [g].[Nickname], [g].[SquadId]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Collection_with_inheritance_and_join_include_joined() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank], [g#Tag].[Id], [g#Tag].[GearNickName], [g#Tag].[GearSquadId], [g#Tag].[Note] -FROM (([CogTag] AS [t] -INNER JOIN [Gear] AS [g] ON ([t].[GearSquadId] = [g].[SquadId]) AND ([t].[GearNickName] = [g].[Nickname])) -LEFT JOIN [CogTag] AS [g#Tag] ON ([g].[Nickname] = [g#Tag].[GearNickName]) AND ([g].[SquadId] = [g#Tag].[GearSquadId])) -WHERE [g].[Discriminator] = 'Officer'"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Distinct_with_optional_navigation_is_translated_to_sql() : - AssertSql( - @"SELECT DISTINCT [g].[HasSoulPatch] -FROM ([Gear] AS [g] -LEFT JOIN [CogTag] AS [g#Tag] ON ([g].[Nickname] = [g#Tag].[GearNickName]) AND ([g].[SquadId] = [g#Tag].[GearSquadId])) -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g#Tag].[Note] <> 'Foo') OR [g#Tag].[Note] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Complex_predicate_with_AndAlso_and_nullable_bool_property() : - AssertSql( - @"SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM ([Weapon] AS [w] -LEFT JOIN ( - SELECT [w#Owner].* - FROM [Gear] AS [w#Owner] - WHERE [w#Owner].[Discriminator] IN ('Officer', 'Gear') -) AS [t] ON [w].[OwnerFullName] = [t].[FullName]) -WHERE ([w].[Id] <> 50) AND ([t].[HasSoulPatch] = False)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Coalesce_operator_in_predicate() : - AssertSql( - @"SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE IIf(IsNull([w].[IsAutomatic]), False, [w].[IsAutomatic]) = True"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Coalesce_operator_in_projection_with_other_conditions() : - AssertSql( - @"SELECT IIf( - ([w].[AmmunitionType] = 1) AND (IIf(IsNull([w].[IsAutomatic]), False, [w].[IsAutomatic]) = True), - True, - False -) -FROM [Weapon] AS [w]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Client_method_on_collection_navigation_in_predicate_accessed_by_ef_property() : - AssertSql( - @"SELECT [g].[FullName], [g].[Nickname] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND ([g].[HasSoulPatch] = False)", - // - @"@_outer_FullName='Augustus Cole' (Nullable = false) (Size = 13) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE @_outer_FullName = [w].[OwnerFullName]", - // - @"@_outer_FullName='Dominic Santiago' (Nullable = false) (Size = 16) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE @_outer_FullName = [w].[OwnerFullName]", - // - @"@_outer_FullName='Garron Paduk' (Nullable = false) (Size = 12) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE @_outer_FullName = [w].[OwnerFullName]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Collection_with_inheritance_and_join_include_source() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank], [g#Tag].[Id], [g#Tag].[GearNickName], [g#Tag].[GearSquadId], [g#Tag].[Note] -FROM (([Gear] AS [g] -LEFT JOIN [CogTag] AS [g#Tag] ON ([g].[Nickname] = [g#Tag].[GearNickName]) AND ([g].[SquadId] = [g#Tag].[GearSquadId])) -INNER JOIN [CogTag] AS [t] ON ([g].[SquadId] = [t].[GearSquadId]) AND ([g].[Nickname] = [t].[GearNickName])) -WHERE [g].[Discriminator] = 'Officer'"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Collection_with_inheritance_and_join_include_joined() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank], [g#Tag].[Id], [g#Tag].[GearNickName], [g#Tag].[GearSquadId], [g#Tag].[Note] -FROM (([CogTag] AS [t] -INNER JOIN [Gear] AS [g] ON ([t].[GearSquadId] = [g].[SquadId]) AND ([t].[GearNickName] = [g].[Nickname])) -LEFT JOIN [CogTag] AS [g#Tag] ON ([g].[Nickname] = [g#Tag].[GearNickName]) AND ([g].[SquadId] = [g#Tag].[GearSquadId])) -WHERE [g].[Discriminator] = 'Officer'"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Complex_predicate_with_AndAlso_and_nullable_bool_property() : - AssertSql( - @"SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM ([Weapon] AS [w] -LEFT JOIN ( - SELECT [w#Owner].* - FROM [Gear] AS [w#Owner] - WHERE [w#Owner].[Discriminator] IN ('Officer', 'Gear') -) AS [t] ON [w].[OwnerFullName] = [t].[FullName]) -WHERE ([w].[Id] <> 50) AND ([t].[HasSoulPatch] = False)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Non_unicode_parameter_is_used_for_non_unicode_column() : - AssertSql( - @"@__value_0='Unknown' (Nullable = false) (Size = 7) - -SELECT [c].[Name], [c].[Location] -FROM [City] AS [c] -WHERE [c].[Location] = @__value_0"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.DateTimeOffset_Date_works() : - AssertSql( - @"@__Date_0='01/01/0001 00:00:00' (DbType = DateTime) - -SELECT [m].[Id], [m].[CodeName], [m].[Timeline] -FROM [Mission] AS [m] -WHERE IIf(IsNull([m].[Timeline]), NULL, DateValue([m].[Timeline])) > @__Date_0"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.DateTimeOffset_Datepart_works() : - AssertSql( - @"SELECT [m].[Id], [m].[CodeName], [m].[Timeline] -FROM [Mission] AS [m] -WHERE DatePart('m', [m].[Timeline]) = 5"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.DateTimeOffset_Date_works() : - AssertSql( - @"@__Date_0='01/01/0001 00:00:00' (DbType = DateTime) - -SELECT [m].[Id], [m].[CodeName], [m].[Timeline] -FROM [Mission] AS [m] -WHERE IIf(IsNull([m].[Timeline]), NULL, DateValue([m].[Timeline])) > @__Date_0"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_correlated_filtered_collection_works_with_caching() : - AssertSql( - @"SELECT [t].[GearNickName] -FROM [CogTag] AS [t]", - // - @"@_outer_GearNickName='Marcus' (Nullable = false) (Size = 6) - -SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND ([g].[Nickname] = @_outer_GearNickName)", - // - @"@_outer_GearNickName='Baird' (Nullable = false) (Size = 5) - -SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND ([g].[Nickname] = @_outer_GearNickName)", - // - @"@_outer_GearNickName='Paduk' (Nullable = false) (Size = 5) - -SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND ([g].[Nickname] = @_outer_GearNickName)", - // - @"@_outer_GearNickName='Cole Train' (Nullable = false) (Size = 10) - -SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND ([g].[Nickname] = @_outer_GearNickName)", - // - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND [g].[Nickname] IS NULL", - // - @"@_outer_GearNickName='Dom' (Nullable = false) (Size = 3) - -SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND ([g].[Nickname] = @_outer_GearNickName)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_correlated_filtered_collection_with_composite_key() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] = 'Officer'", - // - @"@_outer_Nickname='Baird' (Nullable = false) (Size = 5) -@_outer_SquadId='1' - -SELECT [r].[Nickname], [r].[SquadId], [r].[AssignedCityName], [r].[CityOrBirthName], [r].[Discriminator], [r].[FullName], [r].[HasSoulPatch], [r].[LeaderNickname], [r].[LeaderSquadId], [r].[Rank] -FROM [Gear] AS [r] -WHERE ([r].[Discriminator] IN ('Officer', 'Gear') AND ([r].[Nickname] <> 'Dom')) AND ((@_outer_Nickname = [r].[LeaderNickname]) AND (@_outer_SquadId = [r].[LeaderSquadId]))", - // - @"@_outer_Nickname='Marcus' (Nullable = false) (Size = 6) -@_outer_SquadId='1' - -SELECT [r].[Nickname], [r].[SquadId], [r].[AssignedCityName], [r].[CityOrBirthName], [r].[Discriminator], [r].[FullName], [r].[HasSoulPatch], [r].[LeaderNickname], [r].[LeaderSquadId], [r].[Rank] -FROM [Gear] AS [r] -WHERE ([r].[Discriminator] IN ('Officer', 'Gear') AND ([r].[Nickname] <> 'Dom')) AND ((@_outer_Nickname = [r].[LeaderNickname]) AND (@_outer_SquadId = [r].[LeaderSquadId]))"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_length_of_string_property() : - AssertSql( - @"SELECT [w].[Name], CInt(IIf(IsNull(Len([w].[Name])),0,Len([w].[Name]))) AS [Length] -FROM [Weapon] AS [w]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Select_correlated_filtered_collection() : - AssertSql( - @"SELECT [g].[FullName] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND [g].[CityOrBirthName] IN ('Ephyra', 'Hanover')", - // - @"@_outer_FullName='Augustus Cole' (Nullable = false) (Size = 13) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE (([w].[Name] <> 'Lancer') OR [w].[Name] IS NULL) AND (@_outer_FullName = [w].[OwnerFullName])", - // - @"@_outer_FullName='Dominic Santiago' (Nullable = false) (Size = 16) - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE (([w].[Name] <> 'Lancer') OR [w].[Name] IS NULL) AND (@_outer_FullName = [w].[OwnerFullName])"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Subquery_containing_SelectMany_projecting_main_from_clause_gets_lifted() : - AssertSql( - @"SELECT [gear].[FullName] -FROM [Gear] AS [gear] -, [CogTag] AS [tag] -WHERE [gear].[Discriminator] IN ('Officer', 'Gear') AND ([gear].[HasSoulPatch] = True) -ORDER BY [gear].[FullName], [tag].[Note]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Where_enum_has_flag_with_non_nullable_parameter() : - AssertSql( - @"@__parameter_0='Corporal' - -SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[Rank] BAND @__parameter_0) = @__parameter_0)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Where_has_flag_with_nullable_parameter() : - AssertSql( - @"@__parameter_0='Corporal' - -SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[Rank] BAND @__parameter_0) = @__parameter_0)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Where_enum_has_flag() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[Rank] BAND 1) = 1)", - // - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[Rank] BAND 5) = 5)", - // - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[Rank] BAND 1) = 1)", - // - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[Rank] BAND 1) = 1)", - // - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND ((1 BAND [g].[Rank]) = [g].[Rank])"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Where_nullable_enum_with_nullable_parameter() : - AssertSql( - @"@__ammunitionType_0='Cartridge' - -SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE [w].[AmmunitionType] = @__ammunitionType_0", - // - @"SELECT [w].[Id], [w].[AmmunitionType], [w].[IsAutomatic], [w].[Name], [w].[OwnerFullName], [w].[SynergyWithId] -FROM [Weapon] AS [w] -WHERE [w].[AmmunitionType] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Subquery_is_not_lifted_from_additional_from_clause() : - AssertSql( - @"SELECT [g1].[FullName] AS [Name1] -FROM [Gear] AS [g1] -WHERE [g1].[Discriminator] IN ('Officer', 'Gear') AND ([g1].[HasSoulPatch] = True) -ORDER BY [g1].[FullName]", - // - @"SELECT [g0].[HasSoulPatch], [g0].[FullName] -FROM [Gear] AS [g0] -WHERE [g0].[Discriminator] IN ('Officer', 'Gear') -ORDER BY [g0].[Rank]", - // - @"SELECT [g0].[HasSoulPatch], [g0].[FullName] -FROM [Gear] AS [g0] -WHERE [g0].[Discriminator] IN ('Officer', 'Gear') -ORDER BY [g0].[Rank]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Where_count_subquery_without_collision() : - AssertSql( - @"SELECT [w].[Nickname], [w].[SquadId], [w].[AssignedCityName], [w].[CityOrBirthName], [w].[Discriminator], [w].[FullName], [w].[HasSoulPatch], [w].[LeaderNickname], [w].[LeaderSquadId], [w].[Rank] -FROM [Gear] AS [w] -WHERE [w].[Discriminator] IN ('Officer', 'Gear') AND (( - SELECT COUNT(*) - FROM [Weapon] AS [w0] - WHERE [w].[FullName] = [w0].[OwnerFullName] -) = 2)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Where_subquery_boolean() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (( - SELECT TOP 1 [w].[IsAutomatic] - FROM [Weapon] AS [w] - WHERE [g].[FullName] = [w].[OwnerFullName] -) = True)"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Subquery_is_lifted_from_main_from_clause_of_SelectMany() : - AssertSql( - @"SELECT [g].[FullName] AS [Name1], [g2].[FullName] AS [Name2] -FROM [Gear] AS [g] -, [Gear] AS [g2] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[HasSoulPatch] = True) AND ([g2].[HasSoulPatch] = False)) -ORDER BY [g].[FullName], [g].[Rank]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Subquery_with_result_operator_is_not_lifted() : - AssertSql( - @"@__p_0='2' - -SELECT [t].[FullName] -FROM ( - SELECT TOP @__p_0 [g].* - FROM [Gear] AS [g] - WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND ([g].[HasSoulPatch] = False) - ORDER BY [g].[FullName] -) AS [t] -ORDER BY [t].[Rank]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Where_enum_has_flag_subquery() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (([g].[Rank] BAND ( - SELECT TOP 1 [x].[Rank] - FROM [Gear] AS [x] - WHERE [x].[Discriminator] IN ('Officer', 'Gear') - ORDER BY [x].[Nickname], [x].[SquadId] -)) = ( - SELECT TOP 1 [x].[Rank] - FROM [Gear] AS [x] - WHERE [x].[Discriminator] IN ('Officer', 'Gear') - ORDER BY [x].[Nickname], [x].[SquadId] -))", - // - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND ((1 BAND ( - SELECT TOP 1 [x].[Rank] - FROM [Gear] AS [x] - WHERE [x].[Discriminator] IN ('Officer', 'Gear') - ORDER BY [x].[Nickname], [x].[SquadId] -)) = ( - SELECT TOP 1 [x].[Rank] - FROM [Gear] AS [x] - WHERE [x].[Discriminator] IN ('Officer', 'Gear') - ORDER BY [x].[Nickname], [x].[SquadId] -))"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Subquery_is_not_lifted_from_additional_from_clause() : - AssertSql( - @"SELECT [g1].[FullName] AS [Name1] -FROM [Gear] AS [g1] -WHERE [g1].[Discriminator] IN ('Officer', 'Gear') AND ([g1].[HasSoulPatch] = True) -ORDER BY [g1].[FullName]", - // - @"SELECT [g0].[HasSoulPatch], [g0].[FullName] -FROM [Gear] AS [g0] -WHERE [g0].[Discriminator] IN ('Officer', 'Gear') -ORDER BY [g0].[Rank]", - // - @"SELECT [g0].[HasSoulPatch], [g0].[FullName] -FROM [Gear] AS [g0] -WHERE [g0].[Discriminator] IN ('Officer', 'Gear') -ORDER BY [g0].[Rank]"); - - - -EntityFramework.Jet.FunctionalTests.GearsOfWarQueryJetTest.Where_subquery_boolean() : - AssertSql( - @"SELECT [g].[Nickname], [g].[SquadId], [g].[AssignedCityName], [g].[CityOrBirthName], [g].[Discriminator], [g].[FullName], [g].[HasSoulPatch], [g].[LeaderNickname], [g].[LeaderSquadId], [g].[Rank] -FROM [Gear] AS [g] -WHERE [g].[Discriminator] IN ('Officer', 'Gear') AND (( - SELECT TOP 1 [w].[IsAutomatic] - FROM [Weapon] AS [w] - WHERE [g].[FullName] = [w].[OwnerFullName] -) = True)"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multiple_references_multi_level(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Product].[ProductID], [o#Product].[Discontinued], [o#Product].[ProductName], [o#Product].[UnitPrice], [o#Product].[UnitsInStock], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region] -FROM ((([Order Details] AS [o] -INNER JOIN [Products] AS [o#Product] ON [o].[ProductID] = [o#Product].[ProductID]) -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Where_subquery_on_navigation_client_eval() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [o4].[OrderID] -FROM [Orders] AS [o4]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o2].[OrderID] -FROM [Orders] AS [o2] -WHERE @_outer_CustomerID = [o2].[CustomerID]", - // - @"SELECT [o4].[OrderID] -FROM [Orders] AS [o4]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o2].[OrderID] -FROM [Orders] AS [o2] -WHERE @_outer_CustomerID = [o2].[CustomerID]", - // - @"SELECT [o4].[OrderID] -FROM [Orders] AS [o4]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o2].[OrderID] -FROM [Orders] AS [o2] -WHERE @_outer_CustomerID = [o2].[CustomerID]", - // - @"SELECT [o4].[OrderID] -FROM [Orders] AS [o4]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [o2].[OrderID] -FROM [Orders] AS [o2] -WHERE @_outer_CustomerID = [o2].[CustomerID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multiple_references_multi_level(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Product].[ProductID], [o#Product].[Discontinued], [o#Product].[ProductName], [o#Product].[UnitPrice], [o#Product].[UnitsInStock], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region] -FROM ((([Order Details] AS [o] -INNER JOIN [Products] AS [o#Product] ON [o].[ProductID] = [o#Product].[ProductID]) -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Navigations() : - AssertSql( - @"SELECT [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_select_nav_prop_first_or_default_then_nav_prop() : - AssertSql( - @"SELECT [e].[CustomerID] -FROM [Customers] AS [e] -WHERE [e].[CustomerID] LIKE 'A' + '%' AND (LEFT([e].[CustomerID], Len('A')) = 'A') -ORDER BY [e].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM ([Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID]) -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM ([Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID]) -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM ([Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID]) -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM ([Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID]) -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Navigation_fk_based_inside_contains() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] IN ('ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_additional_from_clause(Boolean useString) : - AssertSql( - @"@__p_0='5' - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -, [Customers] AS [c2] -ORDER BY [c2].[CustomerID]", - // - @"@__p_0='5' - -SELECT [c2#Orders].[OrderID], [c2#Orders].[CustomerID], [c2#Orders].[EmployeeID], [c2#Orders].[OrderDate] -FROM ([Orders] AS [c2#Orders] -INNER JOIN ( - SELECT DISTINCT [c20].[CustomerID] - FROM ( - SELECT TOP @__p_0 [c0].* - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] - ) AS [t0] - , [Customers] AS [c20] -) AS [t1] ON [c2#Orders].[CustomerID] = [t1].[CustomerID]) -ORDER BY [t1].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Compiled_query() : - AssertSql( - @"@__customerID='BERGS' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__customerID", - // - @"@__customerID='BLAUS' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__customerID"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Equals_Navigation() : - AssertSql( - @"SELECT [o1].[OrderID], [o1].[CustomerID], [o1].[EmployeeID], [o1].[OrderDate], [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM [Orders] AS [o1] -, [Orders] AS [o2] -WHERE ([o1].[CustomerID] = [o2].[CustomerID]) OR ([o1].[CustomerID] IS NULL AND [o2].[CustomerID] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_where_nav_prop_all() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([c].[CustomerID] = [o].[CustomerID]) AND (([o].[CustomerID] <> 'ALFKI') OR [o].[CustomerID] IS NULL))"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Navigation_inside_contains_nested() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM (([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -LEFT JOIN [Customers] AS [od#Order#Customer] ON [od#Order].[CustomerID] = [od#Order#Customer].[CustomerID]) -WHERE [od#Order#Customer].[City] IN ('Novigrad', 'Seattle')"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_alias_generation(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice] -FROM ([Order Details] AS [o#OrderDetails] -INNER JOIN ( - SELECT [o0].[OrderID] - FROM [Orders] AS [o0] -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID]) -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Include_query_opt_out() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Join_with_nav_projected_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM ([Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID])", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.GroupJoin_with_nav_projected_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM ([Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID])", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_collection_navigation_simple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], Len('A')) = 'A') -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] LIKE 'A' + '%' AND (LEFT([c0].[CustomerID], Len('A')) = 'A') -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_where_nav_prop_all_client() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BERGS' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BLAUS' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BLONP' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BOLID' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Navigations_Where_Navigations() : - AssertSql( - @"SELECT [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE ([o#Customer].[City] = 'Seattle') AND (([o#Customer].[Phone] <> '555 555 5555') OR [o#Customer].[Phone] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Singleton_Navigation_With_Member_Access() : - AssertSql( - @"SELECT [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City] AS [B], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE ([o#Customer].[City] = 'Seattle') AND (([o#Customer].[Phone] <> '555 555 5555') OR [o#Customer].[Phone] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Navigation() : - AssertSql( - @"SELECT [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_alias_generation(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate] -FROM ([Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Join_with_nav_in_orderby_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM ([Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID])", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Contains() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE Instr(1, [o#Customer].[City], 'Sea', 0) > 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o#Customer].[City] = 'Seattle'"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Include_with_multiple_optional_navigations() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice], [od#Order].[OrderID], [od#Order].[CustomerID], [od#Order].[EmployeeID], [od#Order].[OrderDate], [od#Order#Customer].[CustomerID], [od#Order#Customer].[Address], [od#Order#Customer].[City], [od#Order#Customer].[CompanyName], [od#Order#Customer].[ContactName], [od#Order#Customer].[ContactTitle], [od#Order#Customer].[Country], [od#Order#Customer].[Fax], [od#Order#Customer].[Phone], [od#Order#Customer].[PostalCode], [od#Order#Customer].[Region] -FROM (([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -LEFT JOIN [Customers] AS [od#Order#Customer] ON [od#Order].[CustomerID] = [od#Order#Customer].[CustomerID]) -WHERE [od#Order#Customer].[City] = 'London'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_join_clause_with_order_by_and_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID], [c0].[City] - FROM ([Customers] AS [c0] - INNER JOIN [Orders] AS [o0] ON [c0].[CustomerID] = [o0].[CustomerID]) - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_join_clause_with_order_by_and_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID], [c0].[City] - FROM ([Customers] AS [c0] - INNER JOIN [Orders] AS [o0] ON [c0].[CustomerID] = [o0].[CustomerID]) - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.GroupJoin_with_nav_in_orderby_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM ([Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID])", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Take_Select_Navigation() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Let_group_by_nav_prop() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice], [od#Order].[CustomerID] AS [customer] -FROM ([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -ORDER BY [od#Order].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Included() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o#Customer].[City] = 'Seattle'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_then_include_collection(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID], [c#Orders].[OrderID]", - // - @"SELECT [c#Orders#OrderDetails].[OrderID], [c#Orders#OrderDetails].[ProductID], [c#Orders#OrderDetails].[Discount], [c#Orders#OrderDetails].[Quantity], [c#Orders#OrderDetails].[UnitPrice] -FROM ([Order Details] AS [c#Orders#OrderDetails] -INNER JOIN ( - SELECT DISTINCT [c#Orders0].[OrderID], [t0].[CustomerID] - FROM ([Orders] AS [c#Orders0] - INNER JOIN ( - SELECT [c1].[CustomerID] - FROM [Customers] AS [c1] - ) AS [t0] ON [c#Orders0].[CustomerID] = [t0].[CustomerID]) -) AS [t1] ON [c#Orders#OrderDetails].[OrderID] = [t1].[OrderID]) -ORDER BY [t1].[CustomerID], [t1].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Join_with_nav_in_predicate_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM ([Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID])", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Client() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key_with_first_or_default(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CompanyName] DESC, [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID], [c0].[CompanyName] - FROM [Customers] AS [c0] - ORDER BY [c0].[CompanyName] DESC, [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CompanyName] DESC, [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key_with_first_or_default(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CompanyName] DESC, [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID], [c0].[CompanyName] - FROM [Customers] AS [c0] - ORDER BY [c0].[CompanyName] DESC, [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CompanyName] DESC, [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_with_filter_reordered(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_with_filter_reordered(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Skip_Select_Navigation() : - AssertSql( - @"@__p_0='20' - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0", - // - @"@_outer_CustomerID='FAMIA' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FISSA' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FOLIG' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FOLKO' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FRANK' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FRANR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FRANS' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FURIB' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Navigation_inside_contains() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o#Customer].[City] IN ('Novigrad', 'Seattle')"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_collection_FirstOrDefault_project_anonymous_type() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[CustomerID], [o].[OrderID] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[CustomerID], [o].[OrderID] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Multiple_Access() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE ([o#Customer].[City] = 'Seattle') AND (([o#Customer].[Phone] <> '555 555 5555') OR [o#Customer].[Phone] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_take_no_order_by(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_take_no_order_by(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_select_nav_prop_first_or_default() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BERGS' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BLAUS' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BLONP' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BOLID' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_select_nav_prop_all_client() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='BERGS' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='BLAUS' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='BLONP' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='BOLID' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Deep() : - AssertSql( - @"@__p_0='1' - -SELECT TOP @__p_0 [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM (([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -LEFT JOIN [Customers] AS [od#Order#Customer] ON [od#Order].[CustomerID] = [od#Order#Customer].[CustomerID]) -WHERE [od#Order#Customer].[City] = 'Seattle' -ORDER BY [od].[OrderID], [od].[ProductID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Null_Deep() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM ([Employees] AS [e] -LEFT JOIN [Employees] AS [e#Manager] ON [e].[ReportsTo] = [e#Manager].[EmployeeID]) -WHERE [e#Manager].[ReportsTo] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_filter_reordered(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_filter_reordered(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_and_collection(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice] -FROM ([Order Details] AS [o#OrderDetails] -INNER JOIN ( - SELECT DISTINCT [o0].[OrderID] - FROM ([Orders] AS [o0] - LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]) -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID]) -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_and_collection(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice] -FROM ([Order Details] AS [o#OrderDetails] -INNER JOIN ( - SELECT DISTINCT [o0].[OrderID] - FROM ([Orders] AS [o0] - LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]) -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID]) -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_when_groupby(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_when_groupby(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_last_no_orderby(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] DESC", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] DESC -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_last_no_orderby(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] DESC", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] DESC -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_principal_already_tracked_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_principal_already_tracked_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multiple_references(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Product].[ProductID], [o#Product].[Discontinued], [o#Product].[ProductName], [o#Product].[UnitPrice], [o#Product].[UnitsInStock], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate] -FROM (([Order Details] AS [o] -INNER JOIN [Products] AS [o#Product] ON [o].[ProductID] = [o#Product].[ProductID]) -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Query_expression_with_to_string_and_contains() : - AssertSql( - @"SELECT [o].[CustomerID] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL AND (Instr(1, IIf(IsNull([o].[EmployeeID]), NULL, CStr([o].[EmployeeID])), '10', 0) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_list(Boolean useString) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -ORDER BY [p].[ProductID]", - // - @"SELECT [p#OrderDetails].[OrderID], [p#OrderDetails].[ProductID], [p#OrderDetails].[Discount], [p#OrderDetails].[Quantity], [p#OrderDetails].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate] -FROM (([Order Details] AS [p#OrderDetails] -INNER JOIN [Orders] AS [o#Order] ON [p#OrderDetails].[OrderID] = [o#Order].[OrderID]) -INNER JOIN ( - SELECT [p0].[ProductID] - FROM [Products] AS [p0] -) AS [t] ON [p#OrderDetails].[ProductID] = [t].[ProductID]) -ORDER BY [t].[ProductID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_list(Boolean useString) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -ORDER BY [p].[ProductID]", - // - @"SELECT [p#OrderDetails].[OrderID], [p#OrderDetails].[ProductID], [p#OrderDetails].[Discount], [p#OrderDetails].[Quantity], [p#OrderDetails].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate] -FROM (([Order Details] AS [p#OrderDetails] -INNER JOIN [Orders] AS [o#Order] ON [p#OrderDetails].[OrderID] = [o#Order].[OrderID]) -INNER JOIN ( - SELECT [p0].[ProductID] - FROM [Products] AS [p0] -) AS [t] ON [p#OrderDetails].[ProductID] = [t].[ProductID]) -ORDER BY [t].[ProductID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multiple_references_multi_level_reverse(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region], [o#Product].[ProductID], [o#Product].[Discontinued], [o#Product].[ProductName], [o#Product].[UnitPrice], [o#Product].[UnitsInStock] -FROM ((([Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID]) -INNER JOIN [Products] AS [o#Product] ON [o].[ProductID] = [o#Product].[ProductID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multiple_references_multi_level_reverse(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region], [o#Product].[ProductID], [o#Product].[Discontinued], [o#Product].[ProductName], [o#Product].[UnitPrice], [o#Product].[UnitsInStock] -FROM ((([Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID]) -INNER JOIN [Products] AS [o#Product] ON [o].[ProductID] = [o#Product].[ProductID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_conditional_order_by(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[CustomerID] LIKE 'S' + '%' AND (LEFT([c].[CustomerID], Len('S')) = 'S'), - 1, - 2 -), [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], IIf( - [c0].[CustomerID] LIKE 'S' + '%' AND (LEFT([c0].[CustomerID], Len('S')) = 'S'), - 1, - 2 - ) AS [c] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[c], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_conditional_order_by(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[CustomerID] LIKE 'S' + '%' AND (LEFT([c].[CustomerID], Len('S')) = 'S'), - 1, - 2 -), [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], IIf( - [c0].[CustomerID] LIKE 'S' + '%' AND (LEFT([c0].[CustomerID], Len('S')) = 'S'), - 1, - 2 - ) AS [c] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[c], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_references_multi_level(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region] -FROM (([Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_references_multi_level(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region] -FROM (([Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_key(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_key(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_as_no_tracking2(Boolean useString) : - AssertSql( - @"@__p_0='5' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@__p_0='5' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_as_no_tracking2(Boolean useString) : - AssertSql( - @"@__p_0='5' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@__p_0='5' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_principal_already_tracked(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_principal_already_tracked(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_with_filter(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_with_filter(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_with_skip(Boolean useString) : - AssertSql( - @"@__p_0='80' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName], [c].[CustomerID] - SKIP @__p_0", - // - @"@__p_0='80' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[ContactName] - FROM [Customers] AS [c0] - ORDER BY [c0].[ContactName], [c0].[CustomerID] - SKIP @__p_0 -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[ContactName], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_with_skip(Boolean useString) : - AssertSql( - @"@__p_0='80' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName], [c].[CustomerID] - SKIP @__p_0", - // - @"@__p_0='80' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[ContactName] - FROM [Customers] AS [c0] - ORDER BY [c0].[ContactName], [c0].[CustomerID] - SKIP @__p_0 -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[ContactName], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_additional_from_clause2(Boolean useString) : - AssertSql( - @"@__p_0='5' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -, [Customers] AS [c2]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_additional_from_clause2(Boolean useString) : - AssertSql( - @"@__p_0='5' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -, [Customers] AS [c2]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multi_level_collection_and_then_include_reference_predicate(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderID] = 10248 -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice], [o#Product].[ProductID], [o#Product].[Discontinued], [o#Product].[ProductName], [o#Product].[UnitPrice], [o#Product].[UnitsInStock] -FROM (([Order Details] AS [o#OrderDetails] -INNER JOIN [Products] AS [o#Product] ON [o#OrderDetails].[ProductID] = [o#Product].[ProductID]) -INNER JOIN ( - SELECT TOP 1 [o0].[OrderID] - FROM [Orders] AS [o0] - WHERE [o0].[OrderID] = 10248 - ORDER BY [o0].[OrderID] -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID]) -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multi_level_collection_and_then_include_reference_predicate(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderID] = 10248 -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice], [o#Product].[ProductID], [o#Product].[Discontinued], [o#Product].[ProductName], [o#Product].[UnitPrice], [o#Product].[UnitsInStock] -FROM (([Order Details] AS [o#OrderDetails] -INNER JOIN [Products] AS [o#Product] ON [o#OrderDetails].[ProductID] = [o#Product].[ProductID]) -INNER JOIN ( - SELECT TOP 1 [o0].[OrderID] - FROM [Orders] AS [o0] - WHERE [o0].[OrderID] = 10248 - ORDER BY [o0].[OrderID] -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID]) -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multi_level_reference_and_collection_predicate(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o].[OrderID] = 10248 -ORDER BY [o#Customer].[CustomerID]", - // - @"SELECT [o#Customer#Orders].[OrderID], [o#Customer#Orders].[CustomerID], [o#Customer#Orders].[EmployeeID], [o#Customer#Orders].[OrderDate] -FROM ([Orders] AS [o#Customer#Orders] -INNER JOIN ( - SELECT DISTINCT [t].* - FROM ( - SELECT TOP 1 [o#Customer0].[CustomerID] - FROM ([Orders] AS [o0] - LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]) - WHERE [o0].[OrderID] = 10248 - ORDER BY [o#Customer0].[CustomerID] - ) AS [t] -) AS [t0] ON [o#Customer#Orders].[CustomerID] = [t0].[CustomerID]) -ORDER BY [t0].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multi_level_reference_and_collection_predicate(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o].[OrderID] = 10248 -ORDER BY [o#Customer].[CustomerID]", - // - @"SELECT [o#Customer#Orders].[OrderID], [o#Customer#Orders].[CustomerID], [o#Customer#Orders].[EmployeeID], [o#Customer#Orders].[OrderDate] -FROM ([Orders] AS [o#Customer#Orders] -INNER JOIN ( - SELECT DISTINCT [t].* - FROM ( - SELECT TOP 1 [o#Customer0].[CustomerID] - FROM ([Orders] AS [o0] - LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]) - WHERE [o0].[OrderID] = 10248 - ORDER BY [o#Customer0].[CustomerID] - ) AS [t] -) AS [t0] ON [o#Customer#Orders].[CustomerID] = [t0].[CustomerID]) -ORDER BY [t0].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_references_and_collection_multi_level(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region] -FROM (([Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID]) -ORDER BY [o#Order#Customer].[CustomerID]", - // - @"SELECT [o#Order#Customer#Orders].[OrderID], [o#Order#Customer#Orders].[CustomerID], [o#Order#Customer#Orders].[EmployeeID], [o#Order#Customer#Orders].[OrderDate] -FROM ([Orders] AS [o#Order#Customer#Orders] -INNER JOIN ( - SELECT DISTINCT [o#Order#Customer0].[CustomerID] - FROM (([Order Details] AS [o0] - INNER JOIN [Orders] AS [o#Order0] ON [o0].[OrderID] = [o#Order0].[OrderID]) - LEFT JOIN [Customers] AS [o#Order#Customer0] ON [o#Order0].[CustomerID] = [o#Order#Customer0].[CustomerID]) -) AS [t] ON [o#Order#Customer#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_references_and_collection_multi_level(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region] -FROM (([Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID]) -ORDER BY [o#Order#Customer].[CustomerID]", - // - @"SELECT [o#Order#Customer#Orders].[OrderID], [o#Order#Customer#Orders].[CustomerID], [o#Order#Customer#Orders].[EmployeeID], [o#Order#Customer#Orders].[OrderDate] -FROM ([Orders] AS [o#Order#Customer#Orders] -INNER JOIN ( - SELECT DISTINCT [o#Order#Customer0].[CustomerID] - FROM (([Order Details] AS [o0] - INNER JOIN [Orders] AS [o#Order0] ON [o0].[OrderID] = [o#Order0].[OrderID]) - LEFT JOIN [Customers] AS [o#Order#Customer0] ON [o#Order0].[CustomerID] = [o#Order#Customer0].[CustomerID]) -) AS [t] ON [o#Order#Customer#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key_with_take(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactTitle], [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID], [c0].[ContactTitle] - FROM [Customers] AS [c0] - ORDER BY [c0].[ContactTitle], [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[ContactTitle], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key_with_take(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactTitle], [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID], [c0].[ContactTitle] - FROM [Customers] AS [c0] - ORDER BY [c0].[ContactTitle], [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[ContactTitle], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_last(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CompanyName] DESC, [c].[CustomerID] DESC", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID], [c0].[CompanyName] - FROM [Customers] AS [c0] - ORDER BY [c0].[CompanyName] DESC, [c0].[CustomerID] DESC -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CompanyName] DESC, [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_last(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CompanyName] DESC, [c].[CustomerID] DESC", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID], [c0].[CompanyName] - FROM [Customers] AS [c0] - ORDER BY [c0].[CompanyName] DESC, [c0].[CustomerID] DESC -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CompanyName] DESC, [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_with_take(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[City] DESC, [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - ORDER BY [c0].[City] DESC, [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[City] DESC, [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_with_take(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[City] DESC, [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - ORDER BY [c0].[City] DESC, [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[City] DESC, [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_where_skip_take_projection(Boolean useString) : - AssertSql( - @"@__p_1='2' -@__p_0='1' - -SELECT TOP @__p_1+@__p_0 [od#Order].[CustomerID] -FROM ([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -WHERE [od].[Quantity] = 10 -ORDER BY [od].[OrderID], [od].[ProductID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_where_skip_take_projection(Boolean useString) : - AssertSql( - @"@__p_1='2' -@__p_0='1' - -SELECT TOP @__p_1+@__p_0 [od#Order].[CustomerID] -FROM ([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -WHERE [od].[Quantity] = 10 -ORDER BY [od].[OrderID], [od].[ProductID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_skip_no_order_by(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] - SKIP @__p_0 -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_skip_no_order_by(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] - SKIP @__p_0 -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_additional_from_clause_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c1] -, [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID] - FROM [Customers] AS [c10] - , [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_additional_from_clause_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c1] -, [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID] - FROM [Customers] AS [c10] - , [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multiple_references_multi_level(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Product].[ProductID], [o#Product].[Discontinued], [o#Product].[ProductName], [o#Product].[UnitPrice], [o#Product].[UnitsInStock], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region] -FROM ((([Order Details] AS [o] -INNER JOIN [Products] AS [o#Product] ON [o].[ProductID] = [o#Product].[ProductID]) -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Where_subquery_on_navigation_client_eval() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [o4].[OrderID] -FROM [Orders] AS [o4]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o2].[OrderID] -FROM [Orders] AS [o2] -WHERE @_outer_CustomerID = [o2].[CustomerID]", - // - @"SELECT [o4].[OrderID] -FROM [Orders] AS [o4]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o2].[OrderID] -FROM [Orders] AS [o2] -WHERE @_outer_CustomerID = [o2].[CustomerID]", - // - @"SELECT [o4].[OrderID] -FROM [Orders] AS [o4]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o2].[OrderID] -FROM [Orders] AS [o2] -WHERE @_outer_CustomerID = [o2].[CustomerID]", - // - @"SELECT [o4].[OrderID] -FROM [Orders] AS [o4]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [o2].[OrderID] -FROM [Orders] AS [o2] -WHERE @_outer_CustomerID = [o2].[CustomerID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Navigations() : - AssertSql( - @"SELECT [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_select_nav_prop_first_or_default_then_nav_prop() : - AssertSql( - @"SELECT [e].[CustomerID] -FROM [Customers] AS [e] -WHERE [e].[CustomerID] LIKE 'A' + '%' AND (LEFT([e].[CustomerID], Len('A')) = 'A') -ORDER BY [e].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM ([Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID]) -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM ([Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID]) -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM ([Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID]) -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM ([Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID]) -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Navigation_fk_based_inside_contains() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] IN ('ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multiple_references_multi_level(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Product].[ProductID], [o#Product].[Discontinued], [o#Product].[ProductName], [o#Product].[UnitPrice], [o#Product].[UnitsInStock], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region] -FROM ((([Order Details] AS [o] -INNER JOIN [Products] AS [o#Product] ON [o].[ProductID] = [o#Product].[ProductID]) -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_skip_take_no_order_by(Boolean useString) : - AssertSql( - @"@__p_1='5' -@__p_0='10' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0", - // - @"@__p_1='5' -@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_1+@__p_0 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] - SKIP @__p_0 -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_skip_take_no_order_by(Boolean useString) : - AssertSql( - @"@__p_1='5' -@__p_0='10' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0", - // - @"@__p_1='5' -@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_1+@__p_0 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] - SKIP @__p_0 -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_additional_from_clause(Boolean useString) : - AssertSql( - @"@__p_0='5' - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -, [Customers] AS [c2] -ORDER BY [c2].[CustomerID]", - // - @"@__p_0='5' - -SELECT [c2#Orders].[OrderID], [c2#Orders].[CustomerID], [c2#Orders].[EmployeeID], [c2#Orders].[OrderDate] -FROM ([Orders] AS [c2#Orders] -INNER JOIN ( - SELECT DISTINCT [c20].[CustomerID] - FROM ( - SELECT TOP @__p_0 [c0].* - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] - ) AS [t0] - , [Customers] AS [c20] -) AS [t1] ON [c2#Orders].[CustomerID] = [t1].[CustomerID]) -ORDER BY [t1].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Compiled_query() : - AssertSql( - @"@__customerID='BERGS' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__customerID", - // - @"@__customerID='BLAUS' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__customerID"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_additional_from_clause(Boolean useString) : - AssertSql( - @"@__p_0='5' - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -, [Customers] AS [c2] -ORDER BY [c2].[CustomerID]", - // - @"@__p_0='5' - -SELECT [c2#Orders].[OrderID], [c2#Orders].[CustomerID], [c2#Orders].[EmployeeID], [c2#Orders].[OrderDate] -FROM ([Orders] AS [c2#Orders] -INNER JOIN ( - SELECT DISTINCT [c20].[CustomerID] - FROM ( - SELECT TOP @__p_0 [c0].* - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] - ) AS [t0] - , [Customers] AS [c20] -) AS [t1] ON [c2#Orders].[CustomerID] = [t1].[CustomerID]) -ORDER BY [t1].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Include_query_opt_out() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Join_with_nav_projected_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM ([Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID])", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_alias_generation(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice] -FROM ([Order Details] AS [o#OrderDetails] -INNER JOIN ( - SELECT [o0].[OrderID] - FROM [Orders] AS [o0] -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID]) -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.GroupJoin_with_nav_projected_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM ([Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID])", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_alias_generation(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice] -FROM ([Order Details] AS [o#OrderDetails] -INNER JOIN ( - SELECT [o0].[OrderID] - FROM [Orders] AS [o0] -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID]) -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_where_nav_prop_all_client() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BERGS' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BLAUS' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BLONP' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BOLID' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Navigations_Where_Navigations() : - AssertSql( - @"SELECT [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE ([o#Customer].[City] = 'Seattle') AND (([o#Customer].[Phone] <> '555 555 5555') OR [o#Customer].[Phone] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Singleton_Navigation_With_Member_Access() : - AssertSql( - @"SELECT [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City] AS [B], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE ([o#Customer].[City] = 'Seattle') AND (([o#Customer].[Phone] <> '555 555 5555') OR [o#Customer].[Phone] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Navigation() : - AssertSql( - @"SELECT [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Join_with_nav_in_orderby_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM ([Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID])", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Contains() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE Instr(1, [o#Customer].[City], 'Sea', 0) > 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o#Customer].[City] = 'Seattle'"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Include_with_multiple_optional_navigations() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice], [od#Order].[OrderID], [od#Order].[CustomerID], [od#Order].[EmployeeID], [od#Order].[OrderDate], [od#Order#Customer].[CustomerID], [od#Order#Customer].[Address], [od#Order#Customer].[City], [od#Order#Customer].[CompanyName], [od#Order#Customer].[ContactName], [od#Order#Customer].[ContactTitle], [od#Order#Customer].[Country], [od#Order#Customer].[Fax], [od#Order#Customer].[Phone], [od#Order#Customer].[PostalCode], [od#Order#Customer].[Region] -FROM (([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -LEFT JOIN [Customers] AS [od#Order#Customer] ON [od#Order].[CustomerID] = [od#Order#Customer].[CustomerID]) -WHERE [od#Order#Customer].[City] = 'London'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_alias_generation(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate] -FROM ([Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Singleton_Navigation_With_Member_Access() : - AssertSql( - @"SELECT [o#Customer].[City] AS [B] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE ([o#Customer].[City] = 'Seattle') AND (([o#Customer].[Phone] <> '555 555 5555') OR [o#Customer].[Phone] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Navigation_from_join_clause_inside_contains() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM (([Order Details] AS [od] -INNER JOIN [Orders] AS [o] ON [od].[OrderID] = [o].[OrderID]) -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o#Customer].[Country] IN ('USA', 'Redania')"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.GroupJoin_with_nav_in_predicate_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM ([Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID])", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Project_single_entity_value_subquery_works() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND (LEFT([c].[CustomerID], Len('A')) = 'A') -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.GroupJoin_with_nav_in_orderby_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM ([Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID])", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Client() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Skip_Select_Navigation() : - AssertSql( - @"@__p_0='20' - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0", - // - @"@_outer_CustomerID='FAMIA' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FISSA' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FOLIG' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FOLKO' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FRANK' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FRANR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FRANS' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FURIB' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Navigation_inside_contains() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o#Customer].[City] IN ('Novigrad', 'Seattle')"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_collection_FirstOrDefault_project_anonymous_type() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[CustomerID], [o].[OrderID] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[CustomerID], [o].[OrderID] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Multiple_Access() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE ([o#Customer].[City] = 'Seattle') AND (([o#Customer].[Phone] <> '555 555 5555') OR [o#Customer].[Phone] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_then_include_collection(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID], [c#Orders].[OrderID]", - // - @"SELECT [c#Orders#OrderDetails].[OrderID], [c#Orders#OrderDetails].[ProductID], [c#Orders#OrderDetails].[Discount], [c#Orders#OrderDetails].[Quantity], [c#Orders#OrderDetails].[UnitPrice] -FROM ([Order Details] AS [c#Orders#OrderDetails] -INNER JOIN ( - SELECT DISTINCT [c#Orders0].[OrderID], [t0].[CustomerID] - FROM ([Orders] AS [c#Orders0] - INNER JOIN ( - SELECT [c1].[CustomerID] - FROM [Customers] AS [c1] - ) AS [t0] ON [c#Orders0].[CustomerID] = [t0].[CustomerID]) -) AS [t1] ON [c#Orders#OrderDetails].[OrderID] = [t1].[OrderID]) -ORDER BY [t1].[CustomerID], [t1].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key_with_first_or_default(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CompanyName] DESC, [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID], [c0].[CompanyName] - FROM [Customers] AS [c0] - ORDER BY [c0].[CompanyName] DESC, [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CompanyName] DESC, [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key_with_first_or_default(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CompanyName] DESC, [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID], [c0].[CompanyName] - FROM [Customers] AS [c0] - ORDER BY [c0].[CompanyName] DESC, [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CompanyName] DESC, [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_with_filter_reordered(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_with_filter_reordered(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_take_no_order_by(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_take_no_order_by(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_filter_reordered(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_filter_reordered(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_and_collection(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice] -FROM ([Order Details] AS [o#OrderDetails] -INNER JOIN ( - SELECT DISTINCT [o0].[OrderID] - FROM ([Orders] AS [o0] - LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]) -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID]) -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_and_collection(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice] -FROM ([Order Details] AS [o#OrderDetails] -INNER JOIN ( - SELECT DISTINCT [o0].[OrderID] - FROM ([Orders] AS [o0] - LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]) -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID]) -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_when_groupby(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_when_groupby(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_last_no_orderby(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] DESC", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] DESC -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_last_no_orderby(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] DESC", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] DESC -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_principal_already_tracked_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_principal_already_tracked_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multiple_references(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Product].[ProductID], [o#Product].[Discontinued], [o#Product].[ProductName], [o#Product].[UnitPrice], [o#Product].[UnitsInStock], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate] -FROM (([Order Details] AS [o] -INNER JOIN [Products] AS [o#Product] ON [o].[ProductID] = [o#Product].[ProductID]) -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multiple_references(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Product].[ProductID], [o#Product].[Discontinued], [o#Product].[ProductName], [o#Product].[UnitPrice], [o#Product].[UnitsInStock], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate] -FROM (([Order Details] AS [o] -INNER JOIN [Products] AS [o#Product] ON [o].[ProductID] = [o#Product].[ProductID]) -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_list(Boolean useString) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -ORDER BY [p].[ProductID]", - // - @"SELECT [p#OrderDetails].[OrderID], [p#OrderDetails].[ProductID], [p#OrderDetails].[Discount], [p#OrderDetails].[Quantity], [p#OrderDetails].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate] -FROM (([Order Details] AS [p#OrderDetails] -INNER JOIN [Orders] AS [o#Order] ON [p#OrderDetails].[OrderID] = [o#Order].[OrderID]) -INNER JOIN ( - SELECT [p0].[ProductID] - FROM [Products] AS [p0] -) AS [t] ON [p#OrderDetails].[ProductID] = [t].[ProductID]) -ORDER BY [t].[ProductID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_list(Boolean useString) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -ORDER BY [p].[ProductID]", - // - @"SELECT [p#OrderDetails].[OrderID], [p#OrderDetails].[ProductID], [p#OrderDetails].[Discount], [p#OrderDetails].[Quantity], [p#OrderDetails].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate] -FROM (([Order Details] AS [p#OrderDetails] -INNER JOIN [Orders] AS [o#Order] ON [p#OrderDetails].[OrderID] = [o#Order].[OrderID]) -INNER JOIN ( - SELECT [p0].[ProductID] - FROM [Products] AS [p0] -) AS [t] ON [p#OrderDetails].[ProductID] = [t].[ProductID]) -ORDER BY [t].[ProductID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multiple_references_multi_level_reverse(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region], [o#Product].[ProductID], [o#Product].[Discontinued], [o#Product].[ProductName], [o#Product].[UnitPrice], [o#Product].[UnitsInStock] -FROM ((([Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID]) -INNER JOIN [Products] AS [o#Product] ON [o].[ProductID] = [o#Product].[ProductID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multiple_references_multi_level_reverse(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region], [o#Product].[ProductID], [o#Product].[Discontinued], [o#Product].[ProductName], [o#Product].[UnitPrice], [o#Product].[UnitsInStock] -FROM ((([Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID]) -INNER JOIN [Products] AS [o#Product] ON [o].[ProductID] = [o#Product].[ProductID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_conditional_order_by(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[CustomerID] LIKE 'S' + '%' AND (LEFT([c].[CustomerID], Len('S')) = 'S'), - 1, - 2 -), [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], IIf( - [c0].[CustomerID] LIKE 'S' + '%' AND (LEFT([c0].[CustomerID], Len('S')) = 'S'), - 1, - 2 - ) AS [c] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[c], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_conditional_order_by(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[CustomerID] LIKE 'S' + '%' AND (LEFT([c].[CustomerID], Len('S')) = 'S'), - 1, - 2 -), [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], IIf( - [c0].[CustomerID] LIKE 'S' + '%' AND (LEFT([c0].[CustomerID], Len('S')) = 'S'), - 1, - 2 - ) AS [c] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[c], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_references_multi_level(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region] -FROM (([Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_references_multi_level(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region] -FROM (([Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_key(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_key(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_as_no_tracking2(Boolean useString) : - AssertSql( - @"@__p_0='5' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@__p_0='5' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_as_no_tracking2(Boolean useString) : - AssertSql( - @"@__p_0='5' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@__p_0='5' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Query_expression_with_to_string_and_contains() : - AssertSql( - @"SELECT [o].[CustomerID] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL AND (Instr(1, IIf(IsNull([o].[EmployeeID]), NULL, CStr([o].[EmployeeID])), '10', 0) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_principal_already_tracked(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_principal_already_tracked(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_with_filter(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_with_filter(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_with_skip(Boolean useString) : - AssertSql( - @"@__p_0='80' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName], [c].[CustomerID] - SKIP @__p_0", - // - @"@__p_0='80' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[ContactName] - FROM [Customers] AS [c0] - ORDER BY [c0].[ContactName], [c0].[CustomerID] - SKIP @__p_0 -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[ContactName], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_with_skip(Boolean useString) : - AssertSql( - @"@__p_0='80' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName], [c].[CustomerID] - SKIP @__p_0", - // - @"@__p_0='80' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[ContactName] - FROM [Customers] AS [c0] - ORDER BY [c0].[ContactName], [c0].[CustomerID] - SKIP @__p_0 -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[ContactName], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_additional_from_clause2(Boolean useString) : - AssertSql( - @"@__p_0='5' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -, [Customers] AS [c2]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_additional_from_clause2(Boolean useString) : - AssertSql( - @"@__p_0='5' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -, [Customers] AS [c2]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multi_level_collection_and_then_include_reference_predicate(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderID] = 10248 -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice], [o#Product].[ProductID], [o#Product].[Discontinued], [o#Product].[ProductName], [o#Product].[UnitPrice], [o#Product].[UnitsInStock] -FROM (([Order Details] AS [o#OrderDetails] -INNER JOIN [Products] AS [o#Product] ON [o#OrderDetails].[ProductID] = [o#Product].[ProductID]) -INNER JOIN ( - SELECT TOP 1 [o0].[OrderID] - FROM [Orders] AS [o0] - WHERE [o0].[OrderID] = 10248 - ORDER BY [o0].[OrderID] -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID]) -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multi_level_collection_and_then_include_reference_predicate(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderID] = 10248 -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice], [o#Product].[ProductID], [o#Product].[Discontinued], [o#Product].[ProductName], [o#Product].[UnitPrice], [o#Product].[UnitsInStock] -FROM (([Order Details] AS [o#OrderDetails] -INNER JOIN [Products] AS [o#Product] ON [o#OrderDetails].[ProductID] = [o#Product].[ProductID]) -INNER JOIN ( - SELECT TOP 1 [o0].[OrderID] - FROM [Orders] AS [o0] - WHERE [o0].[OrderID] = 10248 - ORDER BY [o0].[OrderID] -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID]) -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multi_level_reference_and_collection_predicate(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o].[OrderID] = 10248 -ORDER BY [o#Customer].[CustomerID]", - // - @"SELECT [o#Customer#Orders].[OrderID], [o#Customer#Orders].[CustomerID], [o#Customer#Orders].[EmployeeID], [o#Customer#Orders].[OrderDate] -FROM ([Orders] AS [o#Customer#Orders] -INNER JOIN ( - SELECT DISTINCT [t].* - FROM ( - SELECT TOP 1 [o#Customer0].[CustomerID] - FROM ([Orders] AS [o0] - LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]) - WHERE [o0].[OrderID] = 10248 - ORDER BY [o#Customer0].[CustomerID] - ) AS [t] -) AS [t0] ON [o#Customer#Orders].[CustomerID] = [t0].[CustomerID]) -ORDER BY [t0].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multi_level_reference_and_collection_predicate(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o].[OrderID] = 10248 -ORDER BY [o#Customer].[CustomerID]", - // - @"SELECT [o#Customer#Orders].[OrderID], [o#Customer#Orders].[CustomerID], [o#Customer#Orders].[EmployeeID], [o#Customer#Orders].[OrderDate] -FROM ([Orders] AS [o#Customer#Orders] -INNER JOIN ( - SELECT DISTINCT [t].* - FROM ( - SELECT TOP 1 [o#Customer0].[CustomerID] - FROM ([Orders] AS [o0] - LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]) - WHERE [o0].[OrderID] = 10248 - ORDER BY [o#Customer0].[CustomerID] - ) AS [t] -) AS [t0] ON [o#Customer#Orders].[CustomerID] = [t0].[CustomerID]) -ORDER BY [t0].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_references_and_collection_multi_level(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region] -FROM (([Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID]) -ORDER BY [o#Order#Customer].[CustomerID]", - // - @"SELECT [o#Order#Customer#Orders].[OrderID], [o#Order#Customer#Orders].[CustomerID], [o#Order#Customer#Orders].[EmployeeID], [o#Order#Customer#Orders].[OrderDate] -FROM ([Orders] AS [o#Order#Customer#Orders] -INNER JOIN ( - SELECT DISTINCT [o#Order#Customer0].[CustomerID] - FROM (([Order Details] AS [o0] - INNER JOIN [Orders] AS [o#Order0] ON [o0].[OrderID] = [o#Order0].[OrderID]) - LEFT JOIN [Customers] AS [o#Order#Customer0] ON [o#Order0].[CustomerID] = [o#Order#Customer0].[CustomerID]) -) AS [t] ON [o#Order#Customer#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_references_and_collection_multi_level(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region] -FROM (([Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID]) -ORDER BY [o#Order#Customer].[CustomerID]", - // - @"SELECT [o#Order#Customer#Orders].[OrderID], [o#Order#Customer#Orders].[CustomerID], [o#Order#Customer#Orders].[EmployeeID], [o#Order#Customer#Orders].[OrderDate] -FROM ([Orders] AS [o#Order#Customer#Orders] -INNER JOIN ( - SELECT DISTINCT [o#Order#Customer0].[CustomerID] - FROM (([Order Details] AS [o0] - INNER JOIN [Orders] AS [o#Order0] ON [o0].[OrderID] = [o#Order0].[OrderID]) - LEFT JOIN [Customers] AS [o#Order#Customer0] ON [o#Order0].[CustomerID] = [o#Order#Customer0].[CustomerID]) -) AS [t] ON [o#Order#Customer#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key_with_take(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactTitle], [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID], [c0].[ContactTitle] - FROM [Customers] AS [c0] - ORDER BY [c0].[ContactTitle], [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[ContactTitle], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key_with_take(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactTitle], [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID], [c0].[ContactTitle] - FROM [Customers] AS [c0] - ORDER BY [c0].[ContactTitle], [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[ContactTitle], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_last(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CompanyName] DESC, [c].[CustomerID] DESC", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID], [c0].[CompanyName] - FROM [Customers] AS [c0] - ORDER BY [c0].[CompanyName] DESC, [c0].[CustomerID] DESC -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CompanyName] DESC, [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_last(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CompanyName] DESC, [c].[CustomerID] DESC", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID], [c0].[CompanyName] - FROM [Customers] AS [c0] - ORDER BY [c0].[CompanyName] DESC, [c0].[CustomerID] DESC -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CompanyName] DESC, [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_with_take(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[City] DESC, [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - ORDER BY [c0].[City] DESC, [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[City] DESC, [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_with_take(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[City] DESC, [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - ORDER BY [c0].[City] DESC, [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[City] DESC, [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_where_skip_take_projection(Boolean useString) : - AssertSql( - @"@__p_1='2' -@__p_0='1' - -SELECT TOP @__p_1+@__p_0 [od#Order].[CustomerID] -FROM ([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -WHERE [od].[Quantity] = 10 -ORDER BY [od].[OrderID], [od].[ProductID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_where_skip_take_projection(Boolean useString) : - AssertSql( - @"@__p_1='2' -@__p_0='1' - -SELECT TOP @__p_1+@__p_0 [od#Order].[CustomerID] -FROM ([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -WHERE [od].[Quantity] = 10 -ORDER BY [od].[OrderID], [od].[ProductID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_skip_no_order_by(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] - SKIP @__p_0 -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_skip_no_order_by(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] - SKIP @__p_0 -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_additional_from_clause_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c1] -, [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID] - FROM [Customers] AS [c10] - , [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_additional_from_clause_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c1] -, [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID] - FROM [Customers] AS [c10] - , [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Query_expression_with_to_string_and_contains() : - AssertSql( - @"SELECT [o].[CustomerID] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL AND (Instr(1, IIf(IsNull([o].[EmployeeID]), NULL, CStr([o].[EmployeeID])), '10', 0) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsOwnedQueryJetTest.Result_operator_nav_prop_reference_optional_via_DefaultIfEmpty() : - AssertSql( - @"SELECT SUM(IIf( - [t0].[Id] IS NULL, - 0, - [t0].[Level1_Required_Id] -)) -FROM ([Level1] AS [l1] -LEFT JOIN ( - SELECT [t].* - FROM [Level1] AS [t] - WHERE [t].[Id] IS NOT NULL -) AS [t0] ON [l1].[Id] = [t0].[Level1_Optional_Id])"); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsOwnedQueryJetTest.Explicit_GroupJoin_in_subquery_with_unrelated_projection2() : - AssertSql( - @"SELECT [t1].[Id] -FROM ( - SELECT DISTINCT [l1].* - FROM ([Level1] AS [l1] - LEFT JOIN ( - SELECT [t].* - FROM [Level1] AS [t] - WHERE [t].[Id] IS NOT NULL - ) AS [t0] ON [l1].[Id] = [t0].[Level1_Optional_Id]) - WHERE ([t0].[Level2_Name] <> 'Foo') OR [t0].[Level2_Name] IS NULL -) AS [t1]"); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsOwnedQueryJetTest.Level4_Include() : - AssertSql( - @"SELECT [l1#OneToOne_Required_PK#OneToOne_Required_PK#OneToOne_Required_PK#OneToOne_Required_FK_Inverse#OneToOne_Required_FK_Inverse].[Id], [l1#OneToOne_Required_PK#OneToOne_Required_PK#OneToOne_Required_PK#OneToOne_Required_FK_Inverse#OneToOne_Required_FK_Inverse].[OneToOne_Required_PK_Date], [l1#OneToOne_Required_PK#OneToOne_Required_PK#OneToOne_Required_PK#OneToOne_Required_FK_Inverse#OneToOne_Required_FK_Inverse].[Level1_Optional_Id], [l1#OneToOne_Required_PK#OneToOne_Required_PK#OneToOne_Required_PK#OneToOne_Required_FK_Inverse#OneToOne_Required_FK_Inverse].[Level1_Required_Id], [l1#OneToOne_Required_PK#OneToOne_Required_PK#OneToOne_Required_PK#OneToOne_Required_FK_Inverse#OneToOne_Required_FK_Inverse].[Level2_Name], [l1#OneToOne_Required_PK#OneToOne_Required_PK#OneToOne_Required_PK#OneToOne_Required_FK_Inverse#OneToOne_Required_FK_Inverse].[OneToOne_Optional_PK_InverseId], [OneToOne_Required_PK#OneToOne_Required_PK#OneToOne_Required_FK_Inverse#OneToOne_Required_FK_Inverse#OneToOne_Optional_FK].[Id], [OneToOne_Required_PK#OneToOne_Required_PK#OneToOne_Required_FK_Inverse#OneToOne_Required_FK_Inverse#OneToOne_Optional_FK].[Level2_Optional_Id], [OneToOne_Required_PK#OneToOne_Required_PK#OneToOne_Required_FK_Inverse#OneToOne_Required_FK_Inverse#OneToOne_Optional_FK].[Level2_Required_Id], [OneToOne_Required_PK#OneToOne_Required_PK#OneToOne_Required_FK_Inverse#OneToOne_Required_FK_Inverse#OneToOne_Optional_FK].[Level3_Name], [OneToOne_Required_PK#OneToOne_Required_PK#OneToOne_Required_FK_Inverse#OneToOne_Required_FK_Inverse#OneToOne_Optional_FK].[Level3_OneToOne_Optional_PK_InverseId] -FROM ((([Level1] AS [l1] -LEFT JOIN [Level1] AS [l1#OneToOne_Required_PK#OneToOne_Required_PK#OneToOne_Required_PK#OneToOne_Required_FK_Inverse] ON [l1].[Level3_Required_Id] = [l1#OneToOne_Required_PK#OneToOne_Required_PK#OneToOne_Required_PK#OneToOne_Required_FK_Inverse].[Id]) -LEFT JOIN [Level1] AS [l1#OneToOne_Required_PK#OneToOne_Required_PK#OneToOne_Required_PK#OneToOne_Required_FK_Inverse#OneToOne_Required_FK_Inverse] ON [l1#OneToOne_Required_PK#OneToOne_Required_PK#OneToOne_Required_PK#OneToOne_Required_FK_Inverse].[Level2_Required_Id] = [l1#OneToOne_Required_PK#OneToOne_Required_PK#OneToOne_Required_PK#OneToOne_Required_FK_Inverse#OneToOne_Required_FK_Inverse].[Id]) -LEFT JOIN [Level1] AS [OneToOne_Required_PK#OneToOne_Required_PK#OneToOne_Required_FK_Inverse#OneToOne_Required_FK_Inverse#OneToOne_Optional_FK] ON [l1#OneToOne_Required_PK#OneToOne_Required_PK#OneToOne_Required_PK#OneToOne_Required_FK_Inverse#OneToOne_Required_FK_Inverse].[Id] = [OneToOne_Required_PK#OneToOne_Required_PK#OneToOne_Required_FK_Inverse#OneToOne_Required_FK_Inverse#OneToOne_Optional_FK].[Level2_Optional_Id]) -WHERE ([l1].[Id] IS NOT NULL AND [l1].[Id] IS NOT NULL) AND [l1].[Id] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.Comparing_collection_navigation_on_optional_reference_to_null() : - AssertSql( - @"SELECT [l1].[Id] -FROM ([Level1] AS [l1] -LEFT JOIN [Level2] AS [l1#OneToOne_Optional_FK] ON [l1].[Id] = [l1#OneToOne_Optional_FK].[Level1_Optional_Id]) -WHERE [l1#OneToOne_Optional_FK].[Id] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.Include_with_groupjoin_skip_and_take() : - AssertSql( - @"SELECT [e].[Id], [e].[Date], [e].[Name], [e].[OneToMany_Optional_Self_InverseId], [e].[OneToMany_Required_Self_InverseId], [e].[OneToOne_Optional_SelfId], [l2].[Id], [l2].[Date], [l2].[Level1_Optional_Id], [l2].[Level1_Required_Id], [l2].[Name], [l2].[OneToMany_Optional_InverseId], [l2].[OneToMany_Optional_Self_InverseId], [l2].[OneToMany_Required_InverseId], [l2].[OneToMany_Required_Self_InverseId], [l2].[OneToOne_Optional_PK_InverseId], [l2].[OneToOne_Optional_SelfId] -FROM ([Level1] AS [e] -LEFT JOIN [Level2] AS [l2] ON [e].[Id] = [l2].[Level1_Optional_Id]) -WHERE ([e].[Name] <> 'L1 03') OR [e].[Name] IS NULL -ORDER BY [e].[Id]", - // - @"SELECT [e1].[Id], [e1].[Date], [e1].[Name], [e1].[OneToMany_Optional_Self_InverseId], [e1].[OneToMany_Required_Self_InverseId], [e1].[OneToOne_Optional_SelfId], [l21].[Id], [l21].[Date], [l21].[Level1_Optional_Id], [l21].[Level1_Required_Id], [l21].[Name], [l21].[OneToMany_Optional_InverseId], [l21].[OneToMany_Optional_Self_InverseId], [l21].[OneToMany_Required_InverseId], [l21].[OneToMany_Required_Self_InverseId], [l21].[OneToOne_Optional_PK_InverseId], [l21].[OneToOne_Optional_SelfId] -FROM ([Level1] AS [e1] -LEFT JOIN [Level2] AS [l21] ON [e1].[Id] = [l21].[Level1_Optional_Id]) -WHERE ([e1].[Name] <> 'L1 03') OR [e1].[Name] IS NULL -ORDER BY [e1].[Id]", - // - @"SELECT [e#OneToMany_Optional].[Id], [e#OneToMany_Optional].[Date], [e#OneToMany_Optional].[Level1_Optional_Id], [e#OneToMany_Optional].[Level1_Required_Id], [e#OneToMany_Optional].[Name], [e#OneToMany_Optional].[OneToMany_Optional_InverseId], [e#OneToMany_Optional].[OneToMany_Optional_Self_InverseId], [e#OneToMany_Optional].[OneToMany_Required_InverseId], [e#OneToMany_Optional].[OneToMany_Required_Self_InverseId], [e#OneToMany_Optional].[OneToOne_Optional_PK_InverseId], [e#OneToMany_Optional].[OneToOne_Optional_SelfId], [l#OneToOne_Optional_FK].[Id], [l#OneToOne_Optional_FK].[Level2_Optional_Id], [l#OneToOne_Optional_FK].[Level2_Required_Id], [l#OneToOne_Optional_FK].[Name], [l#OneToOne_Optional_FK].[OneToMany_Optional_InverseId], [l#OneToOne_Optional_FK].[OneToMany_Optional_Self_InverseId], [l#OneToOne_Optional_FK].[OneToMany_Required_InverseId], [l#OneToOne_Optional_FK].[OneToMany_Required_Self_InverseId], [l#OneToOne_Optional_FK].[OneToOne_Optional_PK_InverseId], [l#OneToOne_Optional_FK].[OneToOne_Optional_SelfId] -FROM ([Level2] AS [e#OneToMany_Optional] -LEFT JOIN [Level3] AS [l#OneToOne_Optional_FK] ON [e#OneToMany_Optional].[Id] = [l#OneToOne_Optional_FK].[Level2_Optional_Id])", - // - @"SELECT [l2#OneToOne_Required_PK].[Id], [l2#OneToOne_Required_PK].[Level2_Optional_Id], [l2#OneToOne_Required_PK].[Level2_Required_Id], [l2#OneToOne_Required_PK].[Name], [l2#OneToOne_Required_PK].[OneToMany_Optional_InverseId], [l2#OneToOne_Required_PK].[OneToMany_Optional_Self_InverseId], [l2#OneToOne_Required_PK].[OneToMany_Required_InverseId], [l2#OneToOne_Required_PK].[OneToMany_Required_Self_InverseId], [l2#OneToOne_Required_PK].[OneToOne_Optional_PK_InverseId], [l2#OneToOne_Required_PK].[OneToOne_Optional_SelfId] -FROM [Level3] AS [l2#OneToOne_Required_PK]", - // - @"SELECT [l2#OneToOne_Required_PK].[Id], [l2#OneToOne_Required_PK].[Level2_Optional_Id], [l2#OneToOne_Required_PK].[Level2_Required_Id], [l2#OneToOne_Required_PK].[Name], [l2#OneToOne_Required_PK].[OneToMany_Optional_InverseId], [l2#OneToOne_Required_PK].[OneToMany_Optional_Self_InverseId], [l2#OneToOne_Required_PK].[OneToMany_Required_InverseId], [l2#OneToOne_Required_PK].[OneToMany_Required_Self_InverseId], [l2#OneToOne_Required_PK].[OneToOne_Optional_PK_InverseId], [l2#OneToOne_Required_PK].[OneToOne_Optional_SelfId] -FROM [Level3] AS [l2#OneToOne_Required_PK]", - // - @"SELECT [l2#OneToOne_Required_PK].[Id], [l2#OneToOne_Required_PK].[Level2_Optional_Id], [l2#OneToOne_Required_PK].[Level2_Required_Id], [l2#OneToOne_Required_PK].[Name], [l2#OneToOne_Required_PK].[OneToMany_Optional_InverseId], [l2#OneToOne_Required_PK].[OneToMany_Optional_Self_InverseId], [l2#OneToOne_Required_PK].[OneToMany_Required_InverseId], [l2#OneToOne_Required_PK].[OneToMany_Required_Self_InverseId], [l2#OneToOne_Required_PK].[OneToOne_Optional_PK_InverseId], [l2#OneToOne_Required_PK].[OneToOne_Optional_SelfId] -FROM [Level3] AS [l2#OneToOne_Required_PK]", - // - @"SELECT [l2#OneToOne_Required_PK].[Id], [l2#OneToOne_Required_PK].[Level2_Optional_Id], [l2#OneToOne_Required_PK].[Level2_Required_Id], [l2#OneToOne_Required_PK].[Name], [l2#OneToOne_Required_PK].[OneToMany_Optional_InverseId], [l2#OneToOne_Required_PK].[OneToMany_Optional_Self_InverseId], [l2#OneToOne_Required_PK].[OneToMany_Required_InverseId], [l2#OneToOne_Required_PK].[OneToMany_Required_Self_InverseId], [l2#OneToOne_Required_PK].[OneToOne_Optional_PK_InverseId], [l2#OneToOne_Required_PK].[OneToOne_Optional_SelfId] -FROM [Level3] AS [l2#OneToOne_Required_PK]", - // - @"SELECT [l2#OneToOne_Required_PK].[Id], [l2#OneToOne_Required_PK].[Level2_Optional_Id], [l2#OneToOne_Required_PK].[Level2_Required_Id], [l2#OneToOne_Required_PK].[Name], [l2#OneToOne_Required_PK].[OneToMany_Optional_InverseId], [l2#OneToOne_Required_PK].[OneToMany_Optional_Self_InverseId], [l2#OneToOne_Required_PK].[OneToMany_Required_InverseId], [l2#OneToOne_Required_PK].[OneToMany_Required_Self_InverseId], [l2#OneToOne_Required_PK].[OneToOne_Optional_PK_InverseId], [l2#OneToOne_Required_PK].[OneToOne_Optional_SelfId] -FROM [Level3] AS [l2#OneToOne_Required_PK]"); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.Project_collection_navigation_composed() : - AssertSql( - @"SELECT [l1].[Id] -FROM [Level1] AS [l1] -WHERE [l1].[Id] < 3", - // - @"@_outer_Id='1' - -SELECT [l2].[Id], [l2].[Date], [l2].[Level1_Optional_Id], [l2].[Level1_Required_Id], [l2].[Name], [l2].[OneToMany_Optional_InverseId], [l2].[OneToMany_Optional_Self_InverseId], [l2].[OneToMany_Required_InverseId], [l2].[OneToMany_Required_Self_InverseId], [l2].[OneToOne_Optional_PK_InverseId], [l2].[OneToOne_Optional_SelfId] -FROM [Level2] AS [l2] -WHERE (([l2].[Name] <> 'Foo') OR [l2].[Name] IS NULL) AND (@_outer_Id = [l2].[OneToMany_Optional_InverseId])", - // - @"@_outer_Id='2' - -SELECT [l2].[Id], [l2].[Date], [l2].[Level1_Optional_Id], [l2].[Level1_Required_Id], [l2].[Name], [l2].[OneToMany_Optional_InverseId], [l2].[OneToMany_Optional_Self_InverseId], [l2].[OneToMany_Required_InverseId], [l2].[OneToMany_Required_Self_InverseId], [l2].[OneToOne_Optional_PK_InverseId], [l2].[OneToOne_Optional_SelfId] -FROM [Level2] AS [l2] -WHERE (([l2].[Name] <> 'Foo') OR [l2].[Name] IS NULL) AND (@_outer_Id = [l2].[OneToMany_Optional_InverseId])"); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.Null_protection_logic_work_for_inner_key_access_of_manually_created_GroupJoin1() : - AssertSql( - @"SELECT [t].[Id], [t].[Date], [t].[Level1_Optional_Id], [t].[Level1_Required_Id], [t].[Name], [t].[OneToMany_Optional_InverseId], [t].[OneToMany_Optional_Self_InverseId], [t].[OneToMany_Required_InverseId], [t].[OneToMany_Required_Self_InverseId], [t].[OneToOne_Optional_PK_InverseId], [t].[OneToOne_Optional_SelfId] -FROM ( - SELECT [l1#OneToOne_Required_FK].[Id], [l1#OneToOne_Required_FK].[Date], [l1#OneToOne_Required_FK].[Level1_Optional_Id], [l1#OneToOne_Required_FK].[Level1_Required_Id], [l1#OneToOne_Required_FK].[Name], [l1#OneToOne_Required_FK].[OneToMany_Optional_InverseId], [l1#OneToOne_Required_FK].[OneToMany_Optional_Self_InverseId], [l1#OneToOne_Required_FK].[OneToMany_Required_InverseId], [l1#OneToOne_Required_FK].[OneToMany_Required_Self_InverseId], [l1#OneToOne_Required_FK].[OneToOne_Optional_PK_InverseId], [l1#OneToOne_Required_FK].[OneToOne_Optional_SelfId] - FROM ([Level1] AS [l10] - LEFT JOIN [Level2] AS [l1#OneToOne_Required_FK] ON [l10].[Id] = [l1#OneToOne_Required_FK].[Level1_Required_Id]) -) AS [t]", - // - @"SELECT [l1].[Id], [l1].[Date], [l1].[Name], [l1].[OneToMany_Optional_Self_InverseId], [l1].[OneToMany_Required_Self_InverseId], [l1].[OneToOne_Optional_SelfId] -FROM [Level1] AS [l1]"); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.Select_subquery_with_client_eval_and_navigation2() : - AssertSql( - @"SELECT 1 -FROM [Level2] AS [l2]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse1].[Name] -FROM ([Level2] AS [l1] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse1] ON [l1].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse1].[Id]) -ORDER BY [l1].[Id]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse1].[Name] -FROM ([Level2] AS [l1] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse1] ON [l1].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse1].[Id]) -ORDER BY [l1].[Id]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse1].[Name] -FROM ([Level2] AS [l1] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse1] ON [l1].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse1].[Id]) -ORDER BY [l1].[Id]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse1].[Name] -FROM ([Level2] AS [l1] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse1] ON [l1].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse1].[Id]) -ORDER BY [l1].[Id]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse1].[Name] -FROM ([Level2] AS [l1] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse1] ON [l1].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse1].[Id]) -ORDER BY [l1].[Id]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse1].[Name] -FROM ([Level2] AS [l1] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse1] ON [l1].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse1].[Id]) -ORDER BY [l1].[Id]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse1].[Name] -FROM ([Level2] AS [l1] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse1] ON [l1].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse1].[Id]) -ORDER BY [l1].[Id]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse1].[Name] -FROM ([Level2] AS [l1] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse1] ON [l1].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse1].[Id]) -ORDER BY [l1].[Id]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.SelectMany_with_navigation_and_Distinct() : - AssertSql( - @"SELECT [l].[Id], [l].[Date], [l].[Name], [l].[OneToMany_Optional_Self_InverseId], [l].[OneToMany_Required_Self_InverseId], [l].[OneToOne_Optional_SelfId], [l#OneToMany_Optional].[Id], [l#OneToMany_Optional].[Date], [l#OneToMany_Optional].[Level1_Optional_Id], [l#OneToMany_Optional].[Level1_Required_Id], [l#OneToMany_Optional].[Name], [l#OneToMany_Optional].[OneToMany_Optional_InverseId], [l#OneToMany_Optional].[OneToMany_Optional_Self_InverseId], [l#OneToMany_Optional].[OneToMany_Required_InverseId], [l#OneToMany_Optional].[OneToMany_Required_Self_InverseId], [l#OneToMany_Optional].[OneToOne_Optional_PK_InverseId], [l#OneToMany_Optional].[OneToOne_Optional_SelfId] -FROM ([Level1] AS [l] -LEFT JOIN [Level2] AS [l#OneToMany_Optional] ON [l].[Id] = [l#OneToMany_Optional].[OneToMany_Optional_InverseId]) -ORDER BY [l].[Id]", - // - @"SELECT [l1].[Id], [l1].[Date], [l1].[Name], [l1].[OneToMany_Optional_Self_InverseId], [l1].[OneToMany_Required_Self_InverseId], [l1].[OneToOne_Optional_SelfId], [l#OneToMany_Optional2].[Id], [l#OneToMany_Optional2].[Date], [l#OneToMany_Optional2].[Level1_Optional_Id], [l#OneToMany_Optional2].[Level1_Required_Id], [l#OneToMany_Optional2].[Name], [l#OneToMany_Optional2].[OneToMany_Optional_InverseId], [l#OneToMany_Optional2].[OneToMany_Optional_Self_InverseId], [l#OneToMany_Optional2].[OneToMany_Required_InverseId], [l#OneToMany_Optional2].[OneToMany_Required_Self_InverseId], [l#OneToMany_Optional2].[OneToOne_Optional_PK_InverseId], [l#OneToMany_Optional2].[OneToOne_Optional_SelfId] -FROM ([Level1] AS [l1] -LEFT JOIN [Level2] AS [l#OneToMany_Optional2] ON [l1].[Id] = [l#OneToMany_Optional2].[OneToMany_Optional_InverseId]) -ORDER BY [l1].[Id]", - // - @"SELECT [l#OneToMany_Optional0].[Id], [l#OneToMany_Optional0].[Date], [l#OneToMany_Optional0].[Level1_Optional_Id], [l#OneToMany_Optional0].[Level1_Required_Id], [l#OneToMany_Optional0].[Name], [l#OneToMany_Optional0].[OneToMany_Optional_InverseId], [l#OneToMany_Optional0].[OneToMany_Optional_Self_InverseId], [l#OneToMany_Optional0].[OneToMany_Required_InverseId], [l#OneToMany_Optional0].[OneToMany_Required_Self_InverseId], [l#OneToMany_Optional0].[OneToOne_Optional_PK_InverseId], [l#OneToMany_Optional0].[OneToOne_Optional_SelfId] -FROM [Level2] AS [l#OneToMany_Optional0]"); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.Select_subquery_with_client_eval_and_navigation1() : - AssertSql( - @"SELECT 1 -FROM [Level2] AS [l2]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse0].[Name] -FROM ([Level2] AS [l0] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse0] ON [l0].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse0].[Id]) -ORDER BY [l0].[Id]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse0].[Name] -FROM ([Level2] AS [l0] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse0] ON [l0].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse0].[Id]) -ORDER BY [l0].[Id]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse0].[Name] -FROM ([Level2] AS [l0] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse0] ON [l0].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse0].[Id]) -ORDER BY [l0].[Id]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse0].[Name] -FROM ([Level2] AS [l0] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse0] ON [l0].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse0].[Id]) -ORDER BY [l0].[Id]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse0].[Name] -FROM ([Level2] AS [l0] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse0] ON [l0].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse0].[Id]) -ORDER BY [l0].[Id]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse0].[Name] -FROM ([Level2] AS [l0] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse0] ON [l0].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse0].[Id]) -ORDER BY [l0].[Id]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse0].[Name] -FROM ([Level2] AS [l0] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse0] ON [l0].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse0].[Id]) -ORDER BY [l0].[Id]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse0].[Name] -FROM ([Level2] AS [l0] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse0] ON [l0].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse0].[Id]) -ORDER BY [l0].[Id]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.Select_subquery_with_client_eval_and_navigation2() : - AssertSql( - @"SELECT 1 -FROM [Level2] AS [l2]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse1].[Name] -FROM ([Level2] AS [l1] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse1] ON [l1].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse1].[Id]) -ORDER BY [l1].[Id]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse1].[Name] -FROM ([Level2] AS [l1] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse1] ON [l1].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse1].[Id]) -ORDER BY [l1].[Id]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse1].[Name] -FROM ([Level2] AS [l1] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse1] ON [l1].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse1].[Id]) -ORDER BY [l1].[Id]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse1].[Name] -FROM ([Level2] AS [l1] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse1] ON [l1].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse1].[Id]) -ORDER BY [l1].[Id]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse1].[Name] -FROM ([Level2] AS [l1] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse1] ON [l1].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse1].[Id]) -ORDER BY [l1].[Id]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse1].[Name] -FROM ([Level2] AS [l1] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse1] ON [l1].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse1].[Id]) -ORDER BY [l1].[Id]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse1].[Name] -FROM ([Level2] AS [l1] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse1] ON [l1].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse1].[Id]) -ORDER BY [l1].[Id]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse1].[Name] -FROM ([Level2] AS [l1] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse1] ON [l1].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse1].[Id]) -ORDER BY [l1].[Id]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.Select_subquery_with_client_eval_and_navigation1() : - AssertSql( - @"SELECT 1 -FROM [Level2] AS [l2]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse0].[Name] -FROM ([Level2] AS [l0] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse0] ON [l0].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse0].[Id]) -ORDER BY [l0].[Id]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse0].[Name] -FROM ([Level2] AS [l0] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse0] ON [l0].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse0].[Id]) -ORDER BY [l0].[Id]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse0].[Name] -FROM ([Level2] AS [l0] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse0] ON [l0].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse0].[Id]) -ORDER BY [l0].[Id]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse0].[Name] -FROM ([Level2] AS [l0] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse0] ON [l0].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse0].[Id]) -ORDER BY [l0].[Id]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse0].[Name] -FROM ([Level2] AS [l0] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse0] ON [l0].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse0].[Id]) -ORDER BY [l0].[Id]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse0].[Name] -FROM ([Level2] AS [l0] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse0] ON [l0].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse0].[Id]) -ORDER BY [l0].[Id]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse0].[Name] -FROM ([Level2] AS [l0] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse0] ON [l0].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse0].[Id]) -ORDER BY [l0].[Id]", - // - @"SELECT TOP 1 [l#OneToOne_Required_FK_Inverse0].[Name] -FROM ([Level2] AS [l0] -INNER JOIN [Level1] AS [l#OneToOne_Required_FK_Inverse0] ON [l0].[Level1_Required_Id] = [l#OneToOne_Required_FK_Inverse0].[Id]) -ORDER BY [l0].[Id]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_query_all_types_when_shared_column() : - AssertSql( - @"SELECT [d].[Id], [d].[Discriminator], [d].[CaffeineGrams], [d].[CokeCO2], [d].[SugarGrams], [d].[LiltCO2], [d].[HasMilk] -FROM [Drink] AS [d] -WHERE [d].[Discriminator] IN ('Tea', 'Lilt', 'Coke', 'Drink')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_kiwi_where_north_on_derived_property() : - AssertSql( - @"SELECT [x].[Species], [x].[CountryId], [x].[Discriminator], [x].[Name], [x].[EagleId], [x].[IsFlightless], [x].[FoundOn] -FROM [Animal] AS [x] -WHERE ([x].[Discriminator] = 'Kiwi') AND ([x].[FoundOn] = 0)"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_query_all_birds() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_include_prey() : - AssertSql( - @"SELECT TOP 2 [e].[Species], [e].[CountryId], [e].[Discriminator], [e].[Name], [e].[EagleId], [e].[IsFlightless], [e].[Group] -FROM [Animal] AS [e] -WHERE [e].[Discriminator] = 'Eagle' -ORDER BY [e].[Species]", - // - @"SELECT [e#Prey].[Species], [e#Prey].[CountryId], [e#Prey].[Discriminator], [e#Prey].[Name], [e#Prey].[EagleId], [e#Prey].[IsFlightless], [e#Prey].[Group], [e#Prey].[FoundOn] -FROM ([Animal] AS [e#Prey] -INNER JOIN ( - SELECT TOP 1 [e0].[Species] - FROM [Animal] AS [e0] - WHERE [e0].[Discriminator] = 'Eagle' - ORDER BY [e0].[Species] -) AS [t] ON [e#Prey].[EagleId] = [t].[Species]) -WHERE [e#Prey].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [t].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Discriminator_used_when_projection_over_derived_type() : - AssertSql( - @"SELECT [k].[FoundOn] -FROM [Animal] AS [k] -WHERE [k].[Discriminator] = 'Kiwi'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_animal() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_query_when_shared_column() : - AssertSql( - @"SELECT TOP 2 [d].[Id], [d].[Discriminator], [d].[CaffeineGrams], [d].[CokeCO2], [d].[SugarGrams] -FROM [Drink] AS [d] -WHERE [d].[Discriminator] = 'Coke'", - // - @"SELECT TOP 2 [d].[Id], [d].[Discriminator], [d].[LiltCO2], [d].[SugarGrams] -FROM [Drink] AS [d] -WHERE [d].[Discriminator] = 'Lilt'", - // - @"SELECT TOP 2 [d].[Id], [d].[Discriminator], [d].[CaffeineGrams], [d].[HasMilk] -FROM [Drink] AS [d] -WHERE [d].[Discriminator] = 'Tea'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_kiwi_where_south_on_derived_property() : - AssertSql( - @"SELECT [x].[Species], [x].[CountryId], [x].[Discriminator], [x].[Name], [x].[EagleId], [x].[IsFlightless], [x].[FoundOn] -FROM [Animal] AS [x] -WHERE ([x].[Discriminator] = 'Kiwi') AND ([x].[FoundOn] = 1)"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_is_kiwi_with_other_predicate() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND (([a].[Discriminator] = 'Kiwi') AND ([a].[CountryId] = 1))"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_bird_with_projection() : - AssertSql( - @"SELECT [b].[EagleId] -FROM [Animal] AS [b] -WHERE [b].[Discriminator] IN ('Kiwi', 'Eagle')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_query_just_roses() : - AssertSql( - @"SELECT TOP 2 [p].[Species], [p].[CountryId], [p].[Genus], [p].[Name], [p].[HasThorns] -FROM [Plant] AS [p] -WHERE [p].[Genus] = 0"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_bird_predicate() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[CountryId] = 1) -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_is_kiwi_in_projection() : - AssertSql( - @"SELECT IIf( - [a].[Discriminator] = 'Kiwi', - True, - False -) -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_query_just_kiwis() : - AssertSql( - @"SELECT TOP 2 [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] = 'Kiwi'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_include_animals() : - AssertSql( - @"SELECT [c].[Id], [c].[Name] -FROM [Country] AS [c] -ORDER BY [c].[Name], [c].[Id]", - // - @"SELECT [c#Animals].[Species], [c#Animals].[CountryId], [c#Animals].[Discriminator], [c#Animals].[Name], [c#Animals].[EagleId], [c#Animals].[IsFlightless], [c#Animals].[Group], [c#Animals].[FoundOn] -FROM ([Animal] AS [c#Animals] -INNER JOIN ( - SELECT [c0].[Id], [c0].[Name] - FROM [Country] AS [c0] -) AS [t] ON [c#Animals].[CountryId] = [t].[Id]) -WHERE [c#Animals].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [t].[Name], [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_filter_all_animals() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[Name] = 'Great spotted kiwi') -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_kiwi() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] = 'Kiwi'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_is_kiwi() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[Discriminator] = 'Kiwi')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_bird_first() : - AssertSql( - @"SELECT TOP 1 [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_query_all_animals() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_include_prey() : - AssertSql( - @"SELECT TOP 2 [e].[Species], [e].[CountryId], [e].[Discriminator], [e].[Name], [e].[EagleId], [e].[IsFlightless], [e].[Group] -FROM [Animal] AS [e] -WHERE [e].[Discriminator] = 'Eagle' -ORDER BY [e].[Species]", - // - @"SELECT [e#Prey].[Species], [e#Prey].[CountryId], [e#Prey].[Discriminator], [e#Prey].[Name], [e#Prey].[EagleId], [e#Prey].[IsFlightless], [e#Prey].[Group], [e#Prey].[FoundOn] -FROM ([Animal] AS [e#Prey] -INNER JOIN ( - SELECT TOP 1 [e0].[Species] - FROM [Animal] AS [e0] - WHERE [e0].[Discriminator] = 'Eagle' - ORDER BY [e0].[Species] -) AS [t] ON [e#Prey].[EagleId] = [t].[Species]) -WHERE [e#Prey].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [t].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_query_when_shared_column() : - AssertSql( - @"SELECT TOP 2 [d].[Id], [d].[Discriminator], [d].[CaffeineGrams], [d].[CokeCO2], [d].[SugarGrams] -FROM [Drink] AS [d] -WHERE [d].[Discriminator] = 'Coke'", - // - @"SELECT TOP 2 [d].[Id], [d].[Discriminator], [d].[LiltCO2], [d].[SugarGrams] -FROM [Drink] AS [d] -WHERE [d].[Discriminator] = 'Lilt'", - // - @"SELECT TOP 2 [d].[Id], [d].[Discriminator], [d].[CaffeineGrams], [d].[HasMilk] -FROM [Drink] AS [d] -WHERE [d].[Discriminator] = 'Tea'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_query_just_roses() : - AssertSql( - @"SELECT TOP 2 [p].[Species], [p].[CountryId], [p].[Genus], [p].[Name], [p].[HasThorns] -FROM [Plant] AS [p] -WHERE [p].[Genus] = 0"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_is_kiwi_in_projection() : - AssertSql( - @"SELECT IIf( - [a].[Discriminator] = 'Kiwi', - True, - False -) -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_query_just_kiwis() : - AssertSql( - @"SELECT TOP 2 [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] = 'Kiwi'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_include_animals() : - AssertSql( - @"SELECT [c].[Id], [c].[Name] -FROM [Country] AS [c] -ORDER BY [c].[Name], [c].[Id]", - // - @"SELECT [c#Animals].[Species], [c#Animals].[CountryId], [c#Animals].[Discriminator], [c#Animals].[Name], [c#Animals].[EagleId], [c#Animals].[IsFlightless], [c#Animals].[Group], [c#Animals].[FoundOn] -FROM ([Animal] AS [c#Animals] -INNER JOIN ( - SELECT [c0].[Id], [c0].[Name] - FROM [Country] AS [c0] -) AS [t] ON [c#Animals].[CountryId] = [t].[Id]) -WHERE [c#Animals].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [t].[Name], [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_use_of_type_bird_first() : - AssertSql( - @"SELECT TOP 1 [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_include_animals() : - AssertSql( - @"SELECT [c].[Id], [c].[Name] -FROM [Country] AS [c] -ORDER BY [c].[Name], [c].[Id]", - // - @"SELECT [c#Animals].[Species], [c#Animals].[CountryId], [c#Animals].[Discriminator], [c#Animals].[Name], [c#Animals].[EagleId], [c#Animals].[IsFlightless], [c#Animals].[Group], [c#Animals].[FoundOn] -FROM ([Animal] AS [c#Animals] -INNER JOIN ( - SELECT [c0].[Id], [c0].[Name] - FROM [Country] AS [c0] -) AS [t] ON [c#Animals].[CountryId] = [t].[Id]) -WHERE [c#Animals].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [t].[Name], [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_include_prey() : - AssertSql( - @"SELECT TOP 2 [e].[Species], [e].[CountryId], [e].[Discriminator], [e].[Name], [e].[EagleId], [e].[IsFlightless], [e].[Group] -FROM [Animal] AS [e] -WHERE [e].[Discriminator] = 'Eagle' -ORDER BY [e].[Species]", - // - @"SELECT [e#Prey].[Species], [e#Prey].[CountryId], [e#Prey].[Discriminator], [e#Prey].[Name], [e#Prey].[EagleId], [e#Prey].[IsFlightless], [e#Prey].[Group], [e#Prey].[FoundOn] -FROM ([Animal] AS [e#Prey] -INNER JOIN ( - SELECT TOP 1 [e0].[Species] - FROM [Animal] AS [e0] - WHERE [e0].[Discriminator] = 'Eagle' - ORDER BY [e0].[Species] -) AS [t] ON [e#Prey].[EagleId] = [t].[Species]) -WHERE [e#Prey].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [t].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceJetTest.Can_include_animals() : - AssertSql( - @"SELECT [c].[Id], [c].[Name] -FROM [Country] AS [c] -ORDER BY [c].[Name], [c].[Id]", - // - @"SELECT [c#Animals].[Species], [c#Animals].[CountryId], [c#Animals].[Discriminator], [c#Animals].[Name], [c#Animals].[EagleId], [c#Animals].[IsFlightless], [c#Animals].[Group], [c#Animals].[FoundOn] -FROM ([Animal] AS [c#Animals] -INNER JOIN ( - SELECT [c0].[Id], [c0].[Name] - FROM [Country] AS [c0] -) AS [t] ON [c#Animals].[CountryId] = [t].[Id]) -WHERE [c#Animals].[Discriminator] IN ('Kiwi', 'Eagle') -ORDER BY [t].[Name], [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_without_inheritance_with_filter_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[Name], [e].[ParentId], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([ReferenceOnBase] AS [e] -LEFT JOIN ( - SELECT [e#Parent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#Parent] - WHERE [e#Parent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e].[ParentId] = [t].[Id]) -WHERE ([e].[Name] <> 'Bar') OR [e].[Name] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Nested_include_with_inheritance_reference_reference_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[ParentCollectionId], [e].[ParentReferenceId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name], [t0].[Id], [t0].[Discriminator], [t0].[Name], [t0].[BaseId] -FROM (([NestedReferenceBase] AS [e] -LEFT JOIN ( - SELECT [e#ParentReference].* - FROM [BaseReferenceOnBase] AS [e#ParentReference] - WHERE [e#ParentReference].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') -) AS [t] ON [e].[ParentReferenceId] = [t].[Id]) -LEFT JOIN ( - SELECT [e#ParentReference#BaseParent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#ParentReference#BaseParent] - WHERE [e#ParentReference#BaseParent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t0] ON [t].[BaseParentId] = [t0].[Id]) -WHERE [e].[Discriminator] IN ('NestedReferenceDerived', 'NestedReferenceBase')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_with_filter1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#BaseReferenceOnBase].* - FROM [BaseReferenceOnBase] AS [e#BaseReferenceOnBase] - WHERE [e#BaseReferenceOnBase].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') -) AS [t] ON [e].[Id] = [t].[BaseParentId]) -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') AND (([e].[Name] <> 'Bar') OR [e].[Name] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_without_inheritance_on_derived1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [e#ReferenceOnBase].[Id], [e#ReferenceOnBase].[Name], [e#ReferenceOnBase].[ParentId] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN [ReferenceOnBase] AS [e#ReferenceOnBase] ON [e].[Id] = [e#ReferenceOnBase].[ParentId]) -WHERE [e].[Discriminator] = 'DerivedInheritanceRelationshipEntity'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_without_inheritance() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId] -FROM [BaseInheritanceRelationshipEntity] AS [e] -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -ORDER BY [e].[Id]", - // - @"SELECT [e#CollectionOnBase].[Id], [e#CollectionOnBase].[Name], [e#CollectionOnBase].[ParentId] -FROM ([CollectionOnBase] AS [e#CollectionOnBase] -INNER JOIN ( - SELECT [e0].[Id] - FROM [BaseInheritanceRelationshipEntity] AS [e0] - WHERE [e0].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e#CollectionOnBase].[ParentId] = [t].[Id]) -ORDER BY [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_on_derived_with_filter2() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name], [t].[DerivedInheritanceRelationshipEntityId] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#BaseReferenceOnDerived].* - FROM [BaseReferenceOnDerived] AS [e#BaseReferenceOnDerived] - WHERE [e#BaseReferenceOnDerived].[Discriminator] IN ('DerivedReferenceOnDerived', 'BaseReferenceOnDerived') -) AS [t] ON [e].[Id] = [t].[BaseParentId]) -WHERE ([e].[Discriminator] = 'DerivedInheritanceRelationshipEntity') AND (([e].[Name] <> 'Bar') OR [e].[Name] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Nested_include_with_inheritance_reference_collection1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#BaseReferenceOnBase].* - FROM [BaseReferenceOnBase] AS [e#BaseReferenceOnBase] - WHERE [e#BaseReferenceOnBase].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') -) AS [t] ON [e].[Id] = [t].[BaseParentId]) -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -ORDER BY [t].[Id]", - // - @"SELECT [e#BaseReferenceOnBase#NestedCollection].[Id], [e#BaseReferenceOnBase#NestedCollection].[Discriminator], [e#BaseReferenceOnBase#NestedCollection].[Name], [e#BaseReferenceOnBase#NestedCollection].[ParentCollectionId], [e#BaseReferenceOnBase#NestedCollection].[ParentReferenceId] -FROM ([NestedCollectionBase] AS [e#BaseReferenceOnBase#NestedCollection] -INNER JOIN ( - SELECT DISTINCT [t0].[Id] - FROM ([BaseInheritanceRelationshipEntity] AS [e0] - LEFT JOIN ( - SELECT [e#BaseReferenceOnBase0].* - FROM [BaseReferenceOnBase] AS [e#BaseReferenceOnBase0] - WHERE [e#BaseReferenceOnBase0].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') - ) AS [t0] ON [e0].[Id] = [t0].[BaseParentId]) - WHERE [e0].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t1] ON [e#BaseReferenceOnBase#NestedCollection].[ParentReferenceId] = [t1].[Id]) -WHERE [e#BaseReferenceOnBase#NestedCollection].[Discriminator] IN ('NestedCollectionDerived', 'NestedCollectionBase') -ORDER BY [t1].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_without_inheritance_with_filter() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [e#ReferenceOnBase].[Id], [e#ReferenceOnBase].[Name], [e#ReferenceOnBase].[ParentId] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN [ReferenceOnBase] AS [e#ReferenceOnBase] ON [e].[Id] = [e#ReferenceOnBase].[ParentId]) -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') AND (([e].[Name] <> 'Bar') OR [e].[Name] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Nested_include_with_inheritance_reference_collection3() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#BaseReferenceOnBase].* - FROM [BaseReferenceOnBase] AS [e#BaseReferenceOnBase] - WHERE [e#BaseReferenceOnBase].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') -) AS [t] ON [e].[Id] = [t].[BaseParentId]) -WHERE [e].[Discriminator] = 'DerivedInheritanceRelationshipEntity' -ORDER BY [t].[Id]", - // - @"SELECT [e#BaseReferenceOnBase#NestedCollection].[Id], [e#BaseReferenceOnBase#NestedCollection].[Discriminator], [e#BaseReferenceOnBase#NestedCollection].[Name], [e#BaseReferenceOnBase#NestedCollection].[ParentCollectionId], [e#BaseReferenceOnBase#NestedCollection].[ParentReferenceId] -FROM ([NestedCollectionBase] AS [e#BaseReferenceOnBase#NestedCollection] -INNER JOIN ( - SELECT DISTINCT [t0].[Id] - FROM ([BaseInheritanceRelationshipEntity] AS [e0] - LEFT JOIN ( - SELECT [e#BaseReferenceOnBase0].* - FROM [BaseReferenceOnBase] AS [e#BaseReferenceOnBase0] - WHERE [e#BaseReferenceOnBase0].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') - ) AS [t0] ON [e0].[Id] = [t0].[BaseParentId]) - WHERE [e0].[Discriminator] = 'DerivedInheritanceRelationshipEntity' -) AS [t1] ON [e#BaseReferenceOnBase#NestedCollection].[ParentReferenceId] = [t1].[Id]) -WHERE [e#BaseReferenceOnBase#NestedCollection].[Discriminator] IN ('NestedCollectionDerived', 'NestedCollectionBase') -ORDER BY [t1].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_without_inheritance_on_derived_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[Name], [e].[ParentId], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([ReferenceOnDerived] AS [e] -LEFT JOIN ( - SELECT [e#Parent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#Parent] - WHERE [e#Parent].[Discriminator] = 'DerivedInheritanceRelationshipEntity' -) AS [t] ON [e].[ParentId] = [t].[Id])"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_without_inheritance() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [e#ReferenceOnBase].[Id], [e#ReferenceOnBase].[Name], [e#ReferenceOnBase].[ParentId] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN [ReferenceOnBase] AS [e#ReferenceOnBase] ON [e].[Id] = [e#ReferenceOnBase].[ParentId]) -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_without_inheritance_with_filter() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId] -FROM [BaseInheritanceRelationshipEntity] AS [e] -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') AND (([e].[Name] <> 'Bar') OR [e].[Name] IS NULL) -ORDER BY [e].[Id]", - // - @"SELECT [e#CollectionOnBase].[Id], [e#CollectionOnBase].[Name], [e#CollectionOnBase].[ParentId] -FROM ([CollectionOnBase] AS [e#CollectionOnBase] -INNER JOIN ( - SELECT [e0].[Id] - FROM [BaseInheritanceRelationshipEntity] AS [e0] - WHERE [e0].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') AND (([e0].[Name] <> 'Bar') OR [e0].[Name] IS NULL) -) AS [t] ON [e#CollectionOnBase].[ParentId] = [t].[Id]) -ORDER BY [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_with_inheritance_on_derived1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId] -FROM [BaseInheritanceRelationshipEntity] AS [e] -WHERE [e].[Discriminator] = 'DerivedInheritanceRelationshipEntity' -ORDER BY [e].[Id]", - // - @"SELECT [e#BaseCollectionOnBase].[Id], [e#BaseCollectionOnBase].[BaseParentId], [e#BaseCollectionOnBase].[Discriminator], [e#BaseCollectionOnBase].[Name], [e#BaseCollectionOnBase].[DerivedProperty] -FROM ([BaseCollectionOnBase] AS [e#BaseCollectionOnBase] -INNER JOIN ( - SELECT [e0].[Id] - FROM [BaseInheritanceRelationshipEntity] AS [e0] - WHERE [e0].[Discriminator] = 'DerivedInheritanceRelationshipEntity' -) AS [t] ON [e#BaseCollectionOnBase].[BaseParentId] = [t].[Id]) -WHERE [e#BaseCollectionOnBase].[Discriminator] IN ('DerivedCollectionOnBase', 'BaseCollectionOnBase') -ORDER BY [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_on_derived1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#BaseReferenceOnBase].* - FROM [BaseReferenceOnBase] AS [e#BaseReferenceOnBase] - WHERE [e#BaseReferenceOnBase].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') -) AS [t] ON [e].[Id] = [t].[BaseParentId]) -WHERE [e].[Discriminator] = 'DerivedInheritanceRelationshipEntity'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_without_inheritance_on_derived2() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [e#ReferenceOnDerived].[Id], [e#ReferenceOnDerived].[Name], [e#ReferenceOnDerived].[ParentId] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN [ReferenceOnDerived] AS [e#ReferenceOnDerived] ON [e].[Id] = [e#ReferenceOnDerived].[ParentId]) -WHERE [e].[Discriminator] = 'DerivedInheritanceRelationshipEntity'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_on_derived2() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name], [t].[DerivedInheritanceRelationshipEntityId] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#BaseReferenceOnDerived].* - FROM [BaseReferenceOnDerived] AS [e#BaseReferenceOnDerived] - WHERE [e#BaseReferenceOnDerived].[Discriminator] IN ('DerivedReferenceOnDerived', 'BaseReferenceOnDerived') -) AS [t] ON [e].[Id] = [t].[BaseParentId]) -WHERE [e].[Discriminator] = 'DerivedInheritanceRelationshipEntity'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Nested_include_with_inheritance_reference_reference3() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name], [t0].[Id], [t0].[Discriminator], [t0].[Name], [t0].[ParentCollectionId], [t0].[ParentReferenceId] -FROM (([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#BaseReferenceOnBase].* - FROM [BaseReferenceOnBase] AS [e#BaseReferenceOnBase] - WHERE [e#BaseReferenceOnBase].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') -) AS [t] ON [e].[Id] = [t].[BaseParentId]) -LEFT JOIN ( - SELECT [e#BaseReferenceOnBase#NestedReference].* - FROM [NestedReferenceBase] AS [e#BaseReferenceOnBase#NestedReference] - WHERE [e#BaseReferenceOnBase#NestedReference].[Discriminator] IN ('NestedReferenceDerived', 'NestedReferenceBase') -) AS [t0] ON [t].[Id] = [t0].[ParentReferenceId]) -WHERE [e].[Discriminator] = 'DerivedInheritanceRelationshipEntity'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_self_refence_with_inheritence_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#BaseSelfRerefenceOnDerived].* - FROM [BaseInheritanceRelationshipEntity] AS [e#BaseSelfRerefenceOnDerived] - WHERE [e#BaseSelfRerefenceOnDerived].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e].[BaseId] = [t].[Id]) -WHERE [e].[Discriminator] = 'DerivedInheritanceRelationshipEntity'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#BaseReferenceOnBase].* - FROM [BaseReferenceOnBase] AS [e#BaseReferenceOnBase] - WHERE [e#BaseReferenceOnBase].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') -) AS [t] ON [e].[Id] = [t].[BaseParentId]) -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_with_inheritance_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[BaseParentId], [e].[Discriminator], [e].[Name], [e].[DerivedProperty], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([BaseCollectionOnBase] AS [e] -LEFT JOIN ( - SELECT [e#BaseParent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#BaseParent] - WHERE [e#BaseParent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e].[BaseParentId] = [t].[Id]) -WHERE [e].[Discriminator] IN ('DerivedCollectionOnBase', 'BaseCollectionOnBase')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_without_inheritance_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[Name], [e].[ParentId], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([CollectionOnBase] AS [e] -LEFT JOIN ( - SELECT [e#Parent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#Parent] - WHERE [e#Parent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e].[ParentId] = [t].[Id])"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_on_derived_with_filter4() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name], [t].[DerivedInheritanceRelationshipEntityId] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#DerivedReferenceOnDerived].* - FROM [BaseReferenceOnDerived] AS [e#DerivedReferenceOnDerived] - WHERE [e#DerivedReferenceOnDerived].[Discriminator] = 'DerivedReferenceOnDerived' -) AS [t] ON [e].[Id] = [t].[DerivedInheritanceRelationshipEntityId]) -WHERE ([e].[Discriminator] = 'DerivedInheritanceRelationshipEntity') AND (([e].[Name] <> 'Bar') OR [e].[Name] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Nested_include_with_inheritance_collection_collection_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[ParentCollectionId], [e].[ParentReferenceId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name], [t].[DerivedProperty], [t0].[Id], [t0].[Discriminator], [t0].[Name], [t0].[BaseId] -FROM (([NestedCollectionBase] AS [e] -LEFT JOIN ( - SELECT [e#ParentCollection].* - FROM [BaseCollectionOnBase] AS [e#ParentCollection] - WHERE [e#ParentCollection].[Discriminator] IN ('DerivedCollectionOnBase', 'BaseCollectionOnBase') -) AS [t] ON [e].[ParentCollectionId] = [t].[Id]) -LEFT JOIN ( - SELECT [e#ParentCollection#BaseParent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#ParentCollection#BaseParent] - WHERE [e#ParentCollection#BaseParent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t0] ON [t].[BaseParentId] = [t0].[Id]) -WHERE [e].[Discriminator] IN ('NestedCollectionDerived', 'NestedCollectionBase')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_without_inheritance_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[Name], [e].[ParentId], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([ReferenceOnBase] AS [e] -LEFT JOIN ( - SELECT [e#Parent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#Parent] - WHERE [e#Parent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e].[ParentId] = [t].[Id])"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_with_filter_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[BaseParentId], [e].[Discriminator], [e].[Name], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([BaseReferenceOnBase] AS [e] -LEFT JOIN ( - SELECT [e#BaseParent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#BaseParent] - WHERE [e#BaseParent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e].[BaseParentId] = [t].[Id]) -WHERE [e].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') AND (([e].[Name] <> 'Bar') OR [e].[Name] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_on_derived4() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name], [t].[DerivedInheritanceRelationshipEntityId] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#DerivedReferenceOnDerived].* - FROM [BaseReferenceOnDerived] AS [e#DerivedReferenceOnDerived] - WHERE [e#DerivedReferenceOnDerived].[Discriminator] = 'DerivedReferenceOnDerived' -) AS [t] ON [e].[Id] = [t].[DerivedInheritanceRelationshipEntityId]) -WHERE [e].[Discriminator] = 'DerivedInheritanceRelationshipEntity'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_on_derived_with_filter_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[BaseParentId], [e].[Discriminator], [e].[Name], [e].[DerivedInheritanceRelationshipEntityId], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([BaseReferenceOnDerived] AS [e] -LEFT JOIN ( - SELECT [e#BaseParent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#BaseParent] - WHERE [e#BaseParent].[Discriminator] = 'DerivedInheritanceRelationshipEntity' -) AS [t] ON [e].[BaseParentId] = [t].[Id]) -WHERE [e].[Discriminator] IN ('DerivedReferenceOnDerived', 'BaseReferenceOnDerived') AND (([e].[Name] <> 'Bar') OR [e].[Name] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_with_inheritance_on_derived2() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId] -FROM [BaseInheritanceRelationshipEntity] AS [e] -WHERE [e].[Discriminator] = 'DerivedInheritanceRelationshipEntity' -ORDER BY [e].[Id]", - // - @"SELECT [e#BaseCollectionOnDerived].[Id], [e#BaseCollectionOnDerived].[Discriminator], [e#BaseCollectionOnDerived].[Name], [e#BaseCollectionOnDerived].[ParentId], [e#BaseCollectionOnDerived].[DerivedInheritanceRelationshipEntityId] -FROM ([BaseCollectionOnDerived] AS [e#BaseCollectionOnDerived] -INNER JOIN ( - SELECT [e0].[Id] - FROM [BaseInheritanceRelationshipEntity] AS [e0] - WHERE [e0].[Discriminator] = 'DerivedInheritanceRelationshipEntity' -) AS [t] ON [e#BaseCollectionOnDerived].[ParentId] = [t].[Id]) -WHERE [e#BaseCollectionOnDerived].[Discriminator] IN ('DerivedCollectionOnDerived', 'BaseCollectionOnDerived') -ORDER BY [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_with_inheritance_with_filter1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId] -FROM [BaseInheritanceRelationshipEntity] AS [e] -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') AND (([e].[Name] <> 'Bar') OR [e].[Name] IS NULL) -ORDER BY [e].[Id]", - // - @"SELECT [e#BaseCollectionOnBase].[Id], [e#BaseCollectionOnBase].[BaseParentId], [e#BaseCollectionOnBase].[Discriminator], [e#BaseCollectionOnBase].[Name], [e#BaseCollectionOnBase].[DerivedProperty] -FROM ([BaseCollectionOnBase] AS [e#BaseCollectionOnBase] -INNER JOIN ( - SELECT [e0].[Id] - FROM [BaseInheritanceRelationshipEntity] AS [e0] - WHERE [e0].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') AND (([e0].[Name] <> 'Bar') OR [e0].[Name] IS NULL) -) AS [t] ON [e#BaseCollectionOnBase].[BaseParentId] = [t].[Id]) -WHERE [e#BaseCollectionOnBase].[Discriminator] IN ('DerivedCollectionOnBase', 'BaseCollectionOnBase') -ORDER BY [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_with_inheritance_with_filter_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[BaseParentId], [e].[Discriminator], [e].[Name], [e].[DerivedProperty], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([BaseCollectionOnBase] AS [e] -LEFT JOIN ( - SELECT [e#BaseParent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#BaseParent] - WHERE [e#BaseParent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e].[BaseParentId] = [t].[Id]) -WHERE [e].[Discriminator] IN ('DerivedCollectionOnBase', 'BaseCollectionOnBase') AND (([e].[Name] <> 'Bar') OR [e].[Name] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Nested_include_collection_reference_on_non_entity_base() : - AssertSql( - @"SELECT [e].[Id], [e].[Name] -FROM [ReferencedEntity] AS [e] -ORDER BY [e].[Id]", - // - @"SELECT [e#Principals].[Id], [e#Principals].[Name], [e#Principals].[ReferenceId], [e#Principals].[ReferencedEntityId], [p#Reference].[Id], [p#Reference].[Name] -FROM (([PrincipalEntity] AS [e#Principals] -LEFT JOIN [ReferencedEntity] AS [p#Reference] ON [e#Principals].[ReferenceId] = [p#Reference].[Id]) -INNER JOIN ( - SELECT [e0].[Id] - FROM [ReferencedEntity] AS [e0] -) AS [t] ON [e#Principals].[ReferencedEntityId] = [t].[Id]) -ORDER BY [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_on_derived_with_filter1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#BaseReferenceOnBase].* - FROM [BaseReferenceOnBase] AS [e#BaseReferenceOnBase] - WHERE [e#BaseReferenceOnBase].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') -) AS [t] ON [e].[Id] = [t].[BaseParentId]) -WHERE ([e].[Discriminator] = 'DerivedInheritanceRelationshipEntity') AND (([e].[Name] <> 'Bar') OR [e].[Name] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_with_inheritance_on_derived_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[ParentId], [e].[DerivedInheritanceRelationshipEntityId], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([BaseCollectionOnDerived] AS [e] -LEFT JOIN ( - SELECT [e#BaseParent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#BaseParent] - WHERE [e#BaseParent].[Discriminator] = 'DerivedInheritanceRelationshipEntity' -) AS [t] ON [e].[ParentId] = [t].[Id]) -WHERE [e].[Discriminator] IN ('DerivedCollectionOnDerived', 'BaseCollectionOnDerived')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_self_refence_with_inheritence() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#DerivedSefReferenceOnBase].* - FROM [BaseInheritanceRelationshipEntity] AS [e#DerivedSefReferenceOnBase] - WHERE [e#DerivedSefReferenceOnBase].[Discriminator] = 'DerivedInheritanceRelationshipEntity' -) AS [t] ON [e].[Id] = [t].[BaseId]) -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Nested_include_with_inheritance_reference_collection_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[ParentCollectionId], [e].[ParentReferenceId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name], [t0].[Id], [t0].[Discriminator], [t0].[Name], [t0].[BaseId] -FROM (([NestedCollectionBase] AS [e] -LEFT JOIN ( - SELECT [e#ParentReference].* - FROM [BaseReferenceOnBase] AS [e#ParentReference] - WHERE [e#ParentReference].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') -) AS [t] ON [e].[ParentReferenceId] = [t].[Id]) -LEFT JOIN ( - SELECT [e#ParentReference#BaseParent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#ParentReference#BaseParent] - WHERE [e#ParentReference#BaseParent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t0] ON [t].[BaseParentId] = [t0].[Id]) -WHERE [e].[Discriminator] IN ('NestedCollectionDerived', 'NestedCollectionBase')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Nested_include_with_inheritance_collection_reference_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[ParentCollectionId], [e].[ParentReferenceId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name], [t].[DerivedProperty], [t0].[Id], [t0].[Discriminator], [t0].[Name], [t0].[BaseId] -FROM (([NestedReferenceBase] AS [e] -LEFT JOIN ( - SELECT [e#ParentCollection].* - FROM [BaseCollectionOnBase] AS [e#ParentCollection] - WHERE [e#ParentCollection].[Discriminator] IN ('DerivedCollectionOnBase', 'BaseCollectionOnBase') -) AS [t] ON [e].[ParentCollectionId] = [t].[Id]) -LEFT JOIN ( - SELECT [e#ParentCollection#BaseParent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#ParentCollection#BaseParent] - WHERE [e#ParentCollection#BaseParent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t0] ON [t].[BaseParentId] = [t0].[Id]) -WHERE [e].[Discriminator] IN ('NestedReferenceDerived', 'NestedReferenceBase')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_with_inheritance1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId] -FROM [BaseInheritanceRelationshipEntity] AS [e] -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -ORDER BY [e].[Id]", - // - @"SELECT [e#BaseCollectionOnBase].[Id], [e#BaseCollectionOnBase].[BaseParentId], [e#BaseCollectionOnBase].[Discriminator], [e#BaseCollectionOnBase].[Name], [e#BaseCollectionOnBase].[DerivedProperty] -FROM ([BaseCollectionOnBase] AS [e#BaseCollectionOnBase] -INNER JOIN ( - SELECT [e0].[Id] - FROM [BaseInheritanceRelationshipEntity] AS [e0] - WHERE [e0].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e#BaseCollectionOnBase].[BaseParentId] = [t].[Id]) -WHERE [e#BaseCollectionOnBase].[Discriminator] IN ('DerivedCollectionOnBase', 'BaseCollectionOnBase') -ORDER BY [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_on_derived_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[BaseParentId], [e].[Discriminator], [e].[Name], [e].[DerivedInheritanceRelationshipEntityId], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([BaseReferenceOnDerived] AS [e] -LEFT JOIN ( - SELECT [e#BaseParent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#BaseParent] - WHERE [e#BaseParent].[Discriminator] = 'DerivedInheritanceRelationshipEntity' -) AS [t] ON [e].[BaseParentId] = [t].[Id]) -WHERE [e].[Discriminator] IN ('DerivedReferenceOnDerived', 'BaseReferenceOnDerived')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[BaseParentId], [e].[Discriminator], [e].[Name], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([BaseReferenceOnBase] AS [e] -LEFT JOIN ( - SELECT [e#BaseParent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#BaseParent] - WHERE [e#BaseParent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e].[BaseParentId] = [t].[Id]) -WHERE [e].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Nested_include_with_inheritance_reference_reference1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name], [t0].[Id], [t0].[Discriminator], [t0].[Name], [t0].[ParentCollectionId], [t0].[ParentReferenceId] -FROM (([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#BaseReferenceOnBase].* - FROM [BaseReferenceOnBase] AS [e#BaseReferenceOnBase] - WHERE [e#BaseReferenceOnBase].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') -) AS [t] ON [e].[Id] = [t].[BaseParentId]) -LEFT JOIN ( - SELECT [e#BaseReferenceOnBase#NestedReference].* - FROM [NestedReferenceBase] AS [e#BaseReferenceOnBase#NestedReference] - WHERE [e#BaseReferenceOnBase#NestedReference].[Discriminator] IN ('NestedReferenceDerived', 'NestedReferenceBase') -) AS [t0] ON [t].[Id] = [t0].[ParentReferenceId]) -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_without_inheritance_with_filter_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[Name], [e].[ParentId], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([CollectionOnBase] AS [e] -LEFT JOIN ( - SELECT [e#Parent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#Parent] - WHERE [e#Parent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e].[ParentId] = [t].[Id]) -WHERE ([e].[Name] <> 'Bar') OR [e].[Name] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Nested_include_with_inheritance_collection_reference1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId] -FROM [BaseInheritanceRelationshipEntity] AS [e] -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -ORDER BY [e].[Id]", - // - @"SELECT [e#BaseCollectionOnBase].[Id], [e#BaseCollectionOnBase].[BaseParentId], [e#BaseCollectionOnBase].[Discriminator], [e#BaseCollectionOnBase].[Name], [e#BaseCollectionOnBase].[DerivedProperty], [t].[Id], [t].[Discriminator], [t].[Name], [t].[ParentCollectionId], [t].[ParentReferenceId] -FROM (([BaseCollectionOnBase] AS [e#BaseCollectionOnBase] -LEFT JOIN ( - SELECT [b#NestedReference].* - FROM [NestedReferenceBase] AS [b#NestedReference] - WHERE [b#NestedReference].[Discriminator] IN ('NestedReferenceDerived', 'NestedReferenceBase') -) AS [t] ON [e#BaseCollectionOnBase].[Id] = [t].[ParentCollectionId]) -INNER JOIN ( - SELECT [e0].[Id] - FROM [BaseInheritanceRelationshipEntity] AS [e0] - WHERE [e0].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t0] ON [e#BaseCollectionOnBase].[BaseParentId] = [t0].[Id]) -WHERE [e#BaseCollectionOnBase].[Discriminator] IN ('DerivedCollectionOnBase', 'BaseCollectionOnBase') -ORDER BY [t0].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Nested_include_with_inheritance_collection_collection1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId] -FROM [BaseInheritanceRelationshipEntity] AS [e] -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -ORDER BY [e].[Id]", - // - @"SELECT [e#BaseCollectionOnBase].[Id], [e#BaseCollectionOnBase].[BaseParentId], [e#BaseCollectionOnBase].[Discriminator], [e#BaseCollectionOnBase].[Name], [e#BaseCollectionOnBase].[DerivedProperty] -FROM ([BaseCollectionOnBase] AS [e#BaseCollectionOnBase] -INNER JOIN ( - SELECT [e0].[Id] - FROM [BaseInheritanceRelationshipEntity] AS [e0] - WHERE [e0].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e#BaseCollectionOnBase].[BaseParentId] = [t].[Id]) -WHERE [e#BaseCollectionOnBase].[Discriminator] IN ('DerivedCollectionOnBase', 'BaseCollectionOnBase') -ORDER BY [t].[Id], [e#BaseCollectionOnBase].[Id]", - // - @"SELECT [e#BaseCollectionOnBase#NestedCollection].[Id], [e#BaseCollectionOnBase#NestedCollection].[Discriminator], [e#BaseCollectionOnBase#NestedCollection].[Name], [e#BaseCollectionOnBase#NestedCollection].[ParentCollectionId], [e#BaseCollectionOnBase#NestedCollection].[ParentReferenceId] -FROM ([NestedCollectionBase] AS [e#BaseCollectionOnBase#NestedCollection] -INNER JOIN ( - SELECT DISTINCT [e#BaseCollectionOnBase0].[Id], [t0].[Id] AS [Id0] - FROM ([BaseCollectionOnBase] AS [e#BaseCollectionOnBase0] - INNER JOIN ( - SELECT [e1].[Id] - FROM [BaseInheritanceRelationshipEntity] AS [e1] - WHERE [e1].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') - ) AS [t0] ON [e#BaseCollectionOnBase0].[BaseParentId] = [t0].[Id]) - WHERE [e#BaseCollectionOnBase0].[Discriminator] IN ('DerivedCollectionOnBase', 'BaseCollectionOnBase') -) AS [t1] ON [e#BaseCollectionOnBase#NestedCollection].[ParentCollectionId] = [t1].[Id]) -WHERE [e#BaseCollectionOnBase#NestedCollection].[Discriminator] IN ('NestedCollectionDerived', 'NestedCollectionBase') -ORDER BY [t1].[Id0], [t1].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_without_inheritance_with_filter_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[Name], [e].[ParentId], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([ReferenceOnBase] AS [e] -LEFT JOIN ( - SELECT [e#Parent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#Parent] - WHERE [e#Parent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e].[ParentId] = [t].[Id]) -WHERE ([e].[Name] <> 'Bar') OR [e].[Name] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Nested_include_with_inheritance_reference_reference_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[ParentCollectionId], [e].[ParentReferenceId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name], [t0].[Id], [t0].[Discriminator], [t0].[Name], [t0].[BaseId] -FROM (([NestedReferenceBase] AS [e] -LEFT JOIN ( - SELECT [e#ParentReference].* - FROM [BaseReferenceOnBase] AS [e#ParentReference] - WHERE [e#ParentReference].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') -) AS [t] ON [e].[ParentReferenceId] = [t].[Id]) -LEFT JOIN ( - SELECT [e#ParentReference#BaseParent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#ParentReference#BaseParent] - WHERE [e#ParentReference#BaseParent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t0] ON [t].[BaseParentId] = [t0].[Id]) -WHERE [e].[Discriminator] IN ('NestedReferenceDerived', 'NestedReferenceBase')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_with_filter1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#BaseReferenceOnBase].* - FROM [BaseReferenceOnBase] AS [e#BaseReferenceOnBase] - WHERE [e#BaseReferenceOnBase].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') -) AS [t] ON [e].[Id] = [t].[BaseParentId]) -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') AND (([e].[Name] <> 'Bar') OR [e].[Name] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_without_inheritance_on_derived1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [e#ReferenceOnBase].[Id], [e#ReferenceOnBase].[Name], [e#ReferenceOnBase].[ParentId] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN [ReferenceOnBase] AS [e#ReferenceOnBase] ON [e].[Id] = [e#ReferenceOnBase].[ParentId]) -WHERE [e].[Discriminator] = 'DerivedInheritanceRelationshipEntity'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_without_inheritance() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId] -FROM [BaseInheritanceRelationshipEntity] AS [e] -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -ORDER BY [e].[Id]", - // - @"SELECT [e#CollectionOnBase].[Id], [e#CollectionOnBase].[Name], [e#CollectionOnBase].[ParentId] -FROM ([CollectionOnBase] AS [e#CollectionOnBase] -INNER JOIN ( - SELECT [e0].[Id] - FROM [BaseInheritanceRelationshipEntity] AS [e0] - WHERE [e0].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e#CollectionOnBase].[ParentId] = [t].[Id]) -ORDER BY [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_on_derived_with_filter2() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name], [t].[DerivedInheritanceRelationshipEntityId] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#BaseReferenceOnDerived].* - FROM [BaseReferenceOnDerived] AS [e#BaseReferenceOnDerived] - WHERE [e#BaseReferenceOnDerived].[Discriminator] IN ('DerivedReferenceOnDerived', 'BaseReferenceOnDerived') -) AS [t] ON [e].[Id] = [t].[BaseParentId]) -WHERE ([e].[Discriminator] = 'DerivedInheritanceRelationshipEntity') AND (([e].[Name] <> 'Bar') OR [e].[Name] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Nested_include_with_inheritance_reference_collection1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#BaseReferenceOnBase].* - FROM [BaseReferenceOnBase] AS [e#BaseReferenceOnBase] - WHERE [e#BaseReferenceOnBase].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') -) AS [t] ON [e].[Id] = [t].[BaseParentId]) -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -ORDER BY [t].[Id]", - // - @"SELECT [e#BaseReferenceOnBase#NestedCollection].[Id], [e#BaseReferenceOnBase#NestedCollection].[Discriminator], [e#BaseReferenceOnBase#NestedCollection].[Name], [e#BaseReferenceOnBase#NestedCollection].[ParentCollectionId], [e#BaseReferenceOnBase#NestedCollection].[ParentReferenceId] -FROM ([NestedCollectionBase] AS [e#BaseReferenceOnBase#NestedCollection] -INNER JOIN ( - SELECT DISTINCT [t0].[Id] - FROM ([BaseInheritanceRelationshipEntity] AS [e0] - LEFT JOIN ( - SELECT [e#BaseReferenceOnBase0].* - FROM [BaseReferenceOnBase] AS [e#BaseReferenceOnBase0] - WHERE [e#BaseReferenceOnBase0].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') - ) AS [t0] ON [e0].[Id] = [t0].[BaseParentId]) - WHERE [e0].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t1] ON [e#BaseReferenceOnBase#NestedCollection].[ParentReferenceId] = [t1].[Id]) -WHERE [e#BaseReferenceOnBase#NestedCollection].[Discriminator] IN ('NestedCollectionDerived', 'NestedCollectionBase') -ORDER BY [t1].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_without_inheritance_with_filter() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [e#ReferenceOnBase].[Id], [e#ReferenceOnBase].[Name], [e#ReferenceOnBase].[ParentId] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN [ReferenceOnBase] AS [e#ReferenceOnBase] ON [e].[Id] = [e#ReferenceOnBase].[ParentId]) -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') AND (([e].[Name] <> 'Bar') OR [e].[Name] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Nested_include_with_inheritance_reference_collection3() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#BaseReferenceOnBase].* - FROM [BaseReferenceOnBase] AS [e#BaseReferenceOnBase] - WHERE [e#BaseReferenceOnBase].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') -) AS [t] ON [e].[Id] = [t].[BaseParentId]) -WHERE [e].[Discriminator] = 'DerivedInheritanceRelationshipEntity' -ORDER BY [t].[Id]", - // - @"SELECT [e#BaseReferenceOnBase#NestedCollection].[Id], [e#BaseReferenceOnBase#NestedCollection].[Discriminator], [e#BaseReferenceOnBase#NestedCollection].[Name], [e#BaseReferenceOnBase#NestedCollection].[ParentCollectionId], [e#BaseReferenceOnBase#NestedCollection].[ParentReferenceId] -FROM ([NestedCollectionBase] AS [e#BaseReferenceOnBase#NestedCollection] -INNER JOIN ( - SELECT DISTINCT [t0].[Id] - FROM ([BaseInheritanceRelationshipEntity] AS [e0] - LEFT JOIN ( - SELECT [e#BaseReferenceOnBase0].* - FROM [BaseReferenceOnBase] AS [e#BaseReferenceOnBase0] - WHERE [e#BaseReferenceOnBase0].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') - ) AS [t0] ON [e0].[Id] = [t0].[BaseParentId]) - WHERE [e0].[Discriminator] = 'DerivedInheritanceRelationshipEntity' -) AS [t1] ON [e#BaseReferenceOnBase#NestedCollection].[ParentReferenceId] = [t1].[Id]) -WHERE [e#BaseReferenceOnBase#NestedCollection].[Discriminator] IN ('NestedCollectionDerived', 'NestedCollectionBase') -ORDER BY [t1].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_without_inheritance_on_derived_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[Name], [e].[ParentId], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([ReferenceOnDerived] AS [e] -LEFT JOIN ( - SELECT [e#Parent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#Parent] - WHERE [e#Parent].[Discriminator] = 'DerivedInheritanceRelationshipEntity' -) AS [t] ON [e].[ParentId] = [t].[Id])"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_without_inheritance() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [e#ReferenceOnBase].[Id], [e#ReferenceOnBase].[Name], [e#ReferenceOnBase].[ParentId] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN [ReferenceOnBase] AS [e#ReferenceOnBase] ON [e].[Id] = [e#ReferenceOnBase].[ParentId]) -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_without_inheritance_with_filter() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId] -FROM [BaseInheritanceRelationshipEntity] AS [e] -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') AND (([e].[Name] <> 'Bar') OR [e].[Name] IS NULL) -ORDER BY [e].[Id]", - // - @"SELECT [e#CollectionOnBase].[Id], [e#CollectionOnBase].[Name], [e#CollectionOnBase].[ParentId] -FROM ([CollectionOnBase] AS [e#CollectionOnBase] -INNER JOIN ( - SELECT [e0].[Id] - FROM [BaseInheritanceRelationshipEntity] AS [e0] - WHERE [e0].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') AND (([e0].[Name] <> 'Bar') OR [e0].[Name] IS NULL) -) AS [t] ON [e#CollectionOnBase].[ParentId] = [t].[Id]) -ORDER BY [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_with_inheritance_on_derived1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId] -FROM [BaseInheritanceRelationshipEntity] AS [e] -WHERE [e].[Discriminator] = 'DerivedInheritanceRelationshipEntity' -ORDER BY [e].[Id]", - // - @"SELECT [e#BaseCollectionOnBase].[Id], [e#BaseCollectionOnBase].[BaseParentId], [e#BaseCollectionOnBase].[Discriminator], [e#BaseCollectionOnBase].[Name], [e#BaseCollectionOnBase].[DerivedProperty] -FROM ([BaseCollectionOnBase] AS [e#BaseCollectionOnBase] -INNER JOIN ( - SELECT [e0].[Id] - FROM [BaseInheritanceRelationshipEntity] AS [e0] - WHERE [e0].[Discriminator] = 'DerivedInheritanceRelationshipEntity' -) AS [t] ON [e#BaseCollectionOnBase].[BaseParentId] = [t].[Id]) -WHERE [e#BaseCollectionOnBase].[Discriminator] IN ('DerivedCollectionOnBase', 'BaseCollectionOnBase') -ORDER BY [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_on_derived1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#BaseReferenceOnBase].* - FROM [BaseReferenceOnBase] AS [e#BaseReferenceOnBase] - WHERE [e#BaseReferenceOnBase].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') -) AS [t] ON [e].[Id] = [t].[BaseParentId]) -WHERE [e].[Discriminator] = 'DerivedInheritanceRelationshipEntity'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_without_inheritance_on_derived2() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [e#ReferenceOnDerived].[Id], [e#ReferenceOnDerived].[Name], [e#ReferenceOnDerived].[ParentId] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN [ReferenceOnDerived] AS [e#ReferenceOnDerived] ON [e].[Id] = [e#ReferenceOnDerived].[ParentId]) -WHERE [e].[Discriminator] = 'DerivedInheritanceRelationshipEntity'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_on_derived2() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name], [t].[DerivedInheritanceRelationshipEntityId] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#BaseReferenceOnDerived].* - FROM [BaseReferenceOnDerived] AS [e#BaseReferenceOnDerived] - WHERE [e#BaseReferenceOnDerived].[Discriminator] IN ('DerivedReferenceOnDerived', 'BaseReferenceOnDerived') -) AS [t] ON [e].[Id] = [t].[BaseParentId]) -WHERE [e].[Discriminator] = 'DerivedInheritanceRelationshipEntity'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Nested_include_with_inheritance_reference_reference3() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name], [t0].[Id], [t0].[Discriminator], [t0].[Name], [t0].[ParentCollectionId], [t0].[ParentReferenceId] -FROM (([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#BaseReferenceOnBase].* - FROM [BaseReferenceOnBase] AS [e#BaseReferenceOnBase] - WHERE [e#BaseReferenceOnBase].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') -) AS [t] ON [e].[Id] = [t].[BaseParentId]) -LEFT JOIN ( - SELECT [e#BaseReferenceOnBase#NestedReference].* - FROM [NestedReferenceBase] AS [e#BaseReferenceOnBase#NestedReference] - WHERE [e#BaseReferenceOnBase#NestedReference].[Discriminator] IN ('NestedReferenceDerived', 'NestedReferenceBase') -) AS [t0] ON [t].[Id] = [t0].[ParentReferenceId]) -WHERE [e].[Discriminator] = 'DerivedInheritanceRelationshipEntity'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_self_refence_with_inheritence_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#BaseSelfRerefenceOnDerived].* - FROM [BaseInheritanceRelationshipEntity] AS [e#BaseSelfRerefenceOnDerived] - WHERE [e#BaseSelfRerefenceOnDerived].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e].[BaseId] = [t].[Id]) -WHERE [e].[Discriminator] = 'DerivedInheritanceRelationshipEntity'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#BaseReferenceOnBase].* - FROM [BaseReferenceOnBase] AS [e#BaseReferenceOnBase] - WHERE [e#BaseReferenceOnBase].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') -) AS [t] ON [e].[Id] = [t].[BaseParentId]) -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_with_inheritance_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[BaseParentId], [e].[Discriminator], [e].[Name], [e].[DerivedProperty], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([BaseCollectionOnBase] AS [e] -LEFT JOIN ( - SELECT [e#BaseParent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#BaseParent] - WHERE [e#BaseParent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e].[BaseParentId] = [t].[Id]) -WHERE [e].[Discriminator] IN ('DerivedCollectionOnBase', 'BaseCollectionOnBase')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_without_inheritance_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[Name], [e].[ParentId], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([CollectionOnBase] AS [e] -LEFT JOIN ( - SELECT [e#Parent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#Parent] - WHERE [e#Parent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e].[ParentId] = [t].[Id])"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_on_derived_with_filter4() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name], [t].[DerivedInheritanceRelationshipEntityId] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#DerivedReferenceOnDerived].* - FROM [BaseReferenceOnDerived] AS [e#DerivedReferenceOnDerived] - WHERE [e#DerivedReferenceOnDerived].[Discriminator] = 'DerivedReferenceOnDerived' -) AS [t] ON [e].[Id] = [t].[DerivedInheritanceRelationshipEntityId]) -WHERE ([e].[Discriminator] = 'DerivedInheritanceRelationshipEntity') AND (([e].[Name] <> 'Bar') OR [e].[Name] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Nested_include_with_inheritance_collection_collection_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[ParentCollectionId], [e].[ParentReferenceId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name], [t].[DerivedProperty], [t0].[Id], [t0].[Discriminator], [t0].[Name], [t0].[BaseId] -FROM (([NestedCollectionBase] AS [e] -LEFT JOIN ( - SELECT [e#ParentCollection].* - FROM [BaseCollectionOnBase] AS [e#ParentCollection] - WHERE [e#ParentCollection].[Discriminator] IN ('DerivedCollectionOnBase', 'BaseCollectionOnBase') -) AS [t] ON [e].[ParentCollectionId] = [t].[Id]) -LEFT JOIN ( - SELECT [e#ParentCollection#BaseParent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#ParentCollection#BaseParent] - WHERE [e#ParentCollection#BaseParent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t0] ON [t].[BaseParentId] = [t0].[Id]) -WHERE [e].[Discriminator] IN ('NestedCollectionDerived', 'NestedCollectionBase')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_without_inheritance_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[Name], [e].[ParentId], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([ReferenceOnBase] AS [e] -LEFT JOIN ( - SELECT [e#Parent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#Parent] - WHERE [e#Parent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e].[ParentId] = [t].[Id])"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_with_filter_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[BaseParentId], [e].[Discriminator], [e].[Name], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([BaseReferenceOnBase] AS [e] -LEFT JOIN ( - SELECT [e#BaseParent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#BaseParent] - WHERE [e#BaseParent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e].[BaseParentId] = [t].[Id]) -WHERE [e].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') AND (([e].[Name] <> 'Bar') OR [e].[Name] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_on_derived4() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name], [t].[DerivedInheritanceRelationshipEntityId] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#DerivedReferenceOnDerived].* - FROM [BaseReferenceOnDerived] AS [e#DerivedReferenceOnDerived] - WHERE [e#DerivedReferenceOnDerived].[Discriminator] = 'DerivedReferenceOnDerived' -) AS [t] ON [e].[Id] = [t].[DerivedInheritanceRelationshipEntityId]) -WHERE [e].[Discriminator] = 'DerivedInheritanceRelationshipEntity'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_on_derived_with_filter_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[BaseParentId], [e].[Discriminator], [e].[Name], [e].[DerivedInheritanceRelationshipEntityId], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([BaseReferenceOnDerived] AS [e] -LEFT JOIN ( - SELECT [e#BaseParent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#BaseParent] - WHERE [e#BaseParent].[Discriminator] = 'DerivedInheritanceRelationshipEntity' -) AS [t] ON [e].[BaseParentId] = [t].[Id]) -WHERE [e].[Discriminator] IN ('DerivedReferenceOnDerived', 'BaseReferenceOnDerived') AND (([e].[Name] <> 'Bar') OR [e].[Name] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_with_inheritance_on_derived2() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId] -FROM [BaseInheritanceRelationshipEntity] AS [e] -WHERE [e].[Discriminator] = 'DerivedInheritanceRelationshipEntity' -ORDER BY [e].[Id]", - // - @"SELECT [e#BaseCollectionOnDerived].[Id], [e#BaseCollectionOnDerived].[Discriminator], [e#BaseCollectionOnDerived].[Name], [e#BaseCollectionOnDerived].[ParentId], [e#BaseCollectionOnDerived].[DerivedInheritanceRelationshipEntityId] -FROM ([BaseCollectionOnDerived] AS [e#BaseCollectionOnDerived] -INNER JOIN ( - SELECT [e0].[Id] - FROM [BaseInheritanceRelationshipEntity] AS [e0] - WHERE [e0].[Discriminator] = 'DerivedInheritanceRelationshipEntity' -) AS [t] ON [e#BaseCollectionOnDerived].[ParentId] = [t].[Id]) -WHERE [e#BaseCollectionOnDerived].[Discriminator] IN ('DerivedCollectionOnDerived', 'BaseCollectionOnDerived') -ORDER BY [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_with_inheritance_with_filter1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId] -FROM [BaseInheritanceRelationshipEntity] AS [e] -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') AND (([e].[Name] <> 'Bar') OR [e].[Name] IS NULL) -ORDER BY [e].[Id]", - // - @"SELECT [e#BaseCollectionOnBase].[Id], [e#BaseCollectionOnBase].[BaseParentId], [e#BaseCollectionOnBase].[Discriminator], [e#BaseCollectionOnBase].[Name], [e#BaseCollectionOnBase].[DerivedProperty] -FROM ([BaseCollectionOnBase] AS [e#BaseCollectionOnBase] -INNER JOIN ( - SELECT [e0].[Id] - FROM [BaseInheritanceRelationshipEntity] AS [e0] - WHERE [e0].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') AND (([e0].[Name] <> 'Bar') OR [e0].[Name] IS NULL) -) AS [t] ON [e#BaseCollectionOnBase].[BaseParentId] = [t].[Id]) -WHERE [e#BaseCollectionOnBase].[Discriminator] IN ('DerivedCollectionOnBase', 'BaseCollectionOnBase') -ORDER BY [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_with_inheritance_with_filter_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[BaseParentId], [e].[Discriminator], [e].[Name], [e].[DerivedProperty], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([BaseCollectionOnBase] AS [e] -LEFT JOIN ( - SELECT [e#BaseParent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#BaseParent] - WHERE [e#BaseParent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e].[BaseParentId] = [t].[Id]) -WHERE [e].[Discriminator] IN ('DerivedCollectionOnBase', 'BaseCollectionOnBase') AND (([e].[Name] <> 'Bar') OR [e].[Name] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Nested_include_collection_reference_on_non_entity_base() : - AssertSql( - @"SELECT [e].[Id], [e].[Name] -FROM [ReferencedEntity] AS [e] -ORDER BY [e].[Id]", - // - @"SELECT [e#Principals].[Id], [e#Principals].[Name], [e#Principals].[ReferenceId], [e#Principals].[ReferencedEntityId], [p#Reference].[Id], [p#Reference].[Name] -FROM (([PrincipalEntity] AS [e#Principals] -LEFT JOIN [ReferencedEntity] AS [p#Reference] ON [e#Principals].[ReferenceId] = [p#Reference].[Id]) -INNER JOIN ( - SELECT [e0].[Id] - FROM [ReferencedEntity] AS [e0] -) AS [t] ON [e#Principals].[ReferencedEntityId] = [t].[Id]) -ORDER BY [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_on_derived_with_filter1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#BaseReferenceOnBase].* - FROM [BaseReferenceOnBase] AS [e#BaseReferenceOnBase] - WHERE [e#BaseReferenceOnBase].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') -) AS [t] ON [e].[Id] = [t].[BaseParentId]) -WHERE ([e].[Discriminator] = 'DerivedInheritanceRelationshipEntity') AND (([e].[Name] <> 'Bar') OR [e].[Name] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_with_inheritance_on_derived_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[ParentId], [e].[DerivedInheritanceRelationshipEntityId], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([BaseCollectionOnDerived] AS [e] -LEFT JOIN ( - SELECT [e#BaseParent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#BaseParent] - WHERE [e#BaseParent].[Discriminator] = 'DerivedInheritanceRelationshipEntity' -) AS [t] ON [e].[ParentId] = [t].[Id]) -WHERE [e].[Discriminator] IN ('DerivedCollectionOnDerived', 'BaseCollectionOnDerived')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_self_refence_with_inheritence() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#DerivedSefReferenceOnBase].* - FROM [BaseInheritanceRelationshipEntity] AS [e#DerivedSefReferenceOnBase] - WHERE [e#DerivedSefReferenceOnBase].[Discriminator] = 'DerivedInheritanceRelationshipEntity' -) AS [t] ON [e].[Id] = [t].[BaseId]) -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Nested_include_with_inheritance_reference_collection_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[ParentCollectionId], [e].[ParentReferenceId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name], [t0].[Id], [t0].[Discriminator], [t0].[Name], [t0].[BaseId] -FROM (([NestedCollectionBase] AS [e] -LEFT JOIN ( - SELECT [e#ParentReference].* - FROM [BaseReferenceOnBase] AS [e#ParentReference] - WHERE [e#ParentReference].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') -) AS [t] ON [e].[ParentReferenceId] = [t].[Id]) -LEFT JOIN ( - SELECT [e#ParentReference#BaseParent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#ParentReference#BaseParent] - WHERE [e#ParentReference#BaseParent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t0] ON [t].[BaseParentId] = [t0].[Id]) -WHERE [e].[Discriminator] IN ('NestedCollectionDerived', 'NestedCollectionBase')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Nested_include_with_inheritance_collection_reference_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[ParentCollectionId], [e].[ParentReferenceId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name], [t].[DerivedProperty], [t0].[Id], [t0].[Discriminator], [t0].[Name], [t0].[BaseId] -FROM (([NestedReferenceBase] AS [e] -LEFT JOIN ( - SELECT [e#ParentCollection].* - FROM [BaseCollectionOnBase] AS [e#ParentCollection] - WHERE [e#ParentCollection].[Discriminator] IN ('DerivedCollectionOnBase', 'BaseCollectionOnBase') -) AS [t] ON [e].[ParentCollectionId] = [t].[Id]) -LEFT JOIN ( - SELECT [e#ParentCollection#BaseParent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#ParentCollection#BaseParent] - WHERE [e#ParentCollection#BaseParent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t0] ON [t].[BaseParentId] = [t0].[Id]) -WHERE [e].[Discriminator] IN ('NestedReferenceDerived', 'NestedReferenceBase')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_with_inheritance1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId] -FROM [BaseInheritanceRelationshipEntity] AS [e] -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -ORDER BY [e].[Id]", - // - @"SELECT [e#BaseCollectionOnBase].[Id], [e#BaseCollectionOnBase].[BaseParentId], [e#BaseCollectionOnBase].[Discriminator], [e#BaseCollectionOnBase].[Name], [e#BaseCollectionOnBase].[DerivedProperty] -FROM ([BaseCollectionOnBase] AS [e#BaseCollectionOnBase] -INNER JOIN ( - SELECT [e0].[Id] - FROM [BaseInheritanceRelationshipEntity] AS [e0] - WHERE [e0].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e#BaseCollectionOnBase].[BaseParentId] = [t].[Id]) -WHERE [e#BaseCollectionOnBase].[Discriminator] IN ('DerivedCollectionOnBase', 'BaseCollectionOnBase') -ORDER BY [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_on_derived_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[BaseParentId], [e].[Discriminator], [e].[Name], [e].[DerivedInheritanceRelationshipEntityId], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([BaseReferenceOnDerived] AS [e] -LEFT JOIN ( - SELECT [e#BaseParent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#BaseParent] - WHERE [e#BaseParent].[Discriminator] = 'DerivedInheritanceRelationshipEntity' -) AS [t] ON [e].[BaseParentId] = [t].[Id]) -WHERE [e].[Discriminator] IN ('DerivedReferenceOnDerived', 'BaseReferenceOnDerived')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[BaseParentId], [e].[Discriminator], [e].[Name], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([BaseReferenceOnBase] AS [e] -LEFT JOIN ( - SELECT [e#BaseParent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#BaseParent] - WHERE [e#BaseParent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e].[BaseParentId] = [t].[Id]) -WHERE [e].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Nested_include_with_inheritance_reference_reference1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name], [t0].[Id], [t0].[Discriminator], [t0].[Name], [t0].[ParentCollectionId], [t0].[ParentReferenceId] -FROM (([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#BaseReferenceOnBase].* - FROM [BaseReferenceOnBase] AS [e#BaseReferenceOnBase] - WHERE [e#BaseReferenceOnBase].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') -) AS [t] ON [e].[Id] = [t].[BaseParentId]) -LEFT JOIN ( - SELECT [e#BaseReferenceOnBase#NestedReference].* - FROM [NestedReferenceBase] AS [e#BaseReferenceOnBase#NestedReference] - WHERE [e#BaseReferenceOnBase#NestedReference].[Discriminator] IN ('NestedReferenceDerived', 'NestedReferenceBase') -) AS [t0] ON [t].[Id] = [t0].[ParentReferenceId]) -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_without_inheritance_with_filter_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[Name], [e].[ParentId], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([CollectionOnBase] AS [e] -LEFT JOIN ( - SELECT [e#Parent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#Parent] - WHERE [e#Parent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e].[ParentId] = [t].[Id]) -WHERE ([e].[Name] <> 'Bar') OR [e].[Name] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Nested_include_with_inheritance_collection_reference1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId] -FROM [BaseInheritanceRelationshipEntity] AS [e] -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -ORDER BY [e].[Id]", - // - @"SELECT [e#BaseCollectionOnBase].[Id], [e#BaseCollectionOnBase].[BaseParentId], [e#BaseCollectionOnBase].[Discriminator], [e#BaseCollectionOnBase].[Name], [e#BaseCollectionOnBase].[DerivedProperty], [t].[Id], [t].[Discriminator], [t].[Name], [t].[ParentCollectionId], [t].[ParentReferenceId] -FROM (([BaseCollectionOnBase] AS [e#BaseCollectionOnBase] -LEFT JOIN ( - SELECT [b#NestedReference].* - FROM [NestedReferenceBase] AS [b#NestedReference] - WHERE [b#NestedReference].[Discriminator] IN ('NestedReferenceDerived', 'NestedReferenceBase') -) AS [t] ON [e#BaseCollectionOnBase].[Id] = [t].[ParentCollectionId]) -INNER JOIN ( - SELECT [e0].[Id] - FROM [BaseInheritanceRelationshipEntity] AS [e0] - WHERE [e0].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t0] ON [e#BaseCollectionOnBase].[BaseParentId] = [t0].[Id]) -WHERE [e#BaseCollectionOnBase].[Discriminator] IN ('DerivedCollectionOnBase', 'BaseCollectionOnBase') -ORDER BY [t0].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Nested_include_with_inheritance_collection_collection1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId] -FROM [BaseInheritanceRelationshipEntity] AS [e] -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -ORDER BY [e].[Id]", - // - @"SELECT [e#BaseCollectionOnBase].[Id], [e#BaseCollectionOnBase].[BaseParentId], [e#BaseCollectionOnBase].[Discriminator], [e#BaseCollectionOnBase].[Name], [e#BaseCollectionOnBase].[DerivedProperty] -FROM ([BaseCollectionOnBase] AS [e#BaseCollectionOnBase] -INNER JOIN ( - SELECT [e0].[Id] - FROM [BaseInheritanceRelationshipEntity] AS [e0] - WHERE [e0].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e#BaseCollectionOnBase].[BaseParentId] = [t].[Id]) -WHERE [e#BaseCollectionOnBase].[Discriminator] IN ('DerivedCollectionOnBase', 'BaseCollectionOnBase') -ORDER BY [t].[Id], [e#BaseCollectionOnBase].[Id]", - // - @"SELECT [e#BaseCollectionOnBase#NestedCollection].[Id], [e#BaseCollectionOnBase#NestedCollection].[Discriminator], [e#BaseCollectionOnBase#NestedCollection].[Name], [e#BaseCollectionOnBase#NestedCollection].[ParentCollectionId], [e#BaseCollectionOnBase#NestedCollection].[ParentReferenceId] -FROM ([NestedCollectionBase] AS [e#BaseCollectionOnBase#NestedCollection] -INNER JOIN ( - SELECT DISTINCT [e#BaseCollectionOnBase0].[Id], [t0].[Id] AS [Id0] - FROM ([BaseCollectionOnBase] AS [e#BaseCollectionOnBase0] - INNER JOIN ( - SELECT [e1].[Id] - FROM [BaseInheritanceRelationshipEntity] AS [e1] - WHERE [e1].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') - ) AS [t0] ON [e#BaseCollectionOnBase0].[BaseParentId] = [t0].[Id]) - WHERE [e#BaseCollectionOnBase0].[Discriminator] IN ('DerivedCollectionOnBase', 'BaseCollectionOnBase') -) AS [t1] ON [e#BaseCollectionOnBase#NestedCollection].[ParentCollectionId] = [t1].[Id]) -WHERE [e#BaseCollectionOnBase#NestedCollection].[Discriminator] IN ('NestedCollectionDerived', 'NestedCollectionBase') -ORDER BY [t1].[Id0], [t1].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_without_inheritance_with_filter_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[Name], [e].[ParentId], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([ReferenceOnBase] AS [e] -LEFT JOIN ( - SELECT [e#Parent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#Parent] - WHERE [e#Parent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e].[ParentId] = [t].[Id]) -WHERE ([e].[Name] <> 'Bar') OR [e].[Name] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_with_filter1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#BaseReferenceOnBase].* - FROM [BaseReferenceOnBase] AS [e#BaseReferenceOnBase] - WHERE [e#BaseReferenceOnBase].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') -) AS [t] ON [e].[Id] = [t].[BaseParentId]) -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') AND (([e].[Name] <> 'Bar') OR [e].[Name] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_without_inheritance_on_derived1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [e#ReferenceOnBase].[Id], [e#ReferenceOnBase].[Name], [e#ReferenceOnBase].[ParentId] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN [ReferenceOnBase] AS [e#ReferenceOnBase] ON [e].[Id] = [e#ReferenceOnBase].[ParentId]) -WHERE [e].[Discriminator] = 'DerivedInheritanceRelationshipEntity'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_without_inheritance() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId] -FROM [BaseInheritanceRelationshipEntity] AS [e] -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -ORDER BY [e].[Id]", - // - @"SELECT [e#CollectionOnBase].[Id], [e#CollectionOnBase].[Name], [e#CollectionOnBase].[ParentId] -FROM ([CollectionOnBase] AS [e#CollectionOnBase] -INNER JOIN ( - SELECT [e0].[Id] - FROM [BaseInheritanceRelationshipEntity] AS [e0] - WHERE [e0].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e#CollectionOnBase].[ParentId] = [t].[Id]) -ORDER BY [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_on_derived_with_filter2() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name], [t].[DerivedInheritanceRelationshipEntityId] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#BaseReferenceOnDerived].* - FROM [BaseReferenceOnDerived] AS [e#BaseReferenceOnDerived] - WHERE [e#BaseReferenceOnDerived].[Discriminator] IN ('DerivedReferenceOnDerived', 'BaseReferenceOnDerived') -) AS [t] ON [e].[Id] = [t].[BaseParentId]) -WHERE ([e].[Discriminator] = 'DerivedInheritanceRelationshipEntity') AND (([e].[Name] <> 'Bar') OR [e].[Name] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Nested_include_with_inheritance_reference_collection1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#BaseReferenceOnBase].* - FROM [BaseReferenceOnBase] AS [e#BaseReferenceOnBase] - WHERE [e#BaseReferenceOnBase].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') -) AS [t] ON [e].[Id] = [t].[BaseParentId]) -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -ORDER BY [t].[Id]", - // - @"SELECT [e#BaseReferenceOnBase#NestedCollection].[Id], [e#BaseReferenceOnBase#NestedCollection].[Discriminator], [e#BaseReferenceOnBase#NestedCollection].[Name], [e#BaseReferenceOnBase#NestedCollection].[ParentCollectionId], [e#BaseReferenceOnBase#NestedCollection].[ParentReferenceId] -FROM ([NestedCollectionBase] AS [e#BaseReferenceOnBase#NestedCollection] -INNER JOIN ( - SELECT DISTINCT [t0].[Id] - FROM ([BaseInheritanceRelationshipEntity] AS [e0] - LEFT JOIN ( - SELECT [e#BaseReferenceOnBase0].* - FROM [BaseReferenceOnBase] AS [e#BaseReferenceOnBase0] - WHERE [e#BaseReferenceOnBase0].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') - ) AS [t0] ON [e0].[Id] = [t0].[BaseParentId]) - WHERE [e0].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t1] ON [e#BaseReferenceOnBase#NestedCollection].[ParentReferenceId] = [t1].[Id]) -WHERE [e#BaseReferenceOnBase#NestedCollection].[Discriminator] IN ('NestedCollectionDerived', 'NestedCollectionBase') -ORDER BY [t1].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_without_inheritance_with_filter() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [e#ReferenceOnBase].[Id], [e#ReferenceOnBase].[Name], [e#ReferenceOnBase].[ParentId] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN [ReferenceOnBase] AS [e#ReferenceOnBase] ON [e].[Id] = [e#ReferenceOnBase].[ParentId]) -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') AND (([e].[Name] <> 'Bar') OR [e].[Name] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_without_inheritance_on_derived_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[Name], [e].[ParentId], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([ReferenceOnDerived] AS [e] -LEFT JOIN ( - SELECT [e#Parent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#Parent] - WHERE [e#Parent].[Discriminator] = 'DerivedInheritanceRelationshipEntity' -) AS [t] ON [e].[ParentId] = [t].[Id])"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_without_inheritance() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [e#ReferenceOnBase].[Id], [e#ReferenceOnBase].[Name], [e#ReferenceOnBase].[ParentId] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN [ReferenceOnBase] AS [e#ReferenceOnBase] ON [e].[Id] = [e#ReferenceOnBase].[ParentId]) -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_without_inheritance_with_filter() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId] -FROM [BaseInheritanceRelationshipEntity] AS [e] -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') AND (([e].[Name] <> 'Bar') OR [e].[Name] IS NULL) -ORDER BY [e].[Id]", - // - @"SELECT [e#CollectionOnBase].[Id], [e#CollectionOnBase].[Name], [e#CollectionOnBase].[ParentId] -FROM ([CollectionOnBase] AS [e#CollectionOnBase] -INNER JOIN ( - SELECT [e0].[Id] - FROM [BaseInheritanceRelationshipEntity] AS [e0] - WHERE [e0].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') AND (([e0].[Name] <> 'Bar') OR [e0].[Name] IS NULL) -) AS [t] ON [e#CollectionOnBase].[ParentId] = [t].[Id]) -ORDER BY [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_with_inheritance_on_derived1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId] -FROM [BaseInheritanceRelationshipEntity] AS [e] -WHERE [e].[Discriminator] = 'DerivedInheritanceRelationshipEntity' -ORDER BY [e].[Id]", - // - @"SELECT [e#BaseCollectionOnBase].[Id], [e#BaseCollectionOnBase].[BaseParentId], [e#BaseCollectionOnBase].[Discriminator], [e#BaseCollectionOnBase].[Name], [e#BaseCollectionOnBase].[DerivedProperty] -FROM ([BaseCollectionOnBase] AS [e#BaseCollectionOnBase] -INNER JOIN ( - SELECT [e0].[Id] - FROM [BaseInheritanceRelationshipEntity] AS [e0] - WHERE [e0].[Discriminator] = 'DerivedInheritanceRelationshipEntity' -) AS [t] ON [e#BaseCollectionOnBase].[BaseParentId] = [t].[Id]) -WHERE [e#BaseCollectionOnBase].[Discriminator] IN ('DerivedCollectionOnBase', 'BaseCollectionOnBase') -ORDER BY [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_on_derived1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#BaseReferenceOnBase].* - FROM [BaseReferenceOnBase] AS [e#BaseReferenceOnBase] - WHERE [e#BaseReferenceOnBase].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') -) AS [t] ON [e].[Id] = [t].[BaseParentId]) -WHERE [e].[Discriminator] = 'DerivedInheritanceRelationshipEntity'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_without_inheritance_on_derived2() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [e#ReferenceOnDerived].[Id], [e#ReferenceOnDerived].[Name], [e#ReferenceOnDerived].[ParentId] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN [ReferenceOnDerived] AS [e#ReferenceOnDerived] ON [e].[Id] = [e#ReferenceOnDerived].[ParentId]) -WHERE [e].[Discriminator] = 'DerivedInheritanceRelationshipEntity'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_on_derived2() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name], [t].[DerivedInheritanceRelationshipEntityId] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#BaseReferenceOnDerived].* - FROM [BaseReferenceOnDerived] AS [e#BaseReferenceOnDerived] - WHERE [e#BaseReferenceOnDerived].[Discriminator] IN ('DerivedReferenceOnDerived', 'BaseReferenceOnDerived') -) AS [t] ON [e].[Id] = [t].[BaseParentId]) -WHERE [e].[Discriminator] = 'DerivedInheritanceRelationshipEntity'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_self_refence_with_inheritence_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#BaseSelfRerefenceOnDerived].* - FROM [BaseInheritanceRelationshipEntity] AS [e#BaseSelfRerefenceOnDerived] - WHERE [e#BaseSelfRerefenceOnDerived].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e].[BaseId] = [t].[Id]) -WHERE [e].[Discriminator] = 'DerivedInheritanceRelationshipEntity'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#BaseReferenceOnBase].* - FROM [BaseReferenceOnBase] AS [e#BaseReferenceOnBase] - WHERE [e#BaseReferenceOnBase].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') -) AS [t] ON [e].[Id] = [t].[BaseParentId]) -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_with_inheritance_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[BaseParentId], [e].[Discriminator], [e].[Name], [e].[DerivedProperty], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([BaseCollectionOnBase] AS [e] -LEFT JOIN ( - SELECT [e#BaseParent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#BaseParent] - WHERE [e#BaseParent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e].[BaseParentId] = [t].[Id]) -WHERE [e].[Discriminator] IN ('DerivedCollectionOnBase', 'BaseCollectionOnBase')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_without_inheritance_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[Name], [e].[ParentId], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([CollectionOnBase] AS [e] -LEFT JOIN ( - SELECT [e#Parent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#Parent] - WHERE [e#Parent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e].[ParentId] = [t].[Id])"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_on_derived_with_filter4() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name], [t].[DerivedInheritanceRelationshipEntityId] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#DerivedReferenceOnDerived].* - FROM [BaseReferenceOnDerived] AS [e#DerivedReferenceOnDerived] - WHERE [e#DerivedReferenceOnDerived].[Discriminator] = 'DerivedReferenceOnDerived' -) AS [t] ON [e].[Id] = [t].[DerivedInheritanceRelationshipEntityId]) -WHERE ([e].[Discriminator] = 'DerivedInheritanceRelationshipEntity') AND (([e].[Name] <> 'Bar') OR [e].[Name] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Nested_include_with_inheritance_collection_collection_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[ParentCollectionId], [e].[ParentReferenceId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name], [t].[DerivedProperty], [t0].[Id], [t0].[Discriminator], [t0].[Name], [t0].[BaseId] -FROM (([NestedCollectionBase] AS [e] -LEFT JOIN ( - SELECT [e#ParentCollection].* - FROM [BaseCollectionOnBase] AS [e#ParentCollection] - WHERE [e#ParentCollection].[Discriminator] IN ('DerivedCollectionOnBase', 'BaseCollectionOnBase') -) AS [t] ON [e].[ParentCollectionId] = [t].[Id]) -LEFT JOIN ( - SELECT [e#ParentCollection#BaseParent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#ParentCollection#BaseParent] - WHERE [e#ParentCollection#BaseParent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t0] ON [t].[BaseParentId] = [t0].[Id]) -WHERE [e].[Discriminator] IN ('NestedCollectionDerived', 'NestedCollectionBase')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_without_inheritance_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[Name], [e].[ParentId], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([ReferenceOnBase] AS [e] -LEFT JOIN ( - SELECT [e#Parent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#Parent] - WHERE [e#Parent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e].[ParentId] = [t].[Id])"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_with_filter_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[BaseParentId], [e].[Discriminator], [e].[Name], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([BaseReferenceOnBase] AS [e] -LEFT JOIN ( - SELECT [e#BaseParent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#BaseParent] - WHERE [e#BaseParent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e].[BaseParentId] = [t].[Id]) -WHERE [e].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') AND (([e].[Name] <> 'Bar') OR [e].[Name] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_on_derived4() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name], [t].[DerivedInheritanceRelationshipEntityId] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#DerivedReferenceOnDerived].* - FROM [BaseReferenceOnDerived] AS [e#DerivedReferenceOnDerived] - WHERE [e#DerivedReferenceOnDerived].[Discriminator] = 'DerivedReferenceOnDerived' -) AS [t] ON [e].[Id] = [t].[DerivedInheritanceRelationshipEntityId]) -WHERE [e].[Discriminator] = 'DerivedInheritanceRelationshipEntity'"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_on_derived_with_filter_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[BaseParentId], [e].[Discriminator], [e].[Name], [e].[DerivedInheritanceRelationshipEntityId], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([BaseReferenceOnDerived] AS [e] -LEFT JOIN ( - SELECT [e#BaseParent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#BaseParent] - WHERE [e#BaseParent].[Discriminator] = 'DerivedInheritanceRelationshipEntity' -) AS [t] ON [e].[BaseParentId] = [t].[Id]) -WHERE [e].[Discriminator] IN ('DerivedReferenceOnDerived', 'BaseReferenceOnDerived') AND (([e].[Name] <> 'Bar') OR [e].[Name] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_with_inheritance_on_derived2() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId] -FROM [BaseInheritanceRelationshipEntity] AS [e] -WHERE [e].[Discriminator] = 'DerivedInheritanceRelationshipEntity' -ORDER BY [e].[Id]", - // - @"SELECT [e#BaseCollectionOnDerived].[Id], [e#BaseCollectionOnDerived].[Discriminator], [e#BaseCollectionOnDerived].[Name], [e#BaseCollectionOnDerived].[ParentId], [e#BaseCollectionOnDerived].[DerivedInheritanceRelationshipEntityId] -FROM ([BaseCollectionOnDerived] AS [e#BaseCollectionOnDerived] -INNER JOIN ( - SELECT [e0].[Id] - FROM [BaseInheritanceRelationshipEntity] AS [e0] - WHERE [e0].[Discriminator] = 'DerivedInheritanceRelationshipEntity' -) AS [t] ON [e#BaseCollectionOnDerived].[ParentId] = [t].[Id]) -WHERE [e#BaseCollectionOnDerived].[Discriminator] IN ('DerivedCollectionOnDerived', 'BaseCollectionOnDerived') -ORDER BY [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_with_inheritance_with_filter1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId] -FROM [BaseInheritanceRelationshipEntity] AS [e] -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') AND (([e].[Name] <> 'Bar') OR [e].[Name] IS NULL) -ORDER BY [e].[Id]", - // - @"SELECT [e#BaseCollectionOnBase].[Id], [e#BaseCollectionOnBase].[BaseParentId], [e#BaseCollectionOnBase].[Discriminator], [e#BaseCollectionOnBase].[Name], [e#BaseCollectionOnBase].[DerivedProperty] -FROM ([BaseCollectionOnBase] AS [e#BaseCollectionOnBase] -INNER JOIN ( - SELECT [e0].[Id] - FROM [BaseInheritanceRelationshipEntity] AS [e0] - WHERE [e0].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') AND (([e0].[Name] <> 'Bar') OR [e0].[Name] IS NULL) -) AS [t] ON [e#BaseCollectionOnBase].[BaseParentId] = [t].[Id]) -WHERE [e#BaseCollectionOnBase].[Discriminator] IN ('DerivedCollectionOnBase', 'BaseCollectionOnBase') -ORDER BY [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_with_inheritance_with_filter_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[BaseParentId], [e].[Discriminator], [e].[Name], [e].[DerivedProperty], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([BaseCollectionOnBase] AS [e] -LEFT JOIN ( - SELECT [e#BaseParent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#BaseParent] - WHERE [e#BaseParent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e].[BaseParentId] = [t].[Id]) -WHERE [e].[Discriminator] IN ('DerivedCollectionOnBase', 'BaseCollectionOnBase') AND (([e].[Name] <> 'Bar') OR [e].[Name] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Nested_include_collection_reference_on_non_entity_base() : - AssertSql( - @"SELECT [e].[Id], [e].[Name] -FROM [ReferencedEntity] AS [e] -ORDER BY [e].[Id]", - // - @"SELECT [e#Principals].[Id], [e#Principals].[Name], [e#Principals].[ReferenceId], [e#Principals].[ReferencedEntityId], [p#Reference].[Id], [p#Reference].[Name] -FROM (([PrincipalEntity] AS [e#Principals] -LEFT JOIN [ReferencedEntity] AS [p#Reference] ON [e#Principals].[ReferenceId] = [p#Reference].[Id]) -INNER JOIN ( - SELECT [e0].[Id] - FROM [ReferencedEntity] AS [e0] -) AS [t] ON [e#Principals].[ReferencedEntityId] = [t].[Id]) -ORDER BY [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_on_derived_with_filter1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#BaseReferenceOnBase].* - FROM [BaseReferenceOnBase] AS [e#BaseReferenceOnBase] - WHERE [e#BaseReferenceOnBase].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase') -) AS [t] ON [e].[Id] = [t].[BaseParentId]) -WHERE ([e].[Discriminator] = 'DerivedInheritanceRelationshipEntity') AND (([e].[Name] <> 'Bar') OR [e].[Name] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_with_inheritance_on_derived_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[ParentId], [e].[DerivedInheritanceRelationshipEntityId], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([BaseCollectionOnDerived] AS [e] -LEFT JOIN ( - SELECT [e#BaseParent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#BaseParent] - WHERE [e#BaseParent].[Discriminator] = 'DerivedInheritanceRelationshipEntity' -) AS [t] ON [e].[ParentId] = [t].[Id]) -WHERE [e].[Discriminator] IN ('DerivedCollectionOnDerived', 'BaseCollectionOnDerived')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_self_refence_with_inheritence() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([BaseInheritanceRelationshipEntity] AS [e] -LEFT JOIN ( - SELECT [e#DerivedSefReferenceOnBase].* - FROM [BaseInheritanceRelationshipEntity] AS [e#DerivedSefReferenceOnBase] - WHERE [e#DerivedSefReferenceOnBase].[Discriminator] = 'DerivedInheritanceRelationshipEntity' -) AS [t] ON [e].[Id] = [t].[BaseId]) -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Nested_include_with_inheritance_collection_reference_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[ParentCollectionId], [e].[ParentReferenceId], [t].[Id], [t].[BaseParentId], [t].[Discriminator], [t].[Name], [t].[DerivedProperty], [t0].[Id], [t0].[Discriminator], [t0].[Name], [t0].[BaseId] -FROM (([NestedReferenceBase] AS [e] -LEFT JOIN ( - SELECT [e#ParentCollection].* - FROM [BaseCollectionOnBase] AS [e#ParentCollection] - WHERE [e#ParentCollection].[Discriminator] IN ('DerivedCollectionOnBase', 'BaseCollectionOnBase') -) AS [t] ON [e].[ParentCollectionId] = [t].[Id]) -LEFT JOIN ( - SELECT [e#ParentCollection#BaseParent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#ParentCollection#BaseParent] - WHERE [e#ParentCollection#BaseParent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t0] ON [t].[BaseParentId] = [t0].[Id]) -WHERE [e].[Discriminator] IN ('NestedReferenceDerived', 'NestedReferenceBase')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_with_inheritance1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId] -FROM [BaseInheritanceRelationshipEntity] AS [e] -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -ORDER BY [e].[Id]", - // - @"SELECT [e#BaseCollectionOnBase].[Id], [e#BaseCollectionOnBase].[BaseParentId], [e#BaseCollectionOnBase].[Discriminator], [e#BaseCollectionOnBase].[Name], [e#BaseCollectionOnBase].[DerivedProperty] -FROM ([BaseCollectionOnBase] AS [e#BaseCollectionOnBase] -INNER JOIN ( - SELECT [e0].[Id] - FROM [BaseInheritanceRelationshipEntity] AS [e0] - WHERE [e0].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e#BaseCollectionOnBase].[BaseParentId] = [t].[Id]) -WHERE [e#BaseCollectionOnBase].[Discriminator] IN ('DerivedCollectionOnBase', 'BaseCollectionOnBase') -ORDER BY [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_on_derived_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[BaseParentId], [e].[Discriminator], [e].[Name], [e].[DerivedInheritanceRelationshipEntityId], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([BaseReferenceOnDerived] AS [e] -LEFT JOIN ( - SELECT [e#BaseParent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#BaseParent] - WHERE [e#BaseParent].[Discriminator] = 'DerivedInheritanceRelationshipEntity' -) AS [t] ON [e].[BaseParentId] = [t].[Id]) -WHERE [e].[Discriminator] IN ('DerivedReferenceOnDerived', 'BaseReferenceOnDerived')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_reference_with_inheritance_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[BaseParentId], [e].[Discriminator], [e].[Name], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([BaseReferenceOnBase] AS [e] -LEFT JOIN ( - SELECT [e#BaseParent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#BaseParent] - WHERE [e#BaseParent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e].[BaseParentId] = [t].[Id]) -WHERE [e].[Discriminator] IN ('DerivedReferenceOnBase', 'BaseReferenceOnBase')"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Include_collection_without_inheritance_with_filter_reverse() : - AssertSql( - @"SELECT [e].[Id], [e].[Name], [e].[ParentId], [t].[Id], [t].[Discriminator], [t].[Name], [t].[BaseId] -FROM ([CollectionOnBase] AS [e] -LEFT JOIN ( - SELECT [e#Parent].* - FROM [BaseInheritanceRelationshipEntity] AS [e#Parent] - WHERE [e#Parent].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e].[ParentId] = [t].[Id]) -WHERE ([e].[Name] <> 'Bar') OR [e].[Name] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Nested_include_with_inheritance_collection_reference1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId] -FROM [BaseInheritanceRelationshipEntity] AS [e] -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -ORDER BY [e].[Id]", - // - @"SELECT [e#BaseCollectionOnBase].[Id], [e#BaseCollectionOnBase].[BaseParentId], [e#BaseCollectionOnBase].[Discriminator], [e#BaseCollectionOnBase].[Name], [e#BaseCollectionOnBase].[DerivedProperty], [t].[Id], [t].[Discriminator], [t].[Name], [t].[ParentCollectionId], [t].[ParentReferenceId] -FROM (([BaseCollectionOnBase] AS [e#BaseCollectionOnBase] -LEFT JOIN ( - SELECT [b#NestedReference].* - FROM [NestedReferenceBase] AS [b#NestedReference] - WHERE [b#NestedReference].[Discriminator] IN ('NestedReferenceDerived', 'NestedReferenceBase') -) AS [t] ON [e#BaseCollectionOnBase].[Id] = [t].[ParentCollectionId]) -INNER JOIN ( - SELECT [e0].[Id] - FROM [BaseInheritanceRelationshipEntity] AS [e0] - WHERE [e0].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t0] ON [e#BaseCollectionOnBase].[BaseParentId] = [t0].[Id]) -WHERE [e#BaseCollectionOnBase].[Discriminator] IN ('DerivedCollectionOnBase', 'BaseCollectionOnBase') -ORDER BY [t0].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.InheritanceRelationshipsQueryJetTest.Nested_include_with_inheritance_collection_collection1() : - AssertSql( - @"SELECT [e].[Id], [e].[Discriminator], [e].[Name], [e].[BaseId] -FROM [BaseInheritanceRelationshipEntity] AS [e] -WHERE [e].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -ORDER BY [e].[Id]", - // - @"SELECT [e#BaseCollectionOnBase].[Id], [e#BaseCollectionOnBase].[BaseParentId], [e#BaseCollectionOnBase].[Discriminator], [e#BaseCollectionOnBase].[Name], [e#BaseCollectionOnBase].[DerivedProperty] -FROM ([BaseCollectionOnBase] AS [e#BaseCollectionOnBase] -INNER JOIN ( - SELECT [e0].[Id] - FROM [BaseInheritanceRelationshipEntity] AS [e0] - WHERE [e0].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') -) AS [t] ON [e#BaseCollectionOnBase].[BaseParentId] = [t].[Id]) -WHERE [e#BaseCollectionOnBase].[Discriminator] IN ('DerivedCollectionOnBase', 'BaseCollectionOnBase') -ORDER BY [t].[Id], [e#BaseCollectionOnBase].[Id]", - // - @"SELECT [e#BaseCollectionOnBase#NestedCollection].[Id], [e#BaseCollectionOnBase#NestedCollection].[Discriminator], [e#BaseCollectionOnBase#NestedCollection].[Name], [e#BaseCollectionOnBase#NestedCollection].[ParentCollectionId], [e#BaseCollectionOnBase#NestedCollection].[ParentReferenceId] -FROM ([NestedCollectionBase] AS [e#BaseCollectionOnBase#NestedCollection] -INNER JOIN ( - SELECT DISTINCT [e#BaseCollectionOnBase0].[Id], [t0].[Id] AS [Id0] - FROM ([BaseCollectionOnBase] AS [e#BaseCollectionOnBase0] - INNER JOIN ( - SELECT [e1].[Id] - FROM [BaseInheritanceRelationshipEntity] AS [e1] - WHERE [e1].[Discriminator] IN ('DerivedInheritanceRelationshipEntity', 'BaseInheritanceRelationshipEntity') - ) AS [t0] ON [e#BaseCollectionOnBase0].[BaseParentId] = [t0].[Id]) - WHERE [e#BaseCollectionOnBase0].[Discriminator] IN ('DerivedCollectionOnBase', 'BaseCollectionOnBase') -) AS [t1] ON [e#BaseCollectionOnBase#NestedCollection].[ParentCollectionId] = [t1].[Id]) -WHERE [e#BaseCollectionOnBase#NestedCollection].[Discriminator] IN ('NestedCollectionDerived', 'NestedCollectionBase') -ORDER BY [t1].[Id0], [t1].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multiple_references_multi_level(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Product].[ProductID], [o#Product].[Discontinued], [o#Product].[ProductName], [o#Product].[UnitPrice], [o#Product].[UnitsInStock], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region] -FROM ((([Order Details] AS [o] -INNER JOIN [Products] AS [o#Product] ON [o].[ProductID] = [o#Product].[ProductID]) -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multiple_references_multi_level(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Product].[ProductID], [o#Product].[Discontinued], [o#Product].[ProductName], [o#Product].[UnitPrice], [o#Product].[UnitsInStock], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region] -FROM ((([Order Details] AS [o] -INNER JOIN [Products] AS [o#Product] ON [o].[ProductID] = [o#Product].[ProductID]) -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_skip_take_no_order_by(Boolean useString) : - AssertSql( - @"@__p_1='5' -@__p_0='10' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0", - // - @"@__p_1='5' -@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_1+@__p_0 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] - SKIP @__p_0 -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_skip_take_no_order_by(Boolean useString) : - AssertSql( - @"@__p_1='5' -@__p_0='10' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0", - // - @"@__p_1='5' -@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_1+@__p_0 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] - SKIP @__p_0 -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_additional_from_clause(Boolean useString) : - AssertSql( - @"@__p_0='5' - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -, [Customers] AS [c2] -ORDER BY [c2].[CustomerID]", - // - @"@__p_0='5' - -SELECT [c2#Orders].[OrderID], [c2#Orders].[CustomerID], [c2#Orders].[EmployeeID], [c2#Orders].[OrderDate] -FROM ([Orders] AS [c2#Orders] -INNER JOIN ( - SELECT DISTINCT [c20].[CustomerID] - FROM ( - SELECT TOP @__p_0 [c0].* - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] - ) AS [t0] - , [Customers] AS [c20] -) AS [t1] ON [c2#Orders].[CustomerID] = [t1].[CustomerID]) -ORDER BY [t1].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_additional_from_clause(Boolean useString) : - AssertSql( - @"@__p_0='5' - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -, [Customers] AS [c2] -ORDER BY [c2].[CustomerID]", - // - @"@__p_0='5' - -SELECT [c2#Orders].[OrderID], [c2#Orders].[CustomerID], [c2#Orders].[EmployeeID], [c2#Orders].[OrderDate] -FROM ([Orders] AS [c2#Orders] -INNER JOIN ( - SELECT DISTINCT [c20].[CustomerID] - FROM ( - SELECT TOP @__p_0 [c0].* - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] - ) AS [t0] - , [Customers] AS [c20] -) AS [t1] ON [c2#Orders].[CustomerID] = [t1].[CustomerID]) -ORDER BY [t1].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_alias_generation(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice] -FROM ([Order Details] AS [o#OrderDetails] -INNER JOIN ( - SELECT [o0].[OrderID] - FROM [Orders] AS [o0] -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID]) -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_alias_generation(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice] -FROM ([Order Details] AS [o#OrderDetails] -INNER JOIN ( - SELECT [o0].[OrderID] - FROM [Orders] AS [o0] -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID]) -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_alias_generation(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate] -FROM ([Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_alias_generation(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate] -FROM ([Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_join_clause_with_order_by_and_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID], [c0].[City] - FROM ([Customers] AS [c0] - INNER JOIN [Orders] AS [o0] ON [c0].[CustomerID] = [o0].[CustomerID]) - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_join_clause_with_order_by_and_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID], [c0].[City] - FROM ([Customers] AS [c0] - INNER JOIN [Orders] AS [o0] ON [c0].[CustomerID] = [o0].[CustomerID]) - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_dependent_already_tracked(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_dependent_already_tracked(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_join_clause_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID] - FROM ([Customers] AS [c0] - INNER JOIN [Orders] AS [o0] ON [c0].[CustomerID] = [o0].[CustomerID]) - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_join_clause_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID] - FROM ([Customers] AS [c0] - INNER JOIN [Orders] AS [o0] ON [c0].[CustomerID] = [o0].[CustomerID]) - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_then_include_collection(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID], [c#Orders].[OrderID]", - // - @"SELECT [c#Orders#OrderDetails].[OrderID], [c#Orders#OrderDetails].[ProductID], [c#Orders#OrderDetails].[Discount], [c#Orders#OrderDetails].[Quantity], [c#Orders#OrderDetails].[UnitPrice] -FROM ([Order Details] AS [c#Orders#OrderDetails] -INNER JOIN ( - SELECT DISTINCT [c#Orders0].[OrderID], [t0].[CustomerID] - FROM ([Orders] AS [c#Orders0] - INNER JOIN ( - SELECT [c1].[CustomerID] - FROM [Customers] AS [c1] - ) AS [t0] ON [c#Orders0].[CustomerID] = [t0].[CustomerID]) -) AS [t1] ON [c#Orders#OrderDetails].[OrderID] = [t1].[OrderID]) -ORDER BY [t1].[CustomerID], [t1].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_then_include_collection(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID], [c#Orders].[OrderID]", - // - @"SELECT [c#Orders#OrderDetails].[OrderID], [c#Orders#OrderDetails].[ProductID], [c#Orders#OrderDetails].[Discount], [c#Orders#OrderDetails].[Quantity], [c#Orders#OrderDetails].[UnitPrice] -FROM ([Order Details] AS [c#Orders#OrderDetails] -INNER JOIN ( - SELECT DISTINCT [c#Orders0].[OrderID], [t0].[CustomerID] - FROM ([Orders] AS [c#Orders0] - INNER JOIN ( - SELECT [c1].[CustomerID] - FROM [Customers] AS [c1] - ) AS [t0] ON [c#Orders0].[CustomerID] = [t0].[CustomerID]) -) AS [t1] ON [c#Orders#OrderDetails].[OrderID] = [t1].[OrderID]) -ORDER BY [t1].[CustomerID], [t1].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key_with_first_or_default(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CompanyName] DESC, [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID], [c0].[CompanyName] - FROM [Customers] AS [c0] - ORDER BY [c0].[CompanyName] DESC, [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CompanyName] DESC, [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key_with_first_or_default(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CompanyName] DESC, [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID], [c0].[CompanyName] - FROM [Customers] AS [c0] - ORDER BY [c0].[CompanyName] DESC, [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CompanyName] DESC, [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_with_filter_reordered(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_with_filter_reordered(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_take_no_order_by(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_take_no_order_by(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_filter_reordered(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_filter_reordered(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_and_collection(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice] -FROM ([Order Details] AS [o#OrderDetails] -INNER JOIN ( - SELECT DISTINCT [o0].[OrderID] - FROM ([Orders] AS [o0] - LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]) -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID]) -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_and_collection(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice] -FROM ([Order Details] AS [o#OrderDetails] -INNER JOIN ( - SELECT DISTINCT [o0].[OrderID] - FROM ([Orders] AS [o0] - LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]) -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID]) -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_when_groupby(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_when_groupby(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_last_no_orderby(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] DESC", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] DESC -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_last_no_orderby(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] DESC", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] DESC -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_principal_already_tracked_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_principal_already_tracked_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multiple_references(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Product].[ProductID], [o#Product].[Discontinued], [o#Product].[ProductName], [o#Product].[UnitPrice], [o#Product].[UnitsInStock], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate] -FROM (([Order Details] AS [o] -INNER JOIN [Products] AS [o#Product] ON [o].[ProductID] = [o#Product].[ProductID]) -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multiple_references(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Product].[ProductID], [o#Product].[Discontinued], [o#Product].[ProductName], [o#Product].[UnitPrice], [o#Product].[UnitsInStock], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate] -FROM (([Order Details] AS [o] -INNER JOIN [Products] AS [o#Product] ON [o].[ProductID] = [o#Product].[ProductID]) -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_list(Boolean useString) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -ORDER BY [p].[ProductID]", - // - @"SELECT [p#OrderDetails].[OrderID], [p#OrderDetails].[ProductID], [p#OrderDetails].[Discount], [p#OrderDetails].[Quantity], [p#OrderDetails].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate] -FROM (([Order Details] AS [p#OrderDetails] -INNER JOIN [Orders] AS [o#Order] ON [p#OrderDetails].[OrderID] = [o#Order].[OrderID]) -INNER JOIN ( - SELECT [p0].[ProductID] - FROM [Products] AS [p0] -) AS [t] ON [p#OrderDetails].[ProductID] = [t].[ProductID]) -ORDER BY [t].[ProductID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_list(Boolean useString) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -ORDER BY [p].[ProductID]", - // - @"SELECT [p#OrderDetails].[OrderID], [p#OrderDetails].[ProductID], [p#OrderDetails].[Discount], [p#OrderDetails].[Quantity], [p#OrderDetails].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate] -FROM (([Order Details] AS [p#OrderDetails] -INNER JOIN [Orders] AS [o#Order] ON [p#OrderDetails].[OrderID] = [o#Order].[OrderID]) -INNER JOIN ( - SELECT [p0].[ProductID] - FROM [Products] AS [p0] -) AS [t] ON [p#OrderDetails].[ProductID] = [t].[ProductID]) -ORDER BY [t].[ProductID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multiple_references_multi_level_reverse(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region], [o#Product].[ProductID], [o#Product].[Discontinued], [o#Product].[ProductName], [o#Product].[UnitPrice], [o#Product].[UnitsInStock] -FROM ((([Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID]) -INNER JOIN [Products] AS [o#Product] ON [o].[ProductID] = [o#Product].[ProductID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multiple_references_multi_level_reverse(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region], [o#Product].[ProductID], [o#Product].[Discontinued], [o#Product].[ProductName], [o#Product].[UnitPrice], [o#Product].[UnitsInStock] -FROM ((([Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID]) -INNER JOIN [Products] AS [o#Product] ON [o].[ProductID] = [o#Product].[ProductID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_conditional_order_by(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[CustomerID] LIKE 'S' + '%', - 1, - 2 -), [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], IIf( - [c0].[CustomerID] LIKE 'S' + '%', - 1, - 2 - ) AS [c] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[c], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_conditional_order_by(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[CustomerID] LIKE 'S' + '%', - 1, - 2 -), [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], IIf( - [c0].[CustomerID] LIKE 'S' + '%', - 1, - 2 - ) AS [c] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[c], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_references_multi_level(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region] -FROM (([Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_references_multi_level(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region] -FROM (([Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_key(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_key(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_as_no_tracking2(Boolean useString) : - AssertSql( - @"@__p_0='5' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@__p_0='5' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_as_no_tracking2(Boolean useString) : - AssertSql( - @"@__p_0='5' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@__p_0='5' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_principal_already_tracked(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_principal_already_tracked(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_with_filter(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_with_filter(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_with_skip(Boolean useString) : - AssertSql( - @"@__p_0='80' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName], [c].[CustomerID] - SKIP @__p_0", - // - @"@__p_0='80' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[ContactName] - FROM [Customers] AS [c0] - ORDER BY [c0].[ContactName], [c0].[CustomerID] - SKIP @__p_0 -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[ContactName], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_with_skip(Boolean useString) : - AssertSql( - @"@__p_0='80' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName], [c].[CustomerID] - SKIP @__p_0", - // - @"@__p_0='80' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[ContactName] - FROM [Customers] AS [c0] - ORDER BY [c0].[ContactName], [c0].[CustomerID] - SKIP @__p_0 -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[ContactName], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_additional_from_clause2(Boolean useString) : - AssertSql( - @"@__p_0='5' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -, [Customers] AS [c2]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_additional_from_clause2(Boolean useString) : - AssertSql( - @"@__p_0='5' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -, [Customers] AS [c2]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multi_level_collection_and_then_include_reference_predicate(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderID] = 10248 -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice], [o#Product].[ProductID], [o#Product].[Discontinued], [o#Product].[ProductName], [o#Product].[UnitPrice], [o#Product].[UnitsInStock] -FROM (([Order Details] AS [o#OrderDetails] -INNER JOIN [Products] AS [o#Product] ON [o#OrderDetails].[ProductID] = [o#Product].[ProductID]) -INNER JOIN ( - SELECT TOP 1 [o0].[OrderID] - FROM [Orders] AS [o0] - WHERE [o0].[OrderID] = 10248 - ORDER BY [o0].[OrderID] -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID]) -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multi_level_collection_and_then_include_reference_predicate(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderID] = 10248 -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice], [o#Product].[ProductID], [o#Product].[Discontinued], [o#Product].[ProductName], [o#Product].[UnitPrice], [o#Product].[UnitsInStock] -FROM (([Order Details] AS [o#OrderDetails] -INNER JOIN [Products] AS [o#Product] ON [o#OrderDetails].[ProductID] = [o#Product].[ProductID]) -INNER JOIN ( - SELECT TOP 1 [o0].[OrderID] - FROM [Orders] AS [o0] - WHERE [o0].[OrderID] = 10248 - ORDER BY [o0].[OrderID] -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID]) -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multi_level_reference_and_collection_predicate(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o].[OrderID] = 10248 -ORDER BY [o#Customer].[CustomerID]", - // - @"SELECT [o#Customer#Orders].[OrderID], [o#Customer#Orders].[CustomerID], [o#Customer#Orders].[EmployeeID], [o#Customer#Orders].[OrderDate] -FROM ([Orders] AS [o#Customer#Orders] -INNER JOIN ( - SELECT DISTINCT [t].* - FROM ( - SELECT TOP 1 [o#Customer0].[CustomerID] - FROM ([Orders] AS [o0] - LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]) - WHERE [o0].[OrderID] = 10248 - ORDER BY [o#Customer0].[CustomerID] - ) AS [t] -) AS [t0] ON [o#Customer#Orders].[CustomerID] = [t0].[CustomerID]) -ORDER BY [t0].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multi_level_reference_and_collection_predicate(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o].[OrderID] = 10248 -ORDER BY [o#Customer].[CustomerID]", - // - @"SELECT [o#Customer#Orders].[OrderID], [o#Customer#Orders].[CustomerID], [o#Customer#Orders].[EmployeeID], [o#Customer#Orders].[OrderDate] -FROM ([Orders] AS [o#Customer#Orders] -INNER JOIN ( - SELECT DISTINCT [t].* - FROM ( - SELECT TOP 1 [o#Customer0].[CustomerID] - FROM ([Orders] AS [o0] - LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]) - WHERE [o0].[OrderID] = 10248 - ORDER BY [o#Customer0].[CustomerID] - ) AS [t] -) AS [t0] ON [o#Customer#Orders].[CustomerID] = [t0].[CustomerID]) -ORDER BY [t0].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_references_and_collection_multi_level(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region] -FROM (([Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID]) -ORDER BY [o#Order#Customer].[CustomerID]", - // - @"SELECT [o#Order#Customer#Orders].[OrderID], [o#Order#Customer#Orders].[CustomerID], [o#Order#Customer#Orders].[EmployeeID], [o#Order#Customer#Orders].[OrderDate] -FROM ([Orders] AS [o#Order#Customer#Orders] -INNER JOIN ( - SELECT DISTINCT [o#Order#Customer0].[CustomerID] - FROM (([Order Details] AS [o0] - INNER JOIN [Orders] AS [o#Order0] ON [o0].[OrderID] = [o#Order0].[OrderID]) - LEFT JOIN [Customers] AS [o#Order#Customer0] ON [o#Order0].[CustomerID] = [o#Order#Customer0].[CustomerID]) -) AS [t] ON [o#Order#Customer#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_references_and_collection_multi_level(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region] -FROM (([Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID]) -ORDER BY [o#Order#Customer].[CustomerID]", - // - @"SELECT [o#Order#Customer#Orders].[OrderID], [o#Order#Customer#Orders].[CustomerID], [o#Order#Customer#Orders].[EmployeeID], [o#Order#Customer#Orders].[OrderDate] -FROM ([Orders] AS [o#Order#Customer#Orders] -INNER JOIN ( - SELECT DISTINCT [o#Order#Customer0].[CustomerID] - FROM (([Order Details] AS [o0] - INNER JOIN [Orders] AS [o#Order0] ON [o0].[OrderID] = [o#Order0].[OrderID]) - LEFT JOIN [Customers] AS [o#Order#Customer0] ON [o#Order0].[CustomerID] = [o#Order#Customer0].[CustomerID]) -) AS [t] ON [o#Order#Customer#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key_with_take(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactTitle], [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID], [c0].[ContactTitle] - FROM [Customers] AS [c0] - ORDER BY [c0].[ContactTitle], [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[ContactTitle], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key_with_take(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactTitle], [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID], [c0].[ContactTitle] - FROM [Customers] AS [c0] - ORDER BY [c0].[ContactTitle], [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[ContactTitle], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_last(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CompanyName] DESC, [c].[CustomerID] DESC", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID], [c0].[CompanyName] - FROM [Customers] AS [c0] - ORDER BY [c0].[CompanyName] DESC, [c0].[CustomerID] DESC -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CompanyName] DESC, [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_last(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CompanyName] DESC, [c].[CustomerID] DESC", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID], [c0].[CompanyName] - FROM [Customers] AS [c0] - ORDER BY [c0].[CompanyName] DESC, [c0].[CustomerID] DESC -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CompanyName] DESC, [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_with_take(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[City] DESC, [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - ORDER BY [c0].[City] DESC, [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[City] DESC, [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_with_take(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[City] DESC, [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - ORDER BY [c0].[City] DESC, [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[City] DESC, [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_where_skip_take_projection(Boolean useString) : - AssertSql( - @"@__p_1='2' -@__p_0='1' - -SELECT TOP @__p_1+@__p_0 [od#Order].[CustomerID] -FROM ([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -WHERE [od].[Quantity] = 10 -ORDER BY [od].[OrderID], [od].[ProductID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_where_skip_take_projection(Boolean useString) : - AssertSql( - @"@__p_1='2' -@__p_0='1' - -SELECT TOP @__p_1+@__p_0 [od#Order].[CustomerID] -FROM ([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -WHERE [od].[Quantity] = 10 -ORDER BY [od].[OrderID], [od].[ProductID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_skip_no_order_by(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] - SKIP @__p_0 -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_skip_no_order_by(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] - SKIP @__p_0 -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_additional_from_clause_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c1] -, [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID] - FROM [Customers] AS [c10] - , [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_additional_from_clause_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c1] -, [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID] - FROM [Customers] AS [c10] - , [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multiple_references_multi_level(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Product].[ProductID], [o#Product].[Discontinued], [o#Product].[ProductName], [o#Product].[UnitPrice], [o#Product].[UnitsInStock], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region] -FROM ((([Order Details] AS [o] -INNER JOIN [Products] AS [o#Product] ON [o].[ProductID] = [o#Product].[ProductID]) -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multiple_references_multi_level(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Product].[ProductID], [o#Product].[Discontinued], [o#Product].[ProductName], [o#Product].[UnitPrice], [o#Product].[UnitsInStock], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region] -FROM ((([Order Details] AS [o] -INNER JOIN [Products] AS [o#Product] ON [o].[ProductID] = [o#Product].[ProductID]) -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_skip_take_no_order_by(Boolean useString) : - AssertSql( - @"@__p_1='5' -@__p_0='10' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0", - // - @"@__p_1='5' -@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_1+@__p_0 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] - SKIP @__p_0 -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_skip_take_no_order_by(Boolean useString) : - AssertSql( - @"@__p_1='5' -@__p_0='10' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0", - // - @"@__p_1='5' -@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_1+@__p_0 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] - SKIP @__p_0 -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_additional_from_clause(Boolean useString) : - AssertSql( - @"@__p_0='5' - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -, [Customers] AS [c2] -ORDER BY [c2].[CustomerID]", - // - @"@__p_0='5' - -SELECT [c2#Orders].[OrderID], [c2#Orders].[CustomerID], [c2#Orders].[EmployeeID], [c2#Orders].[OrderDate] -FROM ([Orders] AS [c2#Orders] -INNER JOIN ( - SELECT DISTINCT [c20].[CustomerID] - FROM ( - SELECT TOP @__p_0 [c0].* - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] - ) AS [t0] - , [Customers] AS [c20] -) AS [t1] ON [c2#Orders].[CustomerID] = [t1].[CustomerID]) -ORDER BY [t1].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_additional_from_clause(Boolean useString) : - AssertSql( - @"@__p_0='5' - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -, [Customers] AS [c2] -ORDER BY [c2].[CustomerID]", - // - @"@__p_0='5' - -SELECT [c2#Orders].[OrderID], [c2#Orders].[CustomerID], [c2#Orders].[EmployeeID], [c2#Orders].[OrderDate] -FROM ([Orders] AS [c2#Orders] -INNER JOIN ( - SELECT DISTINCT [c20].[CustomerID] - FROM ( - SELECT TOP @__p_0 [c0].* - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] - ) AS [t0] - , [Customers] AS [c20] -) AS [t1] ON [c2#Orders].[CustomerID] = [t1].[CustomerID]) -ORDER BY [t1].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_alias_generation(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice] -FROM ([Order Details] AS [o#OrderDetails] -INNER JOIN ( - SELECT [o0].[OrderID] - FROM [Orders] AS [o0] -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID]) -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_alias_generation(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice] -FROM ([Order Details] AS [o#OrderDetails] -INNER JOIN ( - SELECT [o0].[OrderID] - FROM [Orders] AS [o0] -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID]) -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_alias_generation(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate] -FROM ([Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_alias_generation(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate] -FROM ([Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_join_clause_with_order_by_and_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID], [c0].[City] - FROM ([Customers] AS [c0] - INNER JOIN [Orders] AS [o0] ON [c0].[CustomerID] = [o0].[CustomerID]) - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_join_clause_with_order_by_and_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID], [c0].[City] - FROM ([Customers] AS [c0] - INNER JOIN [Orders] AS [o0] ON [c0].[CustomerID] = [o0].[CustomerID]) - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_dependent_already_tracked(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_dependent_already_tracked(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_join_clause_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID] - FROM ([Customers] AS [c0] - INNER JOIN [Orders] AS [o0] ON [c0].[CustomerID] = [o0].[CustomerID]) - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_join_clause_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID] - FROM ([Customers] AS [c0] - INNER JOIN [Orders] AS [o0] ON [c0].[CustomerID] = [o0].[CustomerID]) - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_then_include_collection(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID], [c#Orders].[OrderID]", - // - @"SELECT [c#Orders#OrderDetails].[OrderID], [c#Orders#OrderDetails].[ProductID], [c#Orders#OrderDetails].[Discount], [c#Orders#OrderDetails].[Quantity], [c#Orders#OrderDetails].[UnitPrice] -FROM ([Order Details] AS [c#Orders#OrderDetails] -INNER JOIN ( - SELECT DISTINCT [c#Orders0].[OrderID], [t0].[CustomerID] - FROM ([Orders] AS [c#Orders0] - INNER JOIN ( - SELECT [c1].[CustomerID] - FROM [Customers] AS [c1] - ) AS [t0] ON [c#Orders0].[CustomerID] = [t0].[CustomerID]) -) AS [t1] ON [c#Orders#OrderDetails].[OrderID] = [t1].[OrderID]) -ORDER BY [t1].[CustomerID], [t1].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_then_include_collection(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID], [c#Orders].[OrderID]", - // - @"SELECT [c#Orders#OrderDetails].[OrderID], [c#Orders#OrderDetails].[ProductID], [c#Orders#OrderDetails].[Discount], [c#Orders#OrderDetails].[Quantity], [c#Orders#OrderDetails].[UnitPrice] -FROM ([Order Details] AS [c#Orders#OrderDetails] -INNER JOIN ( - SELECT DISTINCT [c#Orders0].[OrderID], [t0].[CustomerID] - FROM ([Orders] AS [c#Orders0] - INNER JOIN ( - SELECT [c1].[CustomerID] - FROM [Customers] AS [c1] - ) AS [t0] ON [c#Orders0].[CustomerID] = [t0].[CustomerID]) -) AS [t1] ON [c#Orders#OrderDetails].[OrderID] = [t1].[OrderID]) -ORDER BY [t1].[CustomerID], [t1].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key_with_first_or_default(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CompanyName] DESC, [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID], [c0].[CompanyName] - FROM [Customers] AS [c0] - ORDER BY [c0].[CompanyName] DESC, [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CompanyName] DESC, [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key_with_first_or_default(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CompanyName] DESC, [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID], [c0].[CompanyName] - FROM [Customers] AS [c0] - ORDER BY [c0].[CompanyName] DESC, [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CompanyName] DESC, [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_with_filter_reordered(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_with_filter_reordered(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_take_no_order_by(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_take_no_order_by(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_filter_reordered(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_filter_reordered(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_and_collection(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice] -FROM ([Order Details] AS [o#OrderDetails] -INNER JOIN ( - SELECT DISTINCT [o0].[OrderID] - FROM ([Orders] AS [o0] - LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]) -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID]) -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_and_collection(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice] -FROM ([Order Details] AS [o#OrderDetails] -INNER JOIN ( - SELECT DISTINCT [o0].[OrderID] - FROM ([Orders] AS [o0] - LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]) -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID]) -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_when_groupby(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_when_groupby(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_last_no_orderby(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] DESC", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] DESC -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_last_no_orderby(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] DESC", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] DESC -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[City], [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_principal_already_tracked_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_principal_already_tracked_as_no_tracking(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multiple_references(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Product].[ProductID], [o#Product].[Discontinued], [o#Product].[ProductName], [o#Product].[UnitPrice], [o#Product].[UnitsInStock], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate] -FROM (([Order Details] AS [o] -INNER JOIN [Products] AS [o#Product] ON [o].[ProductID] = [o#Product].[ProductID]) -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multiple_references(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Product].[ProductID], [o#Product].[Discontinued], [o#Product].[ProductName], [o#Product].[UnitPrice], [o#Product].[UnitsInStock], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate] -FROM (([Order Details] AS [o] -INNER JOIN [Products] AS [o#Product] ON [o].[ProductID] = [o#Product].[ProductID]) -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_dependent_already_tracked(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_list(Boolean useString) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -ORDER BY [p].[ProductID]", - // - @"SELECT [p#OrderDetails].[OrderID], [p#OrderDetails].[ProductID], [p#OrderDetails].[Discount], [p#OrderDetails].[Quantity], [p#OrderDetails].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate] -FROM (([Order Details] AS [p#OrderDetails] -INNER JOIN [Orders] AS [o#Order] ON [p#OrderDetails].[OrderID] = [o#Order].[OrderID]) -INNER JOIN ( - SELECT [p0].[ProductID] - FROM [Products] AS [p0] -) AS [t] ON [p#OrderDetails].[ProductID] = [t].[ProductID]) -ORDER BY [t].[ProductID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_list(Boolean useString) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -ORDER BY [p].[ProductID]", - // - @"SELECT [p#OrderDetails].[OrderID], [p#OrderDetails].[ProductID], [p#OrderDetails].[Discount], [p#OrderDetails].[Quantity], [p#OrderDetails].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate] -FROM (([Order Details] AS [p#OrderDetails] -INNER JOIN [Orders] AS [o#Order] ON [p#OrderDetails].[OrderID] = [o#Order].[OrderID]) -INNER JOIN ( - SELECT [p0].[ProductID] - FROM [Products] AS [p0] -) AS [t] ON [p#OrderDetails].[ProductID] = [t].[ProductID]) -ORDER BY [t].[ProductID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multiple_references_multi_level_reverse(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region], [o#Product].[ProductID], [o#Product].[Discontinued], [o#Product].[ProductName], [o#Product].[UnitPrice], [o#Product].[UnitsInStock] -FROM ((([Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID]) -INNER JOIN [Products] AS [o#Product] ON [o].[ProductID] = [o#Product].[ProductID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multiple_references_multi_level_reverse(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region], [o#Product].[ProductID], [o#Product].[Discontinued], [o#Product].[ProductName], [o#Product].[UnitPrice], [o#Product].[UnitsInStock] -FROM ((([Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID]) -INNER JOIN [Products] AS [o#Product] ON [o].[ProductID] = [o#Product].[ProductID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_conditional_order_by(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[CustomerID] LIKE 'S' + '%', - 1, - 2 -), [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], IIf( - [c0].[CustomerID] LIKE 'S' + '%', - 1, - 2 - ) AS [c] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[c], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_conditional_order_by(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[CustomerID] LIKE 'S' + '%', - 1, - 2 -), [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], IIf( - [c0].[CustomerID] LIKE 'S' + '%', - 1, - 2 - ) AS [c] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[c], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_references_multi_level(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region] -FROM (([Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_references_multi_level(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region] -FROM (([Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_key(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_key(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_as_no_tracking2(Boolean useString) : - AssertSql( - @"@__p_0='5' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@__p_0='5' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_as_no_tracking2(Boolean useString) : - AssertSql( - @"@__p_0='5' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@__p_0='5' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_principal_already_tracked(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_principal_already_tracked(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_with_filter(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference_with_filter(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_with_skip(Boolean useString) : - AssertSql( - @"@__p_0='80' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName], [c].[CustomerID] - SKIP @__p_0", - // - @"@__p_0='80' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[ContactName] - FROM [Customers] AS [c0] - ORDER BY [c0].[ContactName], [c0].[CustomerID] - SKIP @__p_0 -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[ContactName], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_with_skip(Boolean useString) : - AssertSql( - @"@__p_0='80' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName], [c].[CustomerID] - SKIP @__p_0", - // - @"@__p_0='80' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID], [c0].[ContactName] - FROM [Customers] AS [c0] - ORDER BY [c0].[ContactName], [c0].[CustomerID] - SKIP @__p_0 -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[ContactName], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_additional_from_clause2(Boolean useString) : - AssertSql( - @"@__p_0='5' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -, [Customers] AS [c2]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_additional_from_clause2(Boolean useString) : - AssertSql( - @"@__p_0='5' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -, [Customers] AS [c2]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multi_level_collection_and_then_include_reference_predicate(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderID] = 10248 -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice], [o#Product].[ProductID], [o#Product].[Discontinued], [o#Product].[ProductName], [o#Product].[UnitPrice], [o#Product].[UnitsInStock] -FROM (([Order Details] AS [o#OrderDetails] -INNER JOIN [Products] AS [o#Product] ON [o#OrderDetails].[ProductID] = [o#Product].[ProductID]) -INNER JOIN ( - SELECT TOP 1 [o0].[OrderID] - FROM [Orders] AS [o0] - WHERE [o0].[OrderID] = 10248 - ORDER BY [o0].[OrderID] -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID]) -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multi_level_collection_and_then_include_reference_predicate(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderID] = 10248 -ORDER BY [o].[OrderID]", - // - @"SELECT [o#OrderDetails].[OrderID], [o#OrderDetails].[ProductID], [o#OrderDetails].[Discount], [o#OrderDetails].[Quantity], [o#OrderDetails].[UnitPrice], [o#Product].[ProductID], [o#Product].[Discontinued], [o#Product].[ProductName], [o#Product].[UnitPrice], [o#Product].[UnitsInStock] -FROM (([Order Details] AS [o#OrderDetails] -INNER JOIN [Products] AS [o#Product] ON [o#OrderDetails].[ProductID] = [o#Product].[ProductID]) -INNER JOIN ( - SELECT TOP 1 [o0].[OrderID] - FROM [Orders] AS [o0] - WHERE [o0].[OrderID] = 10248 - ORDER BY [o0].[OrderID] -) AS [t] ON [o#OrderDetails].[OrderID] = [t].[OrderID]) -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multi_level_reference_and_collection_predicate(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o].[OrderID] = 10248 -ORDER BY [o#Customer].[CustomerID]", - // - @"SELECT [o#Customer#Orders].[OrderID], [o#Customer#Orders].[CustomerID], [o#Customer#Orders].[EmployeeID], [o#Customer#Orders].[OrderDate] -FROM ([Orders] AS [o#Customer#Orders] -INNER JOIN ( - SELECT DISTINCT [t].* - FROM ( - SELECT TOP 1 [o#Customer0].[CustomerID] - FROM ([Orders] AS [o0] - LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]) - WHERE [o0].[OrderID] = 10248 - ORDER BY [o#Customer0].[CustomerID] - ) AS [t] -) AS [t0] ON [o#Customer#Orders].[CustomerID] = [t0].[CustomerID]) -ORDER BY [t0].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_multi_level_reference_and_collection_predicate(Boolean useString) : - AssertSql( - @"SELECT TOP 2 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o].[OrderID] = 10248 -ORDER BY [o#Customer].[CustomerID]", - // - @"SELECT [o#Customer#Orders].[OrderID], [o#Customer#Orders].[CustomerID], [o#Customer#Orders].[EmployeeID], [o#Customer#Orders].[OrderDate] -FROM ([Orders] AS [o#Customer#Orders] -INNER JOIN ( - SELECT DISTINCT [t].* - FROM ( - SELECT TOP 1 [o#Customer0].[CustomerID] - FROM ([Orders] AS [o0] - LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]) - WHERE [o0].[OrderID] = 10248 - ORDER BY [o#Customer0].[CustomerID] - ) AS [t] -) AS [t0] ON [o#Customer#Orders].[CustomerID] = [t0].[CustomerID]) -ORDER BY [t0].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_reference(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_references_and_collection_multi_level(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region] -FROM (([Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID]) -ORDER BY [o#Order#Customer].[CustomerID]", - // - @"SELECT [o#Order#Customer#Orders].[OrderID], [o#Order#Customer#Orders].[CustomerID], [o#Order#Customer#Orders].[EmployeeID], [o#Order#Customer#Orders].[OrderDate] -FROM ([Orders] AS [o#Order#Customer#Orders] -INNER JOIN ( - SELECT DISTINCT [o#Order#Customer0].[CustomerID] - FROM (([Order Details] AS [o0] - INNER JOIN [Orders] AS [o#Order0] ON [o0].[OrderID] = [o#Order0].[OrderID]) - LEFT JOIN [Customers] AS [o#Order#Customer0] ON [o#Order0].[CustomerID] = [o#Order#Customer0].[CustomerID]) -) AS [t] ON [o#Order#Customer#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_references_and_collection_multi_level(Boolean useString) : - AssertSql( - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice], [o#Order].[OrderID], [o#Order].[CustomerID], [o#Order].[EmployeeID], [o#Order].[OrderDate], [o#Order#Customer].[CustomerID], [o#Order#Customer].[Address], [o#Order#Customer].[City], [o#Order#Customer].[CompanyName], [o#Order#Customer].[ContactName], [o#Order#Customer].[ContactTitle], [o#Order#Customer].[Country], [o#Order#Customer].[Fax], [o#Order#Customer].[Phone], [o#Order#Customer].[PostalCode], [o#Order#Customer].[Region] -FROM (([Order Details] AS [o] -INNER JOIN [Orders] AS [o#Order] ON [o].[OrderID] = [o#Order].[OrderID]) -LEFT JOIN [Customers] AS [o#Order#Customer] ON [o#Order].[CustomerID] = [o#Order#Customer].[CustomerID]) -ORDER BY [o#Order#Customer].[CustomerID]", - // - @"SELECT [o#Order#Customer#Orders].[OrderID], [o#Order#Customer#Orders].[CustomerID], [o#Order#Customer#Orders].[EmployeeID], [o#Order#Customer#Orders].[OrderDate] -FROM ([Orders] AS [o#Order#Customer#Orders] -INNER JOIN ( - SELECT DISTINCT [o#Order#Customer0].[CustomerID] - FROM (([Order Details] AS [o0] - INNER JOIN [Orders] AS [o#Order0] ON [o0].[OrderID] = [o#Order0].[OrderID]) - LEFT JOIN [Customers] AS [o#Order#Customer0] ON [o#Order0].[CustomerID] = [o#Order#Customer0].[CustomerID]) -) AS [t] ON [o#Order#Customer#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key_with_take(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactTitle], [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID], [c0].[ContactTitle] - FROM [Customers] AS [c0] - ORDER BY [c0].[ContactTitle], [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[ContactTitle], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_order_by_non_key_with_take(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactTitle], [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID], [c0].[ContactTitle] - FROM [Customers] AS [c0] - ORDER BY [c0].[ContactTitle], [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[ContactTitle], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_last(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CompanyName] DESC, [c].[CustomerID] DESC", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID], [c0].[CompanyName] - FROM [Customers] AS [c0] - ORDER BY [c0].[CompanyName] DESC, [c0].[CustomerID] DESC -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CompanyName] DESC, [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_with_last(Boolean useString) : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CompanyName] DESC, [c].[CustomerID] DESC", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID], [c0].[CompanyName] - FROM [Customers] AS [c0] - ORDER BY [c0].[CompanyName] DESC, [c0].[CustomerID] DESC -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CompanyName] DESC, [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_with_take(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[City] DESC, [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - ORDER BY [c0].[City] DESC, [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[City] DESC, [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_with_take(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[City] DESC, [c].[CustomerID]", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP @__p_0 [c0].[CustomerID], [c0].[City] - FROM [Customers] AS [c0] - ORDER BY [c0].[City] DESC, [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[City] DESC, [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_where_skip_take_projection(Boolean useString) : - AssertSql( - @"@__p_1='2' -@__p_0='1' - -SELECT TOP @__p_1+@__p_0 [od#Order].[CustomerID] -FROM ([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -WHERE [od].[Quantity] = 10 -ORDER BY [od].[OrderID], [od].[ProductID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_where_skip_take_projection(Boolean useString) : - AssertSql( - @"@__p_1='2' -@__p_0='1' - -SELECT TOP @__p_1+@__p_0 [od#Order].[CustomerID] -FROM ([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -WHERE [od].[Quantity] = 10 -ORDER BY [od].[OrderID], [od].[ProductID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_skip_no_order_by(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] - SKIP @__p_0 -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_skip_no_order_by(Boolean useString) : - AssertSql( - @"@__p_0='10' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0", - // - @"@__p_0='10' - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] - SKIP @__p_0 -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_additional_from_clause_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c1] -, [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID] - FROM [Customers] AS [c10] - , [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.IncludeJetTest.Include_collection_on_additional_from_clause_with_filter(Boolean useString) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c1] -, [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT DISTINCT [c0].[CustomerID] - FROM [Customers] AS [c10] - , [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_select_nav_prop_first_or_default_then_nav_prop() : - AssertSql( - @"SELECT [e].[CustomerID] -FROM [Customers] AS [e] -WHERE [e].[CustomerID] LIKE 'A' + '%' -ORDER BY [e].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM ([Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID]) -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM ([Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID]) -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM ([Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID]) -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM ([Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID]) -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Navigation_fk_based_inside_contains() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] IN ('ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_where_nav_prop_all() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([c].[CustomerID] = [o].[CustomerID]) AND (([o].[CustomerID] <> 'ALFKI') OR [o].[CustomerID] IS NULL))"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Navigation_inside_contains_nested() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM (([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -LEFT JOIN [Customers] AS [od#Order#Customer] ON [od#Order].[CustomerID] = [od#Order#Customer].[CustomerID]) -WHERE [od#Order#Customer].[City] IN ('Novigrad', 'Seattle')"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.GroupBy_on_nav_prop() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -ORDER BY [o#Customer].[City]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Join_with_nav_projected_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM ([Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID])", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.GroupJoin_with_nav_projected_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM ([Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID])", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_where_nav_prop_all_client() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BERGS' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BLAUS' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BLONP' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BOLID' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Join_with_nav_in_orderby_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM ([Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID])", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Include_with_multiple_optional_navigations() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice], [od#Order].[OrderID], [od#Order].[CustomerID], [od#Order].[EmployeeID], [od#Order].[OrderDate], [od#Order#Customer].[CustomerID], [od#Order#Customer].[Address], [od#Order#Customer].[City], [od#Order#Customer].[CompanyName], [od#Order#Customer].[ContactName], [od#Order#Customer].[ContactTitle], [od#Order#Customer].[Country], [od#Order#Customer].[Fax], [od#Order#Customer].[Phone], [od#Order#Customer].[PostalCode], [od#Order#Customer].[Region] -FROM (([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -LEFT JOIN [Customers] AS [od#Order#Customer] ON [od#Order].[CustomerID] = [od#Order#Customer].[CustomerID]) -WHERE [od#Order#Customer].[City] = 'London'"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_select_nav_prop_single_or_default_then_nav_prop_nested() : - AssertSql( - @"SELECT 1 -FROM [Customers] AS [e] -WHERE [e].[CustomerID] LIKE 'A' + '%'", - // - @"SELECT TOP 2 [o#Customer0].[City] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]) -WHERE [o0].[OrderID] = 10643", - // - @"SELECT TOP 2 [o#Customer0].[City] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]) -WHERE [o0].[OrderID] = 10643", - // - @"SELECT TOP 2 [o#Customer0].[City] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]) -WHERE [o0].[OrderID] = 10643", - // - @"SELECT TOP 2 [o#Customer0].[City] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]) -WHERE [o0].[OrderID] = 10643"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Navigation_from_join_clause_inside_contains() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM (([Order Details] AS [od] -INNER JOIN [Orders] AS [o] ON [od].[OrderID] = [o].[OrderID]) -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o#Customer].[Country] IN ('USA', 'Redania')"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.GroupJoin_with_nav_in_predicate_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM ([Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID])", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.GroupJoin_with_nav_in_orderby_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM ([Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID])", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Let_group_by_nav_prop() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice], [od#Order].[CustomerID] AS [customer] -FROM ([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -ORDER BY [od#Order].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Join_with_nav_in_predicate_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM ([Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID])", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Navigation_inside_contains() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o#Customer].[City] IN ('Novigrad', 'Seattle')"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_select_nav_prop_first_or_default() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BERGS' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BLAUS' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BLONP' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BOLID' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_select_nav_prop_all_client() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='BERGS' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='BLAUS' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='BLONP' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]", - // - @"@_outer_CustomerID='BOLID' (Nullable = false) (Size = 5) - -SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0] -WHERE @_outer_CustomerID = [o0].[CustomerID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Where_subquery_on_navigation_client_eval() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [o4].[OrderID] -FROM [Orders] AS [o4]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o2].[OrderID] -FROM [Orders] AS [o2] -WHERE @_outer_CustomerID = [o2].[CustomerID]", - // - @"SELECT [o4].[OrderID] -FROM [Orders] AS [o4]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o2].[OrderID] -FROM [Orders] AS [o2] -WHERE @_outer_CustomerID = [o2].[CustomerID]", - // - @"SELECT [o4].[OrderID] -FROM [Orders] AS [o4]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o2].[OrderID] -FROM [Orders] AS [o2] -WHERE @_outer_CustomerID = [o2].[CustomerID]", - // - @"SELECT [o4].[OrderID] -FROM [Orders] AS [o4]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [o2].[OrderID] -FROM [Orders] AS [o2] -WHERE @_outer_CustomerID = [o2].[CustomerID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Navigations() : - AssertSql( - @"SELECT [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_select_nav_prop_first_or_default_then_nav_prop() : - AssertSql( - @"SELECT [e].[CustomerID] -FROM [Customers] AS [e] -WHERE [e].[CustomerID] LIKE 'A' + '%' -ORDER BY [e].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM ([Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID]) -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM ([Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID]) -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM ([Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID]) -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e#Customer].[CustomerID], [e#Customer].[Address], [e#Customer].[City], [e#Customer].[CompanyName], [e#Customer].[ContactName], [e#Customer].[ContactTitle], [e#Customer].[Country], [e#Customer].[Fax], [e#Customer].[Phone], [e#Customer].[PostalCode], [e#Customer].[Region] -FROM ([Orders] AS [e0] -LEFT JOIN [Customers] AS [e#Customer] ON [e0].[CustomerID] = [e#Customer].[CustomerID]) -WHERE [e0].[OrderID] IN (10643, 10692, 10702, 10835, 10952, 11011) AND (@_outer_CustomerID = [e0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Equals_Navigation() : - AssertSql( - @"SELECT [o1].[OrderID], [o1].[CustomerID], [o1].[EmployeeID], [o1].[OrderDate], [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM [Orders] AS [o1] -, [Orders] AS [o2] -WHERE ([o1].[CustomerID] = [o2].[CustomerID]) OR ([o1].[CustomerID] IS NULL AND [o2].[CustomerID] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Navigation_inside_contains_nested() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM (([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -LEFT JOIN [Customers] AS [od#Order#Customer] ON [od#Order].[CustomerID] = [od#Order#Customer].[CustomerID]) -WHERE [od#Order#Customer].[City] IN ('Novigrad', 'Seattle')"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.GroupBy_on_nav_prop() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -ORDER BY [o#Customer].[City]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Join_with_nav_projected_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM ([Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID])", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.GroupJoin_with_nav_projected_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM ([Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID])", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_collection_navigation_simple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] LIKE 'A' + '%' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_where_nav_prop_all_client() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BERGS' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BLAUS' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BLONP' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BOLID' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Navigations_Where_Navigations() : - AssertSql( - @"SELECT [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE ([o#Customer].[City] = 'Seattle') AND (([o#Customer].[Phone] <> '555 555 5555') OR [o#Customer].[Phone] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Singleton_Navigation_With_Member_Access() : - AssertSql( - @"SELECT [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City] AS [B], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE ([o#Customer].[City] = 'Seattle') AND (([o#Customer].[Phone] <> '555 555 5555') OR [o#Customer].[Phone] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Navigation() : - AssertSql( - @"SELECT [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Join_with_nav_in_orderby_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM ([Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID])", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Contains() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE Instr(1, [o#Customer].[City], 'Sea', 0) > 0"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o#Customer].[City] = 'Seattle'"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Include_with_multiple_optional_navigations() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice], [od#Order].[OrderID], [od#Order].[CustomerID], [od#Order].[EmployeeID], [od#Order].[OrderDate], [od#Order#Customer].[CustomerID], [od#Order#Customer].[Address], [od#Order#Customer].[City], [od#Order#Customer].[CompanyName], [od#Order#Customer].[ContactName], [od#Order#Customer].[ContactTitle], [od#Order#Customer].[Country], [od#Order#Customer].[Fax], [od#Order#Customer].[Phone], [od#Order#Customer].[PostalCode], [od#Order#Customer].[Region] -FROM (([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -LEFT JOIN [Customers] AS [od#Order#Customer] ON [od#Order].[CustomerID] = [od#Order#Customer].[CustomerID]) -WHERE [od#Order#Customer].[City] = 'London'"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Where_nav_prop_group_by() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM ([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -WHERE [od#Order].[CustomerID] = 'ALFKI' -ORDER BY [od].[Quantity]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_select_nav_prop_single_or_default_then_nav_prop_nested() : - AssertSql( - @"SELECT 1 -FROM [Customers] AS [e] -WHERE [e].[CustomerID] LIKE 'A' + '%'", - // - @"SELECT TOP 2 [o#Customer0].[City] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]) -WHERE [o0].[OrderID] = 10643", - // - @"SELECT TOP 2 [o#Customer0].[City] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]) -WHERE [o0].[OrderID] = 10643", - // - @"SELECT TOP 2 [o#Customer0].[City] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]) -WHERE [o0].[OrderID] = 10643", - // - @"SELECT TOP 2 [o#Customer0].[City] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID]) -WHERE [o0].[OrderID] = 10643"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_collection_FirstOrDefault_project_entity() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Singleton_Navigation_With_Member_Access() : - AssertSql( - @"SELECT [o#Customer].[City] AS [B] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE ([o#Customer].[City] = 'Seattle') AND (([o#Customer].[Phone] <> '555 555 5555') OR [o#Customer].[Phone] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Navigation_from_join_clause_inside_contains() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM (([Order Details] AS [od] -INNER JOIN [Orders] AS [o] ON [od].[OrderID] = [o].[OrderID]) -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o#Customer].[Country] IN ('USA', 'Redania')"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.GroupJoin_with_nav_in_predicate_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM ([Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID])", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Project_single_entity_value_subquery_works() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.GroupJoin_with_nav_in_orderby_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM ([Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID])", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Take_Select_Navigation() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Let_group_by_nav_prop() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice], [od#Order].[CustomerID] AS [customer] -FROM ([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -ORDER BY [od#Order].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Included() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o#Customer].[City] = 'Seattle'"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Join_with_nav_in_predicate_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM ([Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID])", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Client() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o#Customer].[CustomerID], [o#Customer].[Address], [o#Customer].[City], [o#Customer].[CompanyName], [o#Customer].[ContactName], [o#Customer].[ContactTitle], [o#Customer].[Country], [o#Customer].[Fax], [o#Customer].[Phone], [o#Customer].[PostalCode], [o#Customer].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Skip_Select_Navigation() : - AssertSql( - @"@__p_0='20' - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0", - // - @"@_outer_CustomerID='FAMIA' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FISSA' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FOLIG' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FOLKO' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FRANK' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FRANR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FRANS' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FURIB' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Navigation_inside_contains() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o#Customer].[City] IN ('Novigrad', 'Seattle')"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_collection_FirstOrDefault_project_anonymous_type() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[CustomerID], [o].[OrderID] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[CustomerID], [o].[OrderID] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Multiple_Access() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE ([o#Customer].[City] = 'Seattle') AND (([o#Customer].[Phone] <> '555 555 5555') OR [o#Customer].[Phone] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_select_nav_prop_first_or_default() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BERGS' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BLAUS' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BLONP' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BOLID' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Deep() : - AssertSql( - @"@__p_0='1' - -SELECT TOP @__p_0 [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM (([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -LEFT JOIN [Customers] AS [od#Order#Customer] ON [od#Order].[CustomerID] = [od#Order#Customer].[CustomerID]) -WHERE [od#Order#Customer].[City] = 'Seattle' -ORDER BY [od].[OrderID], [od].[ProductID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_Where_Navigation_Null_Deep() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM ([Employees] AS [e] -LEFT JOIN [Employees] AS [e#Manager] ON [e].[ReportsTo] = [e#Manager].[EmployeeID]) -WHERE [e#Manager].[ReportsTo] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Join_with_nav_projected_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM ([Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID])", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Join_with_nav_in_orderby_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM ([Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID])", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_collection_FirstOrDefault_project_entity() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.GroupJoin_with_nav_in_predicate_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM ([Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID])", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Take_Select_Navigation() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Join_with_nav_in_predicate_in_subquery_when_client_eval() : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM ([Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID])", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Skip_Select_Navigation() : - AssertSql( - @"@__p_0='20' - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0", - // - @"@_outer_CustomerID='FAMIA' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FISSA' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FOLIG' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FOLKO' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FRANK' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FRANR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FRANS' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FURIB' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_collection_FirstOrDefault_project_anonymous_type() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[CustomerID], [o].[OrderID] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[CustomerID], [o].[OrderID] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_select_nav_prop_first_or_default() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BERGS' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BLAUS' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BLONP' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BOLID' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_collection_FirstOrDefault_project_entity() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_collection_FirstOrDefault_project_anonymous_type() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[CustomerID], [o].[OrderID] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[CustomerID], [o].[OrderID] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_collection_FirstOrDefault_project_entity() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Take_Select_Navigation() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Skip_Select_Navigation() : - AssertSql( - @"@__p_0='20' - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0", - // - @"@_outer_CustomerID='FAMIA' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FISSA' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FOLIG' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FOLKO' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FRANK' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FRANR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FRANS' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FURIB' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Select_collection_FirstOrDefault_project_anonymous_type() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[CustomerID], [o].[OrderID] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[CustomerID], [o].[OrderID] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Collection_select_nav_prop_first_or_default() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BERGS' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BLAUS' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BLONP' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]", - // - @"@_outer_CustomerID='BOLID' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Skip_Select_Navigation() : - AssertSql( - @"@__p_0='20' - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0", - // - @"@_outer_CustomerID='FAMIA' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FISSA' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FOLIG' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FOLKO' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FRANK' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FRANR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FRANS' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='FURIB' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Compiled_query() : - AssertSql( - @"@__customerID='BERGS' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__customerID", - // - @"@__customerID='BLAUS' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__customerID"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Contains_with_local_array_closure_with_multiple_nulls() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableStringA] IN ('Foo') OR [e].[NullableStringA] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Contains_with_local_array_closure_with_null() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableStringA] IN ('Foo') OR [e].[NullableStringA] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Include_query_opt_out() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%') AND (([c].[City] <> 'London') OR [c].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%')"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_kiwi() : - AssertSql( - @"SELECT [k].[Species], [k].[CountryId], [k].[Discriminator], [k].[Name], [k].[EagleId], [k].[IsFlightless], [k].[FoundOn] -FROM [Animal] AS [k] -WHERE ([k].[Discriminator] = 'Kiwi') AND ([k].[CountryId] = 1)"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_bird_first() : - AssertSql( - @"SELECT TOP 1 [b].[Species], [b].[CountryId], [b].[Discriminator], [b].[Name], [b].[EagleId], [b].[IsFlightless], [b].[Group], [b].[FoundOn] -FROM [Animal] AS [b] -WHERE [b].[Discriminator] IN ('Kiwi', 'Eagle') AND ([b].[CountryId] = 1) -ORDER BY [b].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_is_kiwi_in_projection() : - AssertSql( - @"SELECT IIf( - [a].[Discriminator] = 'Kiwi', - True, - False -) -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[CountryId] = 1)"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_bird_with_projection() : - AssertSql( - @"SELECT [b].[EagleId] -FROM [Animal] AS [b] -WHERE [b].[Discriminator] IN ('Kiwi', 'Eagle') AND ([b].[CountryId] = 1)"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_is_kiwi() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE ([a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[CountryId] = 1)) AND ([a].[Discriminator] = 'Kiwi')"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_bird_predicate() : - AssertSql( - @"SELECT [b].[Species], [b].[CountryId], [b].[Discriminator], [b].[Name], [b].[EagleId], [b].[IsFlightless], [b].[Group], [b].[FoundOn] -FROM [Animal] AS [b] -WHERE ([b].[Discriminator] IN ('Kiwi', 'Eagle') AND ([b].[CountryId] = 1)) AND ([b].[CountryId] = 1) -ORDER BY [b].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_animal() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[CountryId] = 1) -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_bird() : - AssertSql( - @"SELECT [b].[Species], [b].[CountryId], [b].[Discriminator], [b].[Name], [b].[EagleId], [b].[IsFlightless], [b].[Group], [b].[FoundOn] -FROM [Animal] AS [b] -WHERE [b].[Discriminator] IN ('Kiwi', 'Eagle') AND ([b].[CountryId] = 1) -ORDER BY [b].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_is_kiwi_with_other_predicate() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE ([a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[CountryId] = 1)) AND (([a].[Discriminator] = 'Kiwi') AND ([a].[CountryId] = 1))"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_DTO_with_member_init_distinct_in_subquery_used_in_projection_translated_to_server() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [t].[Id], [t].[Count] -FROM [Customers] AS [c] -, ( - SELECT DISTINCT [o].[CustomerID] AS [Id], [o].[OrderID] AS [Count] - FROM [Orders] AS [o] - WHERE [o].[OrderID] < 10300 -) AS [t] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_date_add_year_constant_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('yyyy', IIf(IsNull([o].[OrderDate]), NULL, DateAdd('yyyy', -1, [o].[OrderDate]))) = 1997"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_multi_level5() : - AssertSql( - @"SELECT ( - SELECT TOP 1 ( - SELECT TOP 1 [od].[ProductID] - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] <> ( - SELECT COUNT(*) - FROM [Orders] AS [o0] - WHERE [c].[CustomerID] = [o0].[CustomerID] - )) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [Order] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_count_using_DTO() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], ( - SELECT COUNT(*) - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] -) AS [Count] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_complex_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [A] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[A] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_multi_level3() : - AssertSql( - @"SELECT ( - SELECT TOP 1 [o].[OrderDate] - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [OrderDates] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_member_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%') AND (([c].[City] <> 'London') OR [c].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_member_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_expression_date_add_year() : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderDate]), NULL, DateAdd('yyyy', 1, [o].[OrderDate])) AS [OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_multi_level4() : - AssertSql( - @"SELECT ( - SELECT TOP 1 ( - SELECT COUNT(*) - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] > 10) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [Order] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_complex_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_bird_first() : - AssertSql( - @"SELECT TOP 1 [b].[Species], [b].[CountryId], [b].[Discriminator], [b].[Name], [b].[EagleId], [b].[IsFlightless], [b].[Group], [b].[FoundOn] -FROM [Animal] AS [b] -WHERE [b].[Discriminator] IN ('Kiwi', 'Eagle') AND ([b].[CountryId] = 1) -ORDER BY [b].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_is_kiwi_in_projection() : - AssertSql( - @"SELECT IIf( - [a].[Discriminator] = 'Kiwi', - True, - False -) -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[CountryId] = 1)"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Compiled_query() : - AssertSql( - @"@__customerID='BERGS' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__customerID", - // - @"@__customerID='BLAUS' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__customerID"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Include_query_opt_out() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Include_query_opt_out() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Count_query() : - AssertSql( - @"@__TenantPrefix_0='B' (Nullable = false) (Size = 1) - -SELECT COUNT(*) -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Count_query() : - AssertSql( - @"@__TenantPrefix_0='B' (Nullable = false) (Size = 1) - -SELECT COUNT(*) -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Materialized_query() : - AssertSql( - @"@__TenantPrefix_0='B' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Navs_query() : - AssertSql( - @"@___quantity_1='50' -@__TenantPrefix_0='B' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM (([Customers] AS [c] -INNER JOIN [Orders] AS [c#Orders] ON [c].[CustomerID] = [c#Orders].[CustomerID]) -INNER JOIN ( - SELECT [o].* - FROM [Order Details] AS [o] - WHERE [o].[Quantity] > @___quantity_1 -) AS [t] ON [c#Orders].[OrderID] = [t].[OrderID]) -WHERE [c].[CompanyName] LIKE @__TenantPrefix_0 + '%' AND ([t].[Discount] < 10)"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Projection_query() : - AssertSql( - @"@__TenantPrefix_0='B' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Included_many_to_one_query() : - AssertSql( - @"@__TenantPrefix_0='B' (Nullable = false) (Size = 1) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ([Orders] AS [o] -LEFT JOIN ( - SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - WHERE [c].[CompanyName] LIKE @__TenantPrefix_0 + '%' -) AS [t] ON [o].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Materialized_query_parameter_new_context() : - AssertSql( - @"@__TenantPrefix_0='B' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__TenantPrefix_0 + '%'", - // - @"@__TenantPrefix_0='T' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Materialized_query_parameter() : - AssertSql( - @"@__TenantPrefix_0='F' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Include_query_opt_out() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Projection_query_parameter() : - AssertSql( - @"@__TenantPrefix_0='F' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Include_query() : - AssertSql( - @"@__TenantPrefix_0='B' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__TenantPrefix_0 + '%' -ORDER BY [c].[CustomerID]", - // - @"@__TenantPrefix_1='B' (Nullable = false) (Size = 1) - -SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CompanyName] LIKE @__TenantPrefix_1 + '%' -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Contains_with_local_array_closure_with_multiple_nulls() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableStringA] IN ('Foo') OR [e].[NullableStringA] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Contains_with_local_array_closure_with_null() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableStringA] IN ('Foo') OR [e].[NullableStringA] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_bool_with_bool_not_equal() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] <> [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[BoolA] <> [e].[NullableBoolB]) OR [e].[NullableBoolB] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] <> [e].[BoolB]) OR [e].[NullableBoolA] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE (([e].[NullableBoolA] <> [e].[NullableBoolB]) OR ([e].[NullableBoolA] IS NULL OR [e].[NullableBoolB] IS NULL)) AND ([e].[NullableBoolA] IS NOT NULL OR [e].[NullableBoolB] IS NOT NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Where_not_equal_using_relational_null_semantics() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableBoolA] <> [e].[NullableBoolB]"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Switching_null_semantics_produces_different_cache_entry() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] = [e].[NullableBoolB]) OR ([e].[NullableBoolA] IS NULL AND [e].[NullableBoolB] IS NULL)", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableBoolA] = [e].[NullableBoolB]"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Contains_with_local_array_closure_with_multiple_nulls() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableStringA] IN ('Foo') OR [e].[NullableStringA] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Where_equal_using_relational_null_semantics_with_parameter() : - AssertSql( - @"@__prm_0='' (Nullable = false) (DbType = String) - -SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableBoolA] = @__prm_0"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_equals_method() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] = [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] = [e].[NullableBoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableBoolA] = [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] = [e].[NullableBoolB]) OR ([e].[NullableBoolA] IS NULL AND [e].[NullableBoolB] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_bool_with_negated_bool_equal_negated() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] = [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[BoolA] = [e].[NullableBoolB]) OR [e].[NullableBoolB] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] = [e].[BoolB]) OR [e].[NullableBoolA] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE (([e].[NullableBoolA] = [e].[NullableBoolB]) OR ([e].[NullableBoolA] IS NULL OR [e].[NullableBoolB] IS NULL)) AND ([e].[NullableBoolA] IS NOT NULL OR [e].[NullableBoolB] IS NOT NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_bool_with_negated_bool_not_equal() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] = [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[BoolA] = [e].[NullableBoolB]) OR [e].[NullableBoolB] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] = [e].[BoolB]) OR [e].[NullableBoolA] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE (([e].[NullableBoolA] = [e].[NullableBoolB]) OR ([e].[NullableBoolA] IS NULL OR [e].[NullableBoolB] IS NULL)) AND ([e].[NullableBoolA] IS NOT NULL OR [e].[NullableBoolB] IS NOT NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_negated_bool_with_negated_bool_equal_negated() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] <> [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[BoolA] <> [e].[NullableBoolB]) OR [e].[NullableBoolB] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] <> [e].[BoolB]) OR [e].[NullableBoolA] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE (([e].[NullableBoolA] <> [e].[NullableBoolB]) OR ([e].[NullableBoolA] IS NULL OR [e].[NullableBoolB] IS NULL)) AND ([e].[NullableBoolA] IS NOT NULL OR [e].[NullableBoolB] IS NOT NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_negated_bool_with_bool_equal() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] <> [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[BoolA] <> [e].[NullableBoolB]) AND [e].[NullableBoolB] IS NOT NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] <> [e].[BoolB]) AND [e].[NullableBoolA] IS NOT NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE (([e].[NullableBoolA] <> [e].[NullableBoolB]) AND ([e].[NullableBoolA] IS NOT NULL AND [e].[NullableBoolB] IS NOT NULL)) OR ([e].[NullableBoolA] IS NULL AND [e].[NullableBoolB] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_negated_bool_with_negated_bool_not_equal_negated() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] = [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[BoolA] = [e].[NullableBoolB]) AND [e].[NullableBoolB] IS NOT NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] = [e].[BoolB]) AND [e].[NullableBoolA] IS NOT NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE (([e].[NullableBoolA] = [e].[NullableBoolB]) AND ([e].[NullableBoolA] IS NOT NULL AND [e].[NullableBoolB] IS NOT NULL)) OR ([e].[NullableBoolA] IS NULL AND [e].[NullableBoolB] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Where_multiple_ors_with_null() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableStringA] IN ('Foo', 'Blah') OR [e].[NullableStringA] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Where_not_equal_using_relational_null_semantics_complex_with_parameter() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableBoolA] <> [e].[NullableBoolB]"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_nullable_with_non_null_parameter_not_equal() : - AssertSql( - @"@__prm_0='Foo' (Nullable = false) (Size = 3) - -SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableStringA] = @__prm_0"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Where_not_equal_using_relational_null_semantics_with_parameter() : - AssertSql( - @"@__prm_0='' (Nullable = false) (DbType = String) - -SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableBoolA] <> @__prm_0"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Where_multiple_ands_with_nullable_parameter_and_constant() : - AssertSql( - @"@__prm3_2='Blah' (Nullable = false) (Size = 4) - -SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableStringA] NOT IN ('Foo', @__prm3_2) AND [e].[NullableStringA] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_bool_with_negated_bool_equal() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] <> [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[BoolA] <> [e].[NullableBoolB]) AND [e].[NullableBoolB] IS NOT NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] <> [e].[BoolB]) AND [e].[NullableBoolA] IS NOT NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE (([e].[NullableBoolA] <> [e].[NullableBoolB]) AND ([e].[NullableBoolA] IS NOT NULL AND [e].[NullableBoolB] IS NOT NULL)) OR ([e].[NullableBoolA] IS NULL AND [e].[NullableBoolB] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_equals_method_negated() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] <> [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[BoolA] <> [e].[NullableBoolB]) OR [e].[NullableBoolB] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] <> [e].[BoolB]) OR [e].[NullableBoolA] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE (([e].[NullableBoolA] <> [e].[NullableBoolB]) OR ([e].[NullableBoolA] IS NULL OR [e].[NullableBoolB] IS NULL)) AND ([e].[NullableBoolA] IS NOT NULL OR [e].[NullableBoolB] IS NOT NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Where_multiple_ands_with_nullable_parameter_and_constant_not_optimized() : - AssertSql( - @"@__prm3_2='Blah' (Nullable = false) (Size = 4) - -SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ((([e].[NullableStringB] IS NOT NULL AND (([e].[NullableStringA] <> 'Foo') OR [e].[NullableStringA] IS NULL)) AND [e].[NullableStringA] IS NOT NULL) AND [e].[NullableStringA] IS NOT NULL) AND (([e].[NullableStringA] <> @__prm3_2) OR [e].[NullableStringA] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Where_multiple_ors_with_nullable_parameter() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableStringA] IN ('Foo') OR [e].[NullableStringA] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_negated_bool_with_negated_bool_equal() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] = [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[BoolA] = [e].[NullableBoolB]) AND [e].[NullableBoolB] IS NOT NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] = [e].[BoolB]) AND [e].[NullableBoolA] IS NOT NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE (([e].[NullableBoolA] = [e].[NullableBoolB]) AND ([e].[NullableBoolA] IS NOT NULL AND [e].[NullableBoolB] IS NOT NULL)) OR ([e].[NullableBoolA] IS NULL AND [e].[NullableBoolB] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_bool_with_bool_not_equal_negated() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] = [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] = [e].[NullableBoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableBoolA] = [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] = [e].[NullableBoolB]) OR ([e].[NullableBoolA] IS NULL AND [e].[NullableBoolB] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Where_multiple_ands_with_null() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableStringA] NOT IN ('Foo', 'Blah') AND [e].[NullableStringA] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Contains_with_local_array_closure_false_with_null() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableStringA] NOT IN ('Foo') AND [e].[NullableStringA] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Where_equal_using_relational_null_semantics() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableBoolA] = [e].[NullableBoolB]"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_bool_with_bool_equal_negated() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] <> [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[BoolA] <> [e].[NullableBoolB]) OR [e].[NullableBoolB] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] <> [e].[BoolB]) OR [e].[NullableBoolA] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE (([e].[NullableBoolA] <> [e].[NullableBoolB]) OR ([e].[NullableBoolA] IS NULL OR [e].[NullableBoolB] IS NULL)) AND ([e].[NullableBoolA] IS NOT NULL OR [e].[NullableBoolB] IS NOT NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_negated_bool_with_negated_bool_not_equal() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] <> [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[BoolA] <> [e].[NullableBoolB]) OR [e].[NullableBoolB] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] <> [e].[BoolB]) OR [e].[NullableBoolA] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE (([e].[NullableBoolA] <> [e].[NullableBoolB]) OR ([e].[NullableBoolA] IS NULL OR [e].[NullableBoolB] IS NULL)) AND ([e].[NullableBoolA] IS NOT NULL OR [e].[NullableBoolB] IS NOT NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_bool_with_bool_equal() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] = [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] = [e].[NullableBoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableBoolA] = [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] = [e].[NullableBoolB]) OR ([e].[NullableBoolA] IS NULL AND [e].[NullableBoolB] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_bool_with_negated_bool_not_equal_negated() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] <> [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[BoolA] <> [e].[NullableBoolB]) AND [e].[NullableBoolB] IS NOT NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] <> [e].[BoolB]) AND [e].[NullableBoolA] IS NOT NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE (([e].[NullableBoolA] <> [e].[NullableBoolB]) AND ([e].[NullableBoolA] IS NOT NULL AND [e].[NullableBoolB] IS NOT NULL)) OR ([e].[NullableBoolA] IS NULL AND [e].[NullableBoolB] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Where_not_equal_nullable_with_null_value_parameter() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableStringA] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_negated_bool_with_bool_equal_negated() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] = [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[BoolA] = [e].[NullableBoolB]) OR [e].[NullableBoolB] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] = [e].[BoolB]) OR [e].[NullableBoolA] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE (([e].[NullableBoolA] = [e].[NullableBoolB]) OR ([e].[NullableBoolA] IS NULL OR [e].[NullableBoolB] IS NULL)) AND ([e].[NullableBoolA] IS NOT NULL OR [e].[NullableBoolB] IS NOT NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Where_equal_nullable_with_null_value_parameter() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableStringA] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_negated_bool_with_bool_not_equal() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] = [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[BoolA] = [e].[NullableBoolB]) OR [e].[NullableBoolB] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] = [e].[BoolB]) OR [e].[NullableBoolA] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE (([e].[NullableBoolA] = [e].[NullableBoolB]) OR ([e].[NullableBoolA] IS NULL OR [e].[NullableBoolB] IS NULL)) AND ([e].[NullableBoolA] IS NOT NULL OR [e].[NullableBoolB] IS NOT NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_nullable_with_null_parameter_equal() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableStringA] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Where_equal_using_relational_null_semantics_complex_with_parameter() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableBoolA] = [e].[NullableBoolB]"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Contains_with_local_array_closure_with_null() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableStringA] IN ('Foo') OR [e].[NullableStringA] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_negated_bool_with_bool_not_equal_negated() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] <> [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[BoolA] <> [e].[NullableBoolB]) AND [e].[NullableBoolB] IS NOT NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] <> [e].[BoolB]) AND [e].[NullableBoolA] IS NOT NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE (([e].[NullableBoolA] <> [e].[NullableBoolB]) AND ([e].[NullableBoolA] IS NOT NULL AND [e].[NullableBoolB] IS NOT NULL)) OR ([e].[NullableBoolA] IS NULL AND [e].[NullableBoolB] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_bool_with_bool_not_equal() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] <> [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[BoolA] <> [e].[NullableBoolB]) OR [e].[NullableBoolB] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] <> [e].[BoolB]) OR [e].[NullableBoolA] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE (([e].[NullableBoolA] <> [e].[NullableBoolB]) OR ([e].[NullableBoolA] IS NULL OR [e].[NullableBoolB] IS NULL)) AND ([e].[NullableBoolA] IS NOT NULL OR [e].[NullableBoolB] IS NOT NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Where_not_equal_using_relational_null_semantics() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableBoolA] <> [e].[NullableBoolB]"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Switching_null_semantics_produces_different_cache_entry() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] = [e].[NullableBoolB]) OR ([e].[NullableBoolA] IS NULL AND [e].[NullableBoolB] IS NULL)", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableBoolA] = [e].[NullableBoolB]"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Contains_with_local_array_closure_with_multiple_nulls() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableStringA] IN ('Foo') OR [e].[NullableStringA] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Where_equal_using_relational_null_semantics_with_parameter() : - AssertSql( - @"@__prm_0='' (Nullable = false) (DbType = String) - -SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableBoolA] = @__prm_0"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_equals_method() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] = [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] = [e].[NullableBoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableBoolA] = [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] = [e].[NullableBoolB]) OR ([e].[NullableBoolA] IS NULL AND [e].[NullableBoolB] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_bool_with_negated_bool_equal_negated() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] = [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[BoolA] = [e].[NullableBoolB]) OR [e].[NullableBoolB] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] = [e].[BoolB]) OR [e].[NullableBoolA] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE (([e].[NullableBoolA] = [e].[NullableBoolB]) OR ([e].[NullableBoolA] IS NULL OR [e].[NullableBoolB] IS NULL)) AND ([e].[NullableBoolA] IS NOT NULL OR [e].[NullableBoolB] IS NOT NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_bool_with_negated_bool_not_equal() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] = [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[BoolA] = [e].[NullableBoolB]) OR [e].[NullableBoolB] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] = [e].[BoolB]) OR [e].[NullableBoolA] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE (([e].[NullableBoolA] = [e].[NullableBoolB]) OR ([e].[NullableBoolA] IS NULL OR [e].[NullableBoolB] IS NULL)) AND ([e].[NullableBoolA] IS NOT NULL OR [e].[NullableBoolB] IS NOT NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_negated_bool_with_negated_bool_equal_negated() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] <> [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[BoolA] <> [e].[NullableBoolB]) OR [e].[NullableBoolB] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] <> [e].[BoolB]) OR [e].[NullableBoolA] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE (([e].[NullableBoolA] <> [e].[NullableBoolB]) OR ([e].[NullableBoolA] IS NULL OR [e].[NullableBoolB] IS NULL)) AND ([e].[NullableBoolA] IS NOT NULL OR [e].[NullableBoolB] IS NOT NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_negated_bool_with_bool_equal() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] <> [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[BoolA] <> [e].[NullableBoolB]) AND [e].[NullableBoolB] IS NOT NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] <> [e].[BoolB]) AND [e].[NullableBoolA] IS NOT NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE (([e].[NullableBoolA] <> [e].[NullableBoolB]) AND ([e].[NullableBoolA] IS NOT NULL AND [e].[NullableBoolB] IS NOT NULL)) OR ([e].[NullableBoolA] IS NULL AND [e].[NullableBoolB] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_negated_bool_with_negated_bool_not_equal_negated() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] = [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[BoolA] = [e].[NullableBoolB]) AND [e].[NullableBoolB] IS NOT NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] = [e].[BoolB]) AND [e].[NullableBoolA] IS NOT NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE (([e].[NullableBoolA] = [e].[NullableBoolB]) AND ([e].[NullableBoolA] IS NOT NULL AND [e].[NullableBoolB] IS NOT NULL)) OR ([e].[NullableBoolA] IS NULL AND [e].[NullableBoolB] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Where_multiple_ors_with_null() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableStringA] IN ('Foo', 'Blah') OR [e].[NullableStringA] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Where_not_equal_using_relational_null_semantics_complex_with_parameter() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableBoolA] <> [e].[NullableBoolB]"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_nullable_with_non_null_parameter_not_equal() : - AssertSql( - @"@__prm_0='Foo' (Nullable = false) (Size = 3) - -SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableStringA] = @__prm_0"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Where_not_equal_using_relational_null_semantics_with_parameter() : - AssertSql( - @"@__prm_0='' (Nullable = false) (DbType = String) - -SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableBoolA] <> @__prm_0"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Where_multiple_ands_with_nullable_parameter_and_constant() : - AssertSql( - @"@__prm3_2='Blah' (Nullable = false) (Size = 4) - -SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableStringA] NOT IN ('Foo', @__prm3_2) AND [e].[NullableStringA] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_bool_with_negated_bool_equal() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] <> [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[BoolA] <> [e].[NullableBoolB]) AND [e].[NullableBoolB] IS NOT NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] <> [e].[BoolB]) AND [e].[NullableBoolA] IS NOT NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE (([e].[NullableBoolA] <> [e].[NullableBoolB]) AND ([e].[NullableBoolA] IS NOT NULL AND [e].[NullableBoolB] IS NOT NULL)) OR ([e].[NullableBoolA] IS NULL AND [e].[NullableBoolB] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_equals_method_negated() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] <> [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[BoolA] <> [e].[NullableBoolB]) OR [e].[NullableBoolB] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] <> [e].[BoolB]) OR [e].[NullableBoolA] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE (([e].[NullableBoolA] <> [e].[NullableBoolB]) OR ([e].[NullableBoolA] IS NULL OR [e].[NullableBoolB] IS NULL)) AND ([e].[NullableBoolA] IS NOT NULL OR [e].[NullableBoolB] IS NOT NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Where_multiple_ands_with_nullable_parameter_and_constant_not_optimized() : - AssertSql( - @"@__prm3_2='Blah' (Nullable = false) (Size = 4) - -SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ((([e].[NullableStringB] IS NOT NULL AND (([e].[NullableStringA] <> 'Foo') OR [e].[NullableStringA] IS NULL)) AND [e].[NullableStringA] IS NOT NULL) AND [e].[NullableStringA] IS NOT NULL) AND (([e].[NullableStringA] <> @__prm3_2) OR [e].[NullableStringA] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Where_multiple_ors_with_nullable_parameter() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableStringA] IN ('Foo') OR [e].[NullableStringA] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_negated_bool_with_negated_bool_equal() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] = [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[BoolA] = [e].[NullableBoolB]) AND [e].[NullableBoolB] IS NOT NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] = [e].[BoolB]) AND [e].[NullableBoolA] IS NOT NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE (([e].[NullableBoolA] = [e].[NullableBoolB]) AND ([e].[NullableBoolA] IS NOT NULL AND [e].[NullableBoolB] IS NOT NULL)) OR ([e].[NullableBoolA] IS NULL AND [e].[NullableBoolB] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_bool_with_bool_not_equal_negated() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] = [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] = [e].[NullableBoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableBoolA] = [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] = [e].[NullableBoolB]) OR ([e].[NullableBoolA] IS NULL AND [e].[NullableBoolB] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Where_multiple_ands_with_null() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableStringA] NOT IN ('Foo', 'Blah') AND [e].[NullableStringA] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Contains_with_local_array_closure_false_with_null() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableStringA] NOT IN ('Foo') AND [e].[NullableStringA] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Where_equal_using_relational_null_semantics() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableBoolA] = [e].[NullableBoolB]"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_bool_with_bool_equal_negated() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] <> [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[BoolA] <> [e].[NullableBoolB]) OR [e].[NullableBoolB] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] <> [e].[BoolB]) OR [e].[NullableBoolA] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE (([e].[NullableBoolA] <> [e].[NullableBoolB]) OR ([e].[NullableBoolA] IS NULL OR [e].[NullableBoolB] IS NULL)) AND ([e].[NullableBoolA] IS NOT NULL OR [e].[NullableBoolB] IS NOT NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_negated_bool_with_negated_bool_not_equal() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] <> [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[BoolA] <> [e].[NullableBoolB]) OR [e].[NullableBoolB] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] <> [e].[BoolB]) OR [e].[NullableBoolA] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE (([e].[NullableBoolA] <> [e].[NullableBoolB]) OR ([e].[NullableBoolA] IS NULL OR [e].[NullableBoolB] IS NULL)) AND ([e].[NullableBoolA] IS NOT NULL OR [e].[NullableBoolB] IS NOT NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_bool_with_bool_equal() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] = [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] = [e].[NullableBoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableBoolA] = [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] = [e].[NullableBoolB]) OR ([e].[NullableBoolA] IS NULL AND [e].[NullableBoolB] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_bool_with_negated_bool_not_equal_negated() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] <> [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[BoolA] <> [e].[NullableBoolB]) AND [e].[NullableBoolB] IS NOT NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] <> [e].[BoolB]) AND [e].[NullableBoolA] IS NOT NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE (([e].[NullableBoolA] <> [e].[NullableBoolB]) AND ([e].[NullableBoolA] IS NOT NULL AND [e].[NullableBoolB] IS NOT NULL)) OR ([e].[NullableBoolA] IS NULL AND [e].[NullableBoolB] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Where_not_equal_nullable_with_null_value_parameter() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableStringA] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_negated_bool_with_bool_equal_negated() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] = [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[BoolA] = [e].[NullableBoolB]) OR [e].[NullableBoolB] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] = [e].[BoolB]) OR [e].[NullableBoolA] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE (([e].[NullableBoolA] = [e].[NullableBoolB]) OR ([e].[NullableBoolA] IS NULL OR [e].[NullableBoolB] IS NULL)) AND ([e].[NullableBoolA] IS NOT NULL OR [e].[NullableBoolB] IS NOT NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Where_equal_nullable_with_null_value_parameter() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableStringA] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_negated_bool_with_bool_not_equal() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] = [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[BoolA] = [e].[NullableBoolB]) OR [e].[NullableBoolB] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] = [e].[BoolB]) OR [e].[NullableBoolA] IS NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE (([e].[NullableBoolA] = [e].[NullableBoolB]) OR ([e].[NullableBoolA] IS NULL OR [e].[NullableBoolB] IS NULL)) AND ([e].[NullableBoolA] IS NOT NULL OR [e].[NullableBoolB] IS NOT NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_nullable_with_null_parameter_equal() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableStringA] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Where_equal_using_relational_null_semantics_complex_with_parameter() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[NullableBoolA] = [e].[NullableBoolB]"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Contains_with_local_array_closure_with_null() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableStringA] IN ('Foo') OR [e].[NullableStringA] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Compare_negated_bool_with_bool_not_equal_negated() : - AssertSql( - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE [e].[BoolA] <> [e].[BoolB]", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[BoolA] <> [e].[NullableBoolB]) AND [e].[NullableBoolB] IS NOT NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE ([e].[NullableBoolA] <> [e].[BoolB]) AND [e].[NullableBoolA] IS NOT NULL", - // - @"SELECT [e].[Id] -FROM [NullSemanticsEntity1] AS [e] -WHERE (([e].[NullableBoolA] <> [e].[NullableBoolB]) AND ([e].[NullableBoolA] IS NOT NULL AND [e].[NullableBoolB] IS NOT NULL)) OR ([e].[NullableBoolA] IS NULL AND [e].[NullableBoolB] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%') AND (([c].[City] <> 'London') OR [c].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_complex_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [A] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[A] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%') AND (([c].[City] <> 'London') OR [c].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_member_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%') AND (([c].[City] <> 'London') OR [c].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_complex_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [A] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[A] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%') AND (([c].[City] <> 'London') OR [c].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_member_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%') AND (([c].[City] <> 'London') OR [c].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_complex_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [A] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[A] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%') AND (([c].[City] <> 'London') OR [c].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_member_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested_negated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%')"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_complex_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [A] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[A] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Any_nested3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%') AND (([c].[City] <> 'London') OR [c].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Anonymous_member_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_member_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_complex_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_member_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.DTO_complex_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_count_using_anonymous_type() : - AssertSql( - @"SELECT ( - SELECT COUNT(*) - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] -) AS [Count] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_DTO_with_member_init_distinct_in_subquery_used_in_projection_translated_to_server() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [t].[Id], [t].[Count] -FROM [Customers] AS [c] -, ( - SELECT DISTINCT [o].[CustomerID] AS [Id], [o].[OrderID] AS [Count] - FROM [Orders] AS [o] - WHERE [o].[OrderID] < 10300 -) AS [t] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_multi_level5() : - AssertSql( - @"SELECT ( - SELECT TOP 1 ( - SELECT TOP 1 [od].[ProductID] - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] <> ( - SELECT COUNT(*) - FROM [Orders] AS [o0] - WHERE [c].[CustomerID] = [o0].[CustomerID] - )) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [Order] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_count_using_DTO() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], ( - SELECT COUNT(*) - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] -) AS [Count] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_multi_level3() : - AssertSql( - @"SELECT ( - SELECT TOP 1 [o].[OrderDate] - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [OrderDates] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_expression_date_add_year() : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderDate]), NULL, DateAdd('yyyy', 1, [o].[OrderDate])) AS [OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Select_nested_collection_multi_level4() : - AssertSql( - @"SELECT ( - SELECT TOP 1 ( - SELECT COUNT(*) - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] > 10) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [Order] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.QueryJetTest.Where_date_add_year_constant_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('yyyy', IIf(IsNull([o].[OrderDate]), NULL, DateAdd('yyyy', -1, [o].[OrderDate]))) = 1997"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Anonymous_complex_distinct_where() : - AssertSql( - @"SELECT [t].[A] -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [A] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[A] = 'ALFKIBerlin'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Any_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_from_anonymous_type_introduces_explicit_cast() : - AssertSql( - @"SELECT CLng(IIf(IsNull([o].[OrderID]),0,[o].[OrderID])) AS [LongOrder], CInt(IIf(IsNull([o].[OrderID]),0,[o].[OrderID])) AS [ShortOrder], [o].[OrderID] AS [Order] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many_and() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE (([c].[City] = 'London') AND ([c].[Country] = 'UK')) AND (([e].[City] = 'London') AND ([e].[Country] = 'UK'))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_orderBy_take_long_count() : - AssertSql( - @"@__p_0='7' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[Country] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_long_count() : - AssertSql( - @"@__p_0='7' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_multiple_contains_in_subquery_with_or() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[ProductID] IN ( - SELECT TOP 1 [p].[ProductID] - FROM [Products] AS [p] - ORDER BY [p].[ProductID] -) OR [od].[OrderID] IN ( - SELECT TOP 1 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_tuple_item_closure() : - AssertSql( - @"@__predicateTuple_Item2_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__predicateTuple_Item2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_count_using_DTO() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], ( - SELECT COUNT(*) - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] -) AS [Count] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='BSBEV' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='CONSH' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='EASTC' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='NORTS' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='SEVES' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_equals_constant() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Any_nested_negated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.LastOrDefault() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_nullable_int_to_int_doesnt_introduce_explicit_cast() : - AssertSql( - @"SELECT [o].[EmployeeID] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_entities_using_Equals() : - AssertSql( - @"SELECT [c1].[CustomerID] AS [Id1], [c2].[CustomerID] AS [Id2] -FROM [Customers] AS [c1] -, [Customers] AS [c2] -WHERE [c1].[CustomerID] LIKE 'ALFKI' + '%' AND ([c1].[CustomerID] = [c2].[CustomerID]) -ORDER BY [c1].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Union_with_custom_projection() : - AssertSql( - @"SELECT [c1].[CustomerID], [c1].[Address], [c1].[City], [c1].[CompanyName], [c1].[ContactName], [c1].[ContactTitle], [c1].[Country], [c1].[Fax], [c1].[Phone], [c1].[PostalCode], [c1].[Region] -FROM [Customers] AS [c1] -WHERE [c1].[CompanyName] LIKE 'A' + '%'", - // - @"SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE [c2].[CompanyName] LIKE 'B' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_not_in_optimization3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] NOT IN ('London', 'Berlin', 'Seattle')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.DTO_member_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_int_to_nullable_int_doesnt_introduce_explicit_cast() : - AssertSql( - @"SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_different_outer_elements_with_same_key_with_predicate() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID]) -WHERE [o].[OrderID] > 11500"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_customers_orders_count() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_log_new_base() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE (([od].[OrderID] = 11077) AND ([od].[Discount] > 0)) AND ((Log([od].[Discount]) / Log(7)) < 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_correlated_subquery_filtered() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0", - // - @"@__city_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_LastOrDefault() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_not_in_optimization2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] NOT IN ('London', 'Berlin')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Exists_Constant() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE False = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_Where_Distinct_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT DISTINCT [t].* - FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - WHERE [o].[CustomerID] = 'FRANK' - ) AS [t] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_to_fixed_string_parameter() : - AssertSql( - @"@__prefix_0='A' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE @__prefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_true() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_where_all() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[City] = 'México D.F.') AND [c].[CustomerID] NOT IN ('ABCDE', 'ALFKI', 'ANATR')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_sqrt() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Sqr([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_with_subquery_predicate_with_take() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[ContactName], [t].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT TOP @__p_0 [o2].* - FROM [Orders] AS [o2] - WHERE [o2].[OrderID] > 0 - ORDER BY [o2].[OrderID] -) AS [t] ON [c].[CustomerID] = [t].[CustomerID]) -WHERE [t].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Queryable_simple_anonymous_projection_subquery() : - AssertSql( - @"@__p_0='91' - -SELECT TOP @__p_0 [c].[City] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_Distinct() : - AssertSql( - @"@__p_0='5' - -SELECT DISTINCT [t].* -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_de_morgan_or_optimizated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) AND ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_sum() : - AssertSql( - @"@__p_0='10' - -SELECT SUM([t].[OrderID]) -FROM ( - SELECT TOP @__p_0 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Local_array() : - AssertSql( - @"@__get_Item_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_over_entityType_should_materialize_when_composite() : - AssertSql( - @"SELECT TOP 1 [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice] -FROM [Order Details] AS [o] -WHERE ([o].[OrderID] = 10248) AND ([o].[ProductID] = 42)", - // - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice] -FROM [Order Details] AS [o] -WHERE [o].[ProductID] = 42"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + [c].[ContactName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_navigation_contains() : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]", - // - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_binary_expression() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID] * 2),0,[o].[OrderID] * 2))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_indexof() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_anonymous_conditional_expression() : - AssertSql( - @"SELECT [p].[ProductID], IIf( - [p].[UnitsInStock] > 0, - True, - False -) AS [IsAvailable] -FROM [Products] AS [p]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_collection_complex_predicate_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI', 'ALFKI', 'ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_join_orderby_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM (([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -INNER JOIN [Order Details] AS [od] ON [o].[OrderID] = [od].[OrderID]) -WHERE [c].[CustomerID] <> 'ALFKI' -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_truncate() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE Int([od].[UnitPrice]) > 10.0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE [c].[ContactName] + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_anonymous_constant_in_expression() : - AssertSql( - @"SELECT [c].[CustomerID], CInt(IIf(IsNull(Len([c].[CustomerID])),0,Len([c].[CustomerID]))) + 5 AS [Expression] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_negated_boolean_expression_compared_to_another_negated_boolean_expression() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE IIf( - [p].[ProductID] > 50, - True, - False -) = IIf( - [p].[ProductID] > 20, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_skip_take() : - AssertSql( - @"@__p_1='8' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactTitle], [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Subquery_is_null_translated_correctly() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ( - SELECT TOP 1 [o].[CustomerID] - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ORDER BY [o].[OrderID] DESC -) IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.IsNullOrWhiteSpace_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[Region] IS NULL OR (LTRIM(RTRIM([c].[Region])) = '')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_shadow() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[Title] = 'Sales Representative'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_collection_complex_predicate_not_matching_ins1() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ALFKI', 'ABCDE') OR [c].[CustomerID] NOT IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_subquery_and_local_array_closure() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [c1] - WHERE [c1].[City] IN ('London', 'Buenos Aires') AND ([c1].[CustomerID] = [c].[CustomerID]))", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [c1] - WHERE [c1].[City] IN ('London') AND ([c1].[CustomerID] = [c].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_array_closure() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI')", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0", - // - @"@__city_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_not_bool_member_compared_to_binary_expression() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] <> IIf( - [p].[ProductID] > 50, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_navigations_using_Equals() : - AssertSql( - @"SELECT [o1].[OrderID] AS [Id1], [o2].[OrderID] AS [Id2] -FROM [Orders] AS [o1] -, [Orders] AS [o2] -WHERE [o1].[CustomerID] LIKE 'A' + '%' AND (([o1].[CustomerID] = [o2].[CustomerID]) OR ([o1].[CustomerID] IS NULL AND [o2].[CustomerID] IS NULL)) -ORDER BY [o1].[OrderID], [o2].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_cartesian_product_with_ordering() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[City] AS [City0] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE ([c].[City] = [e].[City]) OR ([c].[City] IS NULL AND [e].[City] IS NULL) -ORDER BY [e].[City], [c].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_ternary_boolean_condition_with_another_condition() : - AssertSql( - @"@__productId_0='15' -@__flag_1='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[ProductID] < @__productId_0) AND (((@__flag_1 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_1 <> True) AND ([p].[UnitsInStock] < 20)))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_constant() : - AssertSql( - @"SELECT Mid([c].[ContactName], 2, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_second_component() : - AssertSql( - @"SELECT DatePart('s', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Handle_materialization_properly_when_more_than_two_query_sources_are_involved() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -, [Orders] AS [o] -, [Employees] AS [e] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_bitwise_and_or() : - AssertSql( - @"SELECT [c].[CustomerID], (IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) BOR IIf( - [c].[CustomerID] = 'ANTON', - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_MethodCall() : - AssertSql( - @"@__LocalMethod2_0='m' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + @__LocalMethod2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Project_single_element_from_collection_with_OrderBy_Distinct_and_FirstOrDefault() : - AssertSql( - @"SELECT ( - SELECT DISTINCT TOP 1 [o].[CustomerID] - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] -) -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_conditional_with_null_comparison_in_test() : - AssertSql( - @"SELECT IIf( - [o].[CustomerID] IS NULL OR ([o].[CustomerID] IS NOT NULL AND ([o].[OrderID] < 100)), - True, - False -) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bitwise_and_with_logical_and() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True) AND ([c].[CustomerID] = 'ANTON')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_substring() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Mid([c].[City], 2, 2) = 'ea'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_entity_equality_no_elements_SingleOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = 42", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = 42", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = 42"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Query_expression_with_to_string_and_contains() : - AssertSql( - @"SELECT [o].[CustomerID] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL AND (Instr(1, IIf(IsNull([o].[EmployeeID]), NULL, CStr([o].[EmployeeID])), '10', 0) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_LongCount() : - AssertSql( - @"SELECT COUNT(*) -FROM [Customers] AS [c] -, [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_SelectMany_subquery_with_filter_and_DefaultIfEmpty() : - AssertSql( - @"SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate], [c].[ContactName] -FROM ([Customers] AS [c] -LEFT JOIN ( - SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - WHERE [o].[OrderID] > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_complex_negated_expression_optimized() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[Discontinued] = False) AND ([p].[ProductID] < 60)) AND ([p].[ProductID] > 30)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_reversed() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE 'London' = [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Skip_Take() : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.TrimStart_without_arguments_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE LTrim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.IsNullOrEmpty_negated_in_projection() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], IIf( - [c].[Region] IS NOT NULL AND ([c].[Region] <> ''), - True, - False -) AS [Value] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.All_top_level_subquery() : - AssertSql( - @"SELECT IIf( - NOT EXISTS ( - SELECT 1 - FROM [Customers] AS [c1] - WHERE NOT (( - SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c2] - WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [c3] - WHERE [c1].[CustomerID] = [c3].[CustomerID])), - True, - False - ) - FROM (SELECT COUNT(*) FROM MSysAccessStorage) - ) = True)), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Last_when_no_order_by() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_replace() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Replace([c].[City], 'Sea', 'Rea') = 'Reattle'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Compare_to_simple_zero() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Compare_to_multi_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= 'ALFKI' AND [c].[CustomerID] < 'CACTU'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactTitle] = 'Owner' AND [c].[Country] <> 'USA'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_concat_with_navigation1() : - AssertSql( - @"SELECT ([o].[CustomerID] + ' ') + [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_shadow_subquery_FirstOrDefault() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[Title] = ( - SELECT TOP 1 [e2].[Title] - FROM [Employees] AS [e2] - ORDER BY [e2].[Title] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_OrderBy_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Last() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_bitwise_and() : - AssertSql( - @"SELECT [c].[CustomerID], IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Streaming_chained_sync_query() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"SELECT [y#Customer].[CustomerID], [y#Customer].[Address], [y#Customer].[City], [y#Customer].[CompanyName], [y#Customer].[ContactName], [y#Customer].[ContactTitle], [y#Customer].[Country], [y#Customer].[Fax], [y#Customer].[Phone], [y#Customer].[PostalCode], [y#Customer].[Region] -FROM [Customers] AS [y#Customer]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_compare_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] IS NULL AND ([c].[Country] = 'UK')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Any_nested2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_dictionary_key_access_closure() : - AssertSql( - @"@__get_Item_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_Subquery_Single() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [od].[OrderID] -FROM [Order Details] AS [od] -ORDER BY [od].[ProductID], [od].[OrderID]", - // - @"@_outer_OrderID='10285' - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_OrderID = [o].[OrderID] -ORDER BY [o].[OrderID]", - // - @"@_outer_OrderID='10294' - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_OrderID = [o].[OrderID] -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_to_upper() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE UCase([c].[CustomerID]) = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_long_to_string() : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderID]), NULL, CStr([o].[OrderID])) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_ternary_boolean_condition_false() : - AssertSql( - @"@__flag_0='False' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ((@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_0 <> True) AND ([p].[UnitsInStock] < 20))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_Count_with_predicate() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_FirstOrDefault_is_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ( - SELECT TOP 1 [o].[OrderID] - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ORDER BY [o].[OrderID] -) IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_with_subquery_anonymous_property_method_with_take() : - AssertSql( - @"@__p_0='5' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT TOP @__p_0 [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] - FROM [Orders] AS [o2] - ORDER BY [o2].[OrderID] -) AS [t]", - // - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_other_to_string() : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderDate]), NULL, CStr([o].[OrderDate])) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many_or_with_parameter() : - AssertSql( - @"@__london_0='London' (Nullable = false) (Size = 6) -@__lisboa_1='Lisboa' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN (@__london_0, 'Berlin', 'Seattle', @__lisboa_1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition4() : - AssertSql( - @"@__p_0='2' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t]", - // - @"SELECT 1 -FROM [Customers] AS [c0] -ORDER BY [c0].[CustomerID]", - // - @"SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2]", - // - @"SELECT 1 -FROM [Customers] AS [c0] -ORDER BY [c0].[CustomerID]", - // - @"SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Any_nested_negated3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%') AND (([c].[City] <> 'London') OR [c].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_navigations_using_static_Equals() : - AssertSql( - @"SELECT [o1].[OrderID] AS [Id1], [o2].[OrderID] AS [Id2] -FROM [Orders] AS [o1] -, [Orders] AS [o2] -WHERE [o1].[CustomerID] LIKE 'A' + '%' AND (([o1].[CustomerID] = [o2].[CustomerID]) OR ([o1].[CustomerID] IS NULL AND [o2].[CustomerID] IS NULL)) -ORDER BY [o1].[OrderID], [o2].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_non_matching_entities_using_Equals() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id1], [o].[OrderID] AS [Id2] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_any_equals_static() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI', 'ANATR')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_cos() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (COS([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_short_constant() : - AssertSql( - @"SELECT IIf( - [c].[CustomerID] = 'ALFKI', - 1, - 2 -) -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_hour_component() : - AssertSql( - @"SELECT DatePart('h', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_entities() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.FirstOrDefault_inside_subquery_gets_server_evaluated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND (( - SELECT TOP 1 [o].[CustomerID] - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] = 'ALFKI') AND ([c].[CustomerID] = [o].[CustomerID]) -) = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_nested_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0", - // - @"@__city_Nested_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_comparison_to_nullable_bool() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE '%' + 'KI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_orderby_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] <> 'ALFKI' -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Compare_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_with_single_select_many() : - AssertSql( - @"@__p_0='1' - -SELECT TOP 2 [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID] AS [CustomerID0], [o].[EmployeeID], [o].[OrderDate] - FROM [Customers] AS [c] - , [Orders] AS [o] - ORDER BY [c].[CustomerID], [o].[OrderID] -) AS [t] -ORDER BY [t].[CustomerID], [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_all_not_equals_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] NOT IN ('ABCDE', 'ALFKI', 'ANATR')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Let_entity_equality_to_null() : - AssertSql( - @"SELECT [c].[CustomerID], ( - SELECT TOP 1 [e0].[OrderDate] - FROM [Orders] AS [e0] - WHERE [c].[CustomerID] = [e0].[CustomerID] - ORDER BY [e0].[OrderDate] -) AS [OrderDate] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_sign() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Sgn([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_parameter() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE @__prm_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Projection_when_arithmetic_mixed_subqueries() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]", - // - @"SELECT TOP 2 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 2 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 2 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Lifting_when_subquery_nested_order_by_simple() : - AssertSql( - @"@__p_0='2' - -SELECT [t0].[CustomerID] -FROM ( - SELECT DISTINCT [t].[CustomerID] - FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] - ) AS [t] - , [Customers] AS [c2] -) AS [t0]", - // - @"SELECT [c1_Orders].[OrderID], [c1_Orders].[CustomerID], [c1_Orders].[EmployeeID], [c1_Orders].[OrderDate] -FROM [Orders] AS [c1_Orders]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_distinct_long_count() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].* - FROM [Customers] AS [c] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_minute_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('n', [o].[OrderDate]) = 23"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_comparison_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[Region] = 'ASK', - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_Where_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.DTO_complex_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_list_inline() : line() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\Query\SimpleQueryJetTest.ResultOperators.cs:riga 793 - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_entity_to_null_using_Equals() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND [c].[CustomerID] IS NOT NULL -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_min() : - AssertSql( - @"@__p_0='10' - -SELECT MIN([t].[OrderID]) -FROM ( - SELECT TOP @__p_0 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_Where_Count_with_predicate() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -WHERE ([o].[OrderID] > 10) AND (([o].[CustomerID] <> 'ALFKI') OR [o].[CustomerID] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_collection_false() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] NOT IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToDouble() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Compare_two_collection_navigations_with_different_property_chains() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id1], [o].[OrderID] AS [Id2] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE ([c].[CustomerID] = 'ALFKI') AND ([c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID], [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToInt64() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_expression_invoke() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_client_deep_inside_predicate_and_server_top_level() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_month_component() : - AssertSql( - @"SELECT DatePart('m', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_any_equals() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI', 'ANATR')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_client_and_server_top_level() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> 'AROUT'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Parameter_extraction_short_circuits_1() : - AssertSql( - @"@__dateFilter_Value_Month_0='7' -@__dateFilter_Value_Year_1='1996' - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10400) AND (([o].[OrderDate] IS NOT NULL AND (DatePart('m', [o].[OrderDate]) = @__dateFilter_Value_Month_0)) AND (DatePart('yyyy', [o].[OrderDate]) = @__dateFilter_Value_Year_1))", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10400"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_different_outer_elements_with_same_key() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_shadow_projection() : - AssertSql( - @"SELECT [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[Title] = 'Sales Representative'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_scalar_primitive_after_take() : - AssertSql( - @"@__p_0='9' - -SELECT TOP @__p_0 [e].[EmployeeID] -FROM [Employees] AS [e]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple3() : - AssertSql( - @"SELECT [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_multiple_contains_in_subquery_with_and() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[ProductID] IN ( - SELECT TOP 20 [p].[ProductID] - FROM [Products] AS [p] - ORDER BY [p].[ProductID] -) AND [od].[OrderID] IN ( - SELECT TOP 10 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_ternary_boolean_condition_with_false_as_result_false() : - AssertSql( - @"@__flag_0='False' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_bitwise_or_multiple() : - AssertSql( - @"SELECT [c].[CustomerID], (IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) BOR IIf( - [c].[CustomerID] = 'ANTON', - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Static_string_equals_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ANATR'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Sum_on_float_column() : - AssertSql( - @"SELECT CSng(IIf(IsNull(SUM([od].[Discount])),0,SUM([od].[Discount]))) -FROM [Order Details] AS [od] -WHERE [od].[ProductID] = 1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_average() : - AssertSql( - @"@__p_0='10' - -SELECT AVG(CDbl(IIf(IsNull([t].[OrderID]),0,[t].[OrderID]))) -FROM ( - SELECT TOP @__p_0 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Indexof_with_emptystring() : - AssertSql( - @"SELECT [c].[ContactName] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_static_field_access_closure_via_query_cache() : - AssertSql( - @"@__StaticFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0", - // - @"@__StaticFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_conditional_operator_where_condition_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - False = True, - 'ZZ', - [c].[City] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_null_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[CompanyName], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [Region] -FROM [Customers] AS [c] -ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_byte_constant() : - AssertSql( - @"SELECT IIf( - [c].[CustomerID] = 'ALFKI', - 1, - 2 -) -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_many_cross_join_same_collection() : - AssertSql( - @"SELECT [c0].[CustomerID], [c0].[Address], [c0].[City], [c0].[CompanyName], [c0].[ContactName], [c0].[ContactTitle], [c0].[Country], [c0].[Fax], [c0].[Phone], [c0].[PostalCode], [c0].[Region] -FROM [Customers] AS [c] -, [Customers] AS [c0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Count_with_predicate() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_is_not_null() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_non_matching_collection_navigations_using_Equals() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id1], [o].[OrderID] AS [Id2] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Static_equals_int_compared_to_long() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_ternary_boolean_condition_with_false_as_result_true() : - AssertSql( - @"@__flag_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_division_on_decimal() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull([od].[Quantity] / 2.09),0,[od].[Quantity] / 2.09))) -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_not_in_optimization1() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND (([e].[City] <> 'London') OR [e].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + [c].[ContactName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_DTO_with_member_init_distinct_in_subquery_used_in_projection_translated_to_server() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [t].[Id], [t].[Count] -FROM [Customers] AS [c] -, ( - SELECT DISTINCT [o].[CustomerID] AS [Id], [o].[OrderID] AS [Count] - FROM [Orders] AS [o] - WHERE [o].[OrderID] < 10300 -) AS [t] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_array_index() : - AssertSql( - @"@__p_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_Customers_Orders_Projection_With_String_Concat_Skip_Take() : - AssertSql( - @"@__p_1='5' -@__p_0='10' - -SELECT TOP @__p_1+@__p_0 ([c].[ContactName] + ' ') + [c].[ContactTitle] AS [Contact], [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [o].[OrderID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Min_with_non_matching_types_in_projection_introduces_explicit_cast() : - AssertSql( - @"SELECT MIN(CLng(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_primitive() : - AssertSql( - @"@__p_0='9' - -SELECT [t].[EmployeeID] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID] - FROM [Employees] AS [e] -) AS [t] -WHERE [t].[EmployeeID] = 5"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_equals_on_mismatched_types_nullable_int_long() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_multi_level2() : - AssertSql( - @"SELECT ( - SELECT TOP 1 [o].[OrderDate] - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [OrderDates] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_DateTime_Date() : - AssertSql( - @"SELECT [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE IIf(IsNull([e].[OrderDate]), NULL, DateValue([e].[OrderDate])) IN (#07/04/1996 00:00:00#, #07/16/1996 00:00:00#)", - // - @"SELECT [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE IIf(IsNull([e].[OrderDate]), NULL, DateValue([e].[OrderDate])) IN (#07/04/1996 00:00:00#)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_tracking_groups() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE [c].[ContactName] + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition2_FirstOrDefault_with_anonymous() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Compare_to_simple_one() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetimeoffset_now_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_Dto_projection_skip_take() : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID] AS [Id] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.LastOrDefault_Predicate() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Any() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[OrderDate] = #10/24/2008 00:00:00#) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_customers_orders_count_preserves_ordering() : - AssertSql( - @"@__p_0='5' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM (( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - WHERE [c].[CustomerID] NOT IN ('VAFFE', 'DRACD') - ORDER BY [c].[City] -) AS [t] -LEFT JOIN [Orders] AS [o] ON [t].[CustomerID] = [o].[CustomerID]) -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_no_arg() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_day_of_year_component() : - AssertSql( - @"SELECT DatePart('y', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Parameter_extraction_short_circuits_3() : - AssertSql( - @"@__dateFilter_Value_Month_0='7' -@__dateFilter_Value_Year_1='1996' - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10400) OR (([o].[OrderDate] IS NOT NULL AND (DatePart('m', [o].[OrderDate]) = @__dateFilter_Value_Month_0)) AND (DatePart('yyyy', [o].[OrderDate]) = @__dateFilter_Value_Year_1))", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many_or3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN ('London', 'Berlin', 'Seattle')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_via_query_cache_nullable_type() : - AssertSql( - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_Where_OrderBy() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE ([o].[CustomerID] = 'ALFKI') OR ([c].[CustomerID] = 'ANATR') -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Projection_null_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[CompanyName], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToByte() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_false() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_FirstOrDefault_compared_to_entity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ( - SELECT TOP 1 [o].[OrderID] - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ORDER BY [o].[OrderID] -) = 10243"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_concat_string_int_comparison2() : - AssertSql( - @"@__i_0='10' - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE ((@__i_0&"""") + [c].[CustomerID]) = [c].[CompanyName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_client_Take() : - AssertSql( - @"@__p_1='10' - -SELECT TOP @__p_1 [o].[EmployeeID], [o].[City], [o].[Country], [o].[FirstName], [o].[ReportsTo], [o].[Title] -FROM [Employees] AS [o] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Compare_collection_navigation_with_itself() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND ([c].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_subquery_projection() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[City] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_sin() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (SIN([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_equals_method_string() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_int_to_long_introduces_explicit_cast() : - AssertSql( - @"SELECT CLng(IIf(IsNull([o].[OrderID]),0,[o].[OrderID])) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_entity_equality_one_element_FirstOrDefault() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE ( - SELECT TOP 1 [e2].[EmployeeID] - FROM [Employees] AS [e2] - WHERE [e2].[EmployeeID] = [e1].[ReportsTo] -) = 0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_MethodCall() : - AssertSql( - @"@__LocalMethod1_0='M' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE @__LocalMethod1_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_nullable_int_to_long_introduces_explicit_cast() : - AssertSql( - @"SELECT CLng(IIf(IsNull([o].[EmployeeID]),0,[o].[EmployeeID])) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_method_call_nullable_type_reverse_closure_via_query_cache() : - AssertSql( - @"@__city_NullableInt_0='1' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0", - // - @"@__city_NullableInt_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_top_level() : - AssertSql( - @"@__p_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT IIf( - @__p_0 IN ( - SELECT [c].[CustomerID] - FROM [Customers] AS [c] - ), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_on_float_column_in_subquery() : - AssertSql( - @"SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10300", - // - @"@_outer_OrderID='10248' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10249' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10250' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10251' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10252' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10253' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10254' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10255' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Compare_simple_zero() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_Take_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Distinct_Take() : - AssertSql( - @"@__p_0='5' - -SELECT TOP @__p_0 [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT DISTINCT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] -) AS [t] -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_with_subquery_with_take() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[ContactName], [t].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT TOP @__p_0 [o2].* - FROM [Orders] AS [o2] - ORDER BY [o2].[OrderID] -) AS [t] ON [c].[CustomerID] = [t].[CustomerID]) -WHERE [t].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.No_orderby_added_for_fully_translated_manually_constructed_LOJ() : - AssertSql( - @"SELECT [e1].[City] AS [City1], [e2].[City] AS [City2] -FROM ([Employees] AS [e1] -LEFT JOIN [Employees] AS [e2] ON [e1].[EmployeeID] = [e2].[ReportsTo])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Compare_multi_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= 'ALFKI' AND [c].[CustomerID] < 'CACTU'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactTitle] = 'Owner' AND [c].[Country] <> 'USA'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Any_nested_negated2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE 'M' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_list_inline_closure_mix() : line_closure_mix() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\Query\SimpleQueryJetTest.ResultOperators.cs:riga 803 - AssertSql( - @"@__id_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', @__id_0)", - // - @"@__id_0='ANATR' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', @__id_0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_coalesce_take_distinct() : - AssertSql( - @"@__p_0='15' - -SELECT DISTINCT [t].* -FROM ( - SELECT TOP @__p_0 [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] - FROM [Products] AS [p] - ORDER BY IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice]) -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Min_with_coalesce() : - AssertSql( - @"SELECT MIN(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_multi_level3() : - AssertSql( - @"SELECT ( - SELECT TOP 1 [o].[OrderDate] - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [OrderDates] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_functions_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE CInt(IIf(IsNull(Len([c].[CustomerID])),0,Len([c].[CustomerID])))^2 = 25"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_named_tuple_item_closure() : - AssertSql( - @"@__predicateTuple_Item2_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__predicateTuple_Item2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_all_not_equals() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] NOT IN ('ABCDE', 'ALFKI', 'ANATR')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_simple_parameterized() : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Max_with_coalesce() : - AssertSql( - @"SELECT MAX(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_false() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_skip_null_coalesce_operator() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[CompanyName], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [Region] - FROM [Customers] AS [c] - ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) -) AS [t] -ORDER BY [t].[Region] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_equals_on_matched_nullable_int_types() : - AssertSql( - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE @__nullableIntPrm_0 = [e].[ReportsTo]", - // - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__nullableIntPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.First_inside_subquery_gets_client_evaluated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE ([o0].[CustomerID] = 'ALFKI') AND (@_outer_CustomerID = [o0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_concat_with_navigation2() : - AssertSql( - @"SELECT ([o#Customer].[City] + ' ') + [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_from_binary_expression_nested_introduces_top_level_explicit_cast() : - AssertSql( - @"SELECT CInt(IIf(IsNull([o].[OrderID] + [o].[OrderID]),0,[o].[OrderID] + [o].[OrderID])) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_projection1() : - AssertSql( - @"SELECT [e1].[City], [e2].[Country] -FROM [Employees] AS [e1] -, [Employees] AS [e2]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_concat_string_int_comparison1() : - AssertSql( - @"@__i_0='10' - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] + (@__i_0&"""")) = [c].[CompanyName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_client_side_negated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_static_property_access_closure_via_query_cache() : - AssertSql( - @"@__StaticPropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0", - // - @"@__StaticPropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_via_query_cache() : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0", - // - @"@__city_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_to_lower() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE LCase([c].[CustomerID]) = 'alfki'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_simple() : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_OrderBy_same_column_different_direction() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' -ORDER BY [c].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Complex_query_with_repeated_query_model_compiles_correctly() : - AssertSql( - @"SELECT [outer].[CustomerID], [outer].[Address], [outer].[City], [outer].[CompanyName], [outer].[ContactName], [outer].[ContactTitle], [outer].[Country], [outer].[Fax], [outer].[Phone], [outer].[PostalCode], [outer].[Region] -FROM [Customers] AS [outer] -WHERE [outer].[CustomerID] = 'ALFKI'", - // - @"SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c0] - WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [cc1])), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Contains_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr(1, [c].[ContactName], [c].[ContactName], 0) > 0) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Subquery_is_not_null_translated_correctly() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ( - SELECT TOP 1 [o].[CustomerID] - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ORDER BY [o].[OrderID] DESC -) IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_zero_length() : - AssertSql( - @"SELECT Mid([c].[ContactName], 3, 0) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Compare_simple_one() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= 'ALFKI'", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_Where_Subquery_Equality() : - AssertSql( - @"@__p_0='1' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] -) AS [t] -ORDER BY [t].[OrderID]", - // - @"SELECT [t1].[OrderID] -FROM ( - SELECT TOP 2 [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice] - FROM [Order Details] AS [od0] - ORDER BY [od0].[OrderID] -) AS [t1]", - // - @"@_outer_CustomerID2='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 1 [c3].[Country] -FROM [Customers] AS [c3] -WHERE [c3].[CustomerID] = @_outer_CustomerID2 -ORDER BY [c3].[CustomerID]", - // - @"@_outer_OrderID1='10248' - -SELECT TOP 1 [c4].[Country] -FROM ([Orders] AS [o20] -INNER JOIN [Customers] AS [c4] ON [o20].[CustomerID] = [c4].[CustomerID]) -WHERE [o20].[OrderID] = @_outer_OrderID1 -ORDER BY [o20].[OrderID], [c4].[CustomerID]", - // - @"@_outer_CustomerID2='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 1 [c3].[Country] -FROM [Customers] AS [c3] -WHERE [c3].[CustomerID] = @_outer_CustomerID2 -ORDER BY [c3].[CustomerID]", - // - @"@_outer_OrderID1='10248' - -SELECT TOP 1 [c4].[Country] -FROM ([Orders] AS [o20] -INNER JOIN [Customers] AS [c4] ON [o20].[CustomerID] = [c4].[CustomerID]) -WHERE [o20].[OrderID] = @_outer_OrderID1 -ORDER BY [o20].[OrderID], [c4].[CustomerID]", - // - @"@_outer_CustomerID2='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 1 [c3].[Country] -FROM [Customers] AS [c3] -WHERE [c3].[CustomerID] = @_outer_CustomerID2 -ORDER BY [c3].[CustomerID]", - // - @"@_outer_OrderID1='10248' - -SELECT TOP 1 [c4].[Country] -FROM ([Orders] AS [o20] -INNER JOIN [Customers] AS [c4] ON [o20].[CustomerID] = [c4].[CustomerID]) -WHERE [o20].[OrderID] = @_outer_OrderID1 -ORDER BY [o20].[OrderID], [c4].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_math_truncate_int() : - AssertSql( - @"SELECT Int(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [A] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10250"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_closure() : - AssertSql( - @"@__start_0='2' - -SELECT Mid([c].[ContactName], @__start_0 + 1, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_same_collection_force_alias_uniquefication() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM ([Orders] AS [o] -INNER JOIN [Orders] AS [o0] ON [o].[CustomerID] = [o0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_max() : - AssertSql( - @"@__p_0='10' - -SELECT MAX([t].[OrderID]) -FROM ( - SELECT TOP @__p_0 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OfType_Select_OfType_Select() : - AssertSql( - @"SELECT TOP 1 [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_skip_null_coalesce_operator3() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [c] - FROM [Customers] AS [c] - ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) -) AS [t] -ORDER BY [t].[c] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_select() : - AssertSql( - @"SELECT [c].[ContactName], [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_array_inline() : line() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\Query\SimpleQueryJetTest.ResultOperators.cs:riga 763 - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_conditional_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[Region] IS NULL, - 'ZZ', - [c].[Region] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_bitwise_or_with_logical_or() : - AssertSql( - @"SELECT [c].[CustomerID], IIf( - ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False - ) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False - )) = True) OR ([c].[CustomerID] = 'ANTON'), - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty_multiple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o1].[OrderID], [o1].[CustomerID], [o1].[EmployeeID], [o1].[OrderDate], [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM (([Customers] AS [c] -LEFT JOIN [Orders] AS [o1] ON [c].[CustomerID] = [o1].[CustomerID]) -LEFT JOIN [Orders] AS [o2] ON [c].[CustomerID] = [o2].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_length() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE CInt(IIf(IsNull(Len([c].[City])),0,Len([c].[City]))) = 6"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_chain() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'QUICK') AND ([o].[OrderDate] > #01/01/1998 00:00:00#)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.All_top_level() : - AssertSql( - @"SELECT IIf( - NOT EXISTS ( - SELECT 1 - FROM [Customers] AS [c] - WHERE NOT ([c].[ContactName] LIKE 'A' + '%')), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_power() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[Discount]^2 > 0.05000000074505806"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_compare_to_with_parameter() : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_mixed() : - AssertSql( - @"@__p_0='2' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_non_matching_types_in_projection_doesnt_produce_second_explicit_cast() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure() : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_zero_startindex() : - AssertSql( - @"SELECT Mid([c].[ContactName], 1, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_ternary_boolean_condition_true() : - AssertSql( - @"@__flag_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ((@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_0 <> True) AND ([p].[UnitsInStock] < 20))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Projection_when_arithmetic_mixed() : - AssertSql( - @"@__p_0='10' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate], [t0].[EmployeeID], [t0].[City], [t0].[Country], [t0].[FirstName], [t0].[ReportsTo], [t0].[Title] -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] -, ( - SELECT TOP 5 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_nested_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0", - // - @"@__city_Nested_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_collection_empty_closure() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_collection_sql_injection() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ALFKI', 'ABC'')); GO; DROP TABLE Orders; GO; --', 'ALFKI', 'ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Max_with_non_matching_types_in_projection_introduces_explicit_cast() : - AssertSql( - @"SELECT MAX(CLng(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Null_conditional_deep() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE CInt(IIf(IsNull(Len([c].[CustomerID])),0,Len([c].[CustomerID]))) = 5"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_Take_Last_gives_correct_result() : - AssertSql( - @"@__p_0='20' - -SELECT TOP 1 [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -ORDER BY [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_client_eval() : - AssertSql( - @"SELECT [c].[ContactName] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty_Project() : - AssertSql( - @"SELECT [o].[OrderID] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition2() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_count() : - AssertSql( - @"@__p_0='7' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_from_binary_expression_introduces_explicit_cast() : - AssertSql( - @"SELECT CLng(IIf(IsNull([o].[OrderID] + [o].[OrderID]),0,[o].[OrderID] + [o].[OrderID])) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Compare_to_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_take_count_works() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [o].* - FROM ([Orders] AS [o] - INNER JOIN ( - SELECT [c].* - FROM [Customers] AS [c] - WHERE [c].[CustomerID] = 'ALFKI' - ) AS [t] ON [o].[CustomerID] = [t].[CustomerID]) - WHERE ([o].[OrderID] > 690) AND ([o].[OrderID] < 710) -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_date_add_year_constant_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('yyyy', IIf(IsNull([o].[OrderDate]), NULL, DateAdd('yyyy', -1, [o].[OrderDate]))) = 1997"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_in_complex_predicate() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[ProductID] > 100) AND ([p].[Discontinued] = True)) OR ([p].[Discontinued] = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_collection_navigation_to_null_complex() : - AssertSql( - @"SELECT [od].[ProductID], [od].[OrderID] -FROM ([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -WHERE ([od].[OrderID] < 10250) AND [od#Order].[CustomerID] IS NOT NULL -ORDER BY [od].[OrderID], [od].[ProductID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bitwise_and_with_logical_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True) OR ([c].[CustomerID] = 'ANTON')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Complex_query_with_repeated_nested_query_model_compiles_correctly() : - AssertSql( - @"SELECT [outer].[CustomerID], [outer].[Address], [outer].[City], [outer].[CompanyName], [outer].[ContactName], [outer].[ContactTitle], [outer].[Country], [outer].[Fax], [outer].[Phone], [outer].[PostalCode], [outer].[Region] -FROM [Customers] AS [outer] -WHERE [outer].[CustomerID] = 'ALFKI'", - // - @"SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c0] - WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [cc1] - WHERE EXISTS ( - SELECT DISTINCT 1 - FROM ( - SELECT TOP 10 [inner1].* - FROM [Customers] AS [inner1] - ORDER BY [inner1].[CustomerID] - ) AS [t1]))), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Parameter_extraction_short_circuits_2() : - AssertSql( - @"@__dateFilter_Value_Month_0='7' -@__dateFilter_Value_Year_1='1996' - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10400) AND (([o].[OrderDate] IS NOT NULL AND (DatePart('m', [o].[OrderDate]) = @__dateFilter_Value_Month_0)) AND (DatePart('yyyy', [o].[OrderDate]) = @__dateFilter_Value_Year_1))", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Let_subquery_with_multiple_occurences() : - AssertSql( - @"SELECT ( - SELECT COUNT(*) - FROM [Order Details] AS [od0] - WHERE ([od0].[Quantity] < 10) AND ([o].[OrderID] = [od0].[OrderID]) -) AS [Count] -FROM [Orders] AS [o] -WHERE EXISTS ( - SELECT 1 - FROM [Order Details] AS [od] - WHERE ([od].[Quantity] < 10) AND ([o].[OrderID] = [od].[OrderID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE ([c].[City] = 'London') OR ([e].[City] = 'London')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Distinct_Skip_Take() : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT DISTINCT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] -) AS [t] -ORDER BY [t].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_and_parameter_compared_to_binary_expression_nested() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = IIf( - IIf( - [p].[ProductID] > 50, - True, - False - ) <> @__prm_0, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Orderby_added_for_client_side_GroupJoin_principal_to_dependent_LOJ() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City] AS [City1], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title], [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM ([Employees] AS [e1] -LEFT JOIN [Employees] AS [e2] ON [e1].[EmployeeID] = [e2].[ReportsTo]) -ORDER BY [e1].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_exp() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (EXP([od].[Discount]) > 1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_guid_newguid() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE NewGuid() <> '00000000-0000-0000-0000-000000000000'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_equals_on_mismatched_types_nullable_long_nullable_int() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_skip_null_coalesce_operator2() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[CompanyName], [c].[Region], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [c] - FROM [Customers] AS [c] - ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) -) AS [t] -ORDER BY [t].[c] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Projection_when_client_evald_subquery() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [t].[CustomerID], [c#Orders].[CustomerID] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Queryable_simple_anonymous_subquery() : - AssertSql( - @"@__p_0='91' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_arg() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_utcnow() : - AssertSql( - @"@__myDatetime_0='2015-04-10T00:00:00' (DbType = DateTime) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Now() <> @__myDatetime_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_math_round_int() : - AssertSql( - @"SELECT ROUND(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID])), 0) AS [A] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10250"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Manual_expression_tree_typed_null_equality() : - AssertSql( - @"SELECT IIf( - [o].[CustomerID] IS NULL, - [o#Customer].[City], - NULL -) -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o].[OrderID] < 10300"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_day_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('d', [o].[OrderDate]) = 4"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.QueryType_with_nav_defining_query() : - AssertSql( - @"@__ef_filter___searchTerm_0='A' (Nullable = false) (Size = 1) -@__ef_filter___searchTerm_1='A' (Nullable = false) (Size = 1) - -SELECT [t].[CompanyName], [t].[OrderCount], [t].[SearchTerm] -FROM ( - SELECT [c].[CompanyName], ( - SELECT COUNT(*) - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ) AS [OrderCount], @__ef_filter___searchTerm_0 AS [SearchTerm] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[CompanyName] LIKE @__ef_filter___searchTerm_1 + '%' AND ([t].[OrderCount] > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_integer() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.All_top_level_column() : - AssertSql( - @"SELECT IIf( - NOT EXISTS ( - SELECT 1 - FROM [Customers] AS [c] - WHERE NOT ([c].[ContactName] LIKE [c].[ContactName] + '%')), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_bitwise_or() : - AssertSql( - @"SELECT [c].[CustomerID], IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Selected_column_can_coalesce() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_multi_level5() : - AssertSql( - @"SELECT IIf(IsNull(( - SELECT TOP 1 ( - SELECT TOP 1 [od].[ProductID] - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] <> ( - SELECT COUNT(*) - FROM [Orders] AS [o0] - WHERE [c].[CustomerID] = [o0].[CustomerID] - )) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -)), 0, ( - SELECT TOP 1 ( - SELECT TOP 1 [od].[ProductID] - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] <> ( - SELECT COUNT(*) - FROM [Orders] AS [o0] - WHERE [c].[CustomerID] = [o0].[CustomerID] - )) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -)) AS [Order] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Anonymous_member_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_on_collection() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE 5 IN ( - SELECT [o].[Quantity] - FROM [Order Details] AS [o] - WHERE [o].[ProductID] = [p].[ProductID] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_ThenBy_same_column_different_direction() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Sum_on_float_column_in_subquery() : - AssertSql( - @"SELECT [o].[OrderID], ( - SELECT CSng(IIf(IsNull(SUM([od].[Discount])),0,SUM([od].[Discount]))) - FROM [Order Details] AS [od] - WHERE [o].[OrderID] = [od].[OrderID] -) AS [Sum] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10300"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.All_top_level_subquery_ef_property() : - AssertSql( - @"SELECT IIf( - NOT EXISTS ( - SELECT 1 - FROM [Customers] AS [c1] - WHERE NOT (( - SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c2] - WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [c3] - WHERE [c1].[CustomerID] = [c3].[CustomerID])), - True, - False - ) - FROM (SELECT COUNT(*) FROM MSysAccessStorage) - ) = True)), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Single_Predicate() : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [o].[OrderID] IS NOT NULL AND ([o].[CustomerID] = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_collection_complex_predicate_and() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ALFKI', 'ABCDE') AND [c].[CustomerID] IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Last_Predicate() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_constant() : - AssertSql( - @"@__predicate_0='True' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE @__predicate_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_tan() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (TAN([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_de_morgan_and_optimizated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) OR ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_bool_constant() : - AssertSql( - @"SELECT IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition2_FirstOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t] -WHERE [t].[FirstName] = ( - SELECT TOP 1 [e0].[FirstName] - FROM [Employees] AS [e0] - ORDER BY [e0].[EmployeeID] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_select_many() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -, [Employees] AS [e]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_bitwise_and_with_logical_and() : - AssertSql( - @"SELECT [c].[CustomerID], IIf( - ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False - ) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False - )) = True) AND ([c].[CustomerID] = 'ANTON'), - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_compared_to_binary_expression() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = IIf( - [p].[ProductID] > 50, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_references_are_updated_correctly_with_subquery() : - AssertSql( - @"@__nextYear_0='2017' - -SELECT [t].[c] -FROM ( - SELECT DISTINCT DatePart('yyyy', [o].[OrderDate]) AS [c] - FROM [Orders] AS [o] - WHERE [o].[OrderDate] IS NOT NULL -) AS [t] -WHERE [t].[c] < @__nextYear_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_OrderBy_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty3() : - AssertSql( - @"@__p_0='1' - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM (( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -LEFT JOIN [Orders] AS [o] ON [t].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Complex_nested_query_doesnt_try_binding_to_grandparent_when_parent_returns_complex_result() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"@_outer_CustomerID1='ALFKI' (Nullable = false) (Size = 5) -@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) -@_outer_CustomerID2='ALFKI' (Nullable = false) (Size = 5) - -SELECT ( - SELECT COUNT(*) - FROM [Orders] AS [o0] - WHERE @_outer_CustomerID1 = [o0].[CustomerID] -) AS [InnerOrder], @_outer_CustomerID2 AS [Id] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Project_single_element_from_collection_with_OrderBy_over_navigation_Take_and_FirstOrDefault_2() : - AssertSql( - @"SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10250", - // - @"@_outer_OrderID='10248' - -SELECT TOP 1 [t].* -FROM ( - SELECT TOP 1 [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice], [od#Product].[ProductName] - FROM ([Order Details] AS [od] - INNER JOIN [Products] AS [od#Product] ON [od].[ProductID] = [od#Product].[ProductID]) - WHERE @_outer_OrderID = [od].[OrderID] - ORDER BY [od#Product].[ProductName] -) AS [t] -ORDER BY [t].[ProductName]", - // - @"@_outer_OrderID='10249' - -SELECT TOP 1 [t].* -FROM ( - SELECT TOP 1 [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice], [od#Product].[ProductName] - FROM ([Order Details] AS [od] - INNER JOIN [Products] AS [od#Product] ON [od].[ProductID] = [od#Product].[ProductID]) - WHERE @_outer_OrderID = [od].[OrderID] - ORDER BY [od#Product].[ProductName] -) AS [t] -ORDER BY [t].[ProductName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_over_entityType_should_rewrite_to_identity_equality() : - AssertSql( - @"SELECT TOP 2 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderID] = 10248", - // - @"@__p_0_OrderID='10248' - -SELECT IIf( - @__p_0_OrderID IN ( - SELECT [o].[OrderID] - FROM [Orders] AS [o] - WHERE [o].[CustomerID] = 'VINET' - ), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_now() : - AssertSql( - @"@__myDatetime_0='2015-04-10T00:00:00' (DbType = DateTime) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Now() <> @__myDatetime_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_SelectMany() : - AssertSql( - @"SELECT [c].[ContactName], [t].[OrderID] -FROM [Customers] AS [c] -, ( - SELECT TOP 3 [o].* - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] -WHERE [c].[CustomerID] = [t].[CustomerID] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple_subquery() : - AssertSql( - @"@__p_0='4' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty2() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Employees] AS [e] -LEFT JOIN [Orders] AS [o] ON [e].[EmployeeID] = [o].[EmployeeID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_project_filter() : - AssertSql( - @"SELECT [c].[CompanyName] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_correlated_client_eval() : - AssertSql( - @"@__p_0='5' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] -) AS [t] -ORDER BY [t].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID = [c2].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID = [c2].[CustomerID]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID = [c2].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID = [c2].[CustomerID]", - // - @"@_outer_CustomerID='BERGS' (Nullable = false) (Size = 5) - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID = [c2].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.IsNullOrEmpty_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[Region] IS NULL OR ([c].[Region] = '')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_equals_using_object_overload_on_mismatched_types() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_simple_projection() : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[City] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Replace_with_emptystring() : - AssertSql( - @"SELECT Replace([c].[ContactName], 'ari', '') -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_date_add_year() : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderDate]), NULL, DateAdd('yyyy', 1, [o].[OrderDate])) AS [OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Distinct_Take_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT DISTINCT TOP @__p_0 [o].* - FROM [Orders] AS [o] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_entity_equality_multiple_elements_FirstOrDefault() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE ( - SELECT TOP 1 [e2].[EmployeeID] - FROM [Employees] AS [e2] - WHERE ([e2].[EmployeeID] <> [e1].[ReportsTo]) OR [e1].[ReportsTo] IS NULL -) = 0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_false_shadow() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_all_not_equals_static() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] NOT IN ('ABCDE', 'ALFKI', 'ANATR')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Skip() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_year_component() : - AssertSql( - @"SELECT DatePart('yyyy', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_order_by_key_descending2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] LIKE 'A' + '%' -ORDER BY [c].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_compare_with_parameter() : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_OrderBy_ThenBy_Any() : - AssertSql( - @"SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c] - , [Orders] AS [o]), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Subquery_member_pushdown_does_not_change_original_subquery_model() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[CustomerID], [t].[OrderID] -FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]", - // - @"@_outer_CustomerID='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c0].[City] -FROM [Customers] AS [c0] -WHERE [c0].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='TOMSP' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c0].[City] -FROM [Customers] AS [c0] -WHERE [c0].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='HANAR' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c0].[City] -FROM [Customers] AS [c0] -WHERE [c0].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID1='TOMSP' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE [c2].[CustomerID] = @_outer_CustomerID1", - // - @"@_outer_CustomerID1='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE [c2].[CustomerID] = @_outer_CustomerID1", - // - @"@_outer_CustomerID1='HANAR' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE [c2].[CustomerID] = @_outer_CustomerID1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Let_entity_equality_to_other_entity() : - AssertSql( - @"SELECT [c].[CustomerID], ( - SELECT TOP 1 [e2].[OrderDate] - FROM [Orders] AS [e2] - WHERE [c].[CustomerID] = [e2].[CustomerID] - ORDER BY [e2].[OrderDate] -) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID1='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e1].[OrderID], [e1].[CustomerID], [e1].[EmployeeID], [e1].[OrderDate] -FROM [Orders] AS [e1] -WHERE @_outer_CustomerID1 = [e1].[CustomerID] -ORDER BY [e1].[OrderDate]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID1='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e1].[OrderID], [e1].[CustomerID], [e1].[EmployeeID], [e1].[OrderDate] -FROM [Orders] AS [e1] -WHERE @_outer_CustomerID1 = [e1].[CustomerID] -ORDER BY [e1].[OrderDate]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID1='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e1].[OrderID], [e1].[CustomerID], [e1].[EmployeeID], [e1].[OrderDate] -FROM [Orders] AS [e1] -WHERE @_outer_CustomerID1 = [e1].[CustomerID] -ORDER BY [e1].[OrderDate]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID1='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e1].[OrderID], [e1].[CustomerID], [e1].[EmployeeID], [e1].[OrderDate] -FROM [Orders] AS [e1] -WHERE @_outer_CustomerID1 = [e1].[CustomerID] -ORDER BY [e1].[OrderDate]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_entity_equality_no_elements_FirstOrDefault() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE ( - SELECT TOP 1 [e2].[EmployeeID] - FROM [Employees] AS [e2] - WHERE [e2].[EmployeeID] = 42 -) = 0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_from_unary_expression_introduces_explicit_cast1() : - AssertSql( - @"SELECT CLng(IIf(IsNull(-[o].[OrderID]),0,-[o].[OrderID])) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.TrimEnd_without_arguments_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE RTrim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_Any_with_predicate() : - AssertSql( - @"@__p_0='5' - -SELECT IIf( - EXISTS ( - SELECT 1 - FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] - ) AS [t] - WHERE [t].[CustomerID] LIKE 'B' + '%'), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Exists_Inequality() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE (([o].[OrderDate] <> #10/24/2008 00:00:00#) OR [o].[OrderDate] IS NULL) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToInt32() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_month_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('m', [o].[OrderDate]) = 4"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Exists() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[OrderDate] = #10/24/2008 00:00:00#) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_is_null() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_correlated_subquery_ordered() : - AssertSql( - @"@__p_0='3' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_Where_Subquery_Deep_Single() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[OrderID] = 10344", - // - @"@_outer_OrderID='10344' - -SELECT TOP 2 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE @_outer_OrderID = [o0].[OrderID]", - // - @"@_outer_CustomerID1='WHITC' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID1 = [c2].[CustomerID]", - // - @"@_outer_OrderID='10344' - -SELECT TOP 2 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE @_outer_OrderID = [o0].[OrderID]", - // - @"@_outer_CustomerID1='WHITC' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID1 = [c2].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_GroupJoin_DefaultIfEmpty_Where() : - AssertSql( - @"SELECT [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM (([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -LEFT JOIN [Orders] AS [o2] ON [c].[CustomerID] = [o2].[CustomerID]) -WHERE [o2].[OrderID] IS NOT NULL AND ([o2].[CustomerID] = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_log10() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE (([od].[OrderID] = 11077) AND ([od].[Discount] > 0)) AND ((Log([od].[Discount]) / 2.3025850929940459) < 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_collection_complex_predicate_not_matching_ins2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI') AND [c].[CustomerID] NOT IN ('ALFKI', 'ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_Where_Subquery_Deep_First() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ( - SELECT TOP 1 ( - SELECT TOP 1 [c].[City] - FROM [Customers] AS [c] - WHERE [o].[CustomerID] = [c].[CustomerID] - ) - FROM [Orders] AS [o] - WHERE [od].[OrderID] = [o].[OrderID] -) = 'Seattle'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_null_is_not_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_parameter_compared_to_binary_expression() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE IIf( - [p].[ProductID] > 50, - True, - False -) <> @__prm_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_Where_Count_with_predicate_client_eval_mixed() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] <> 'ALFKI') OR [o].[CustomerID] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_coalesce() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])),0,IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])))) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_negated_twice() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_from_unary_expression_introduces_explicit_cast2() : - AssertSql( - @"SELECT -CLng(IIf(IsNull([o].[OrderID]),0,[o].[OrderID])) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Distinct_Skip() : - AssertSql( - @"@__p_0='5' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT DISTINCT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] -) AS [t] -ORDER BY [t].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_order_by_key_descending1() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] LIKE 'A' + '%' -ORDER BY [c].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_on_float_column() : - AssertSql( - @"SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od].[Discount]),0,[od].[Discount])))),0,AVG(CSng(IIf(IsNull([od].[Discount]),0,[od].[Discount]))))) -FROM [Order Details] AS [od] -WHERE [od].[ProductID] = 1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_where_any() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[City] = 'México D.F.') AND [c].[CustomerID] IN ('ABCDE', 'ALFKI', 'ANATR')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_minute_component() : - AssertSql( - @"SELECT DatePart('n', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Anonymous_complex_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [A] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[A] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_null_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_atan() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Atn([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_list_closure() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_simple1() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Employees] AS [e] -, [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bitwise_or_with_logical_and() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True) AND ([c].[Country] = 'Germany')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_entity_equality_one_element_SingleOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.No_orderby_added_for_client_side_GroupJoin_dependent_to_principal_LOJ() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID] AS [Id1], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetimeoffset_utcnow_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_count_using_anonymous_type() : - AssertSql( - @"SELECT ( - SELECT COUNT(*) - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] -) AS [Count] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bitwise_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_asin() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Atn([od].[Discount] / Sqr(-[od].[Discount] * [od].[Discount] + 1)) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_method_call_closure_via_query_cache() : - AssertSql( - @"@__GetCity_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0", - // - @"@__GetCity_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bitwise_or_with_logical_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True) OR ([c].[CustomerID] = 'ANTON')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_arg_expression() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID] + [o].[OrderID]),0,[o].[OrderID] + [o].[OrderID]))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Project_single_element_from_collection_with_OrderBy_Take_and_SingleOrDefault() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 2 [t0].[CustomerID] -FROM ( - SELECT TOP 1 [o0].[CustomerID], [o0].[OrderID] - FROM [Orders] AS [o0] - WHERE @_outer_CustomerID = [o0].[CustomerID] - ORDER BY [o0].[OrderID] -) AS [t0] -ORDER BY [t0].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Any_predicate() : - AssertSql( - @"SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c] - WHERE [c].[ContactName] LIKE 'A' + '%'), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_year_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('yyyy', [o].[OrderDate]) = 1998"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_project_filter2() : - AssertSql( - @"SELECT [c].[City] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + 'b'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_SelectMany_subquery_with_filter() : - AssertSql( - @"SELECT [c].[ContactName], [t].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT [o].* - FROM [Orders] AS [o] - WHERE [o].[OrderID] > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_composite_key() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON ([c].[CustomerID] = [o].[CustomerID]) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Lifting_when_subquery_nested_order_by_anonymous() : - AssertSql( - @"@__p_0='2' - -SELECT [c1_Orders].[OrderID], [c1_Orders].[CustomerID], [c1_Orders].[EmployeeID], [c1_Orders].[OrderDate], [t0].[CustomerID] -FROM ([Orders] AS [c1_Orders] -INNER JOIN ( - SELECT DISTINCT [t].[CustomerID] - FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] - ) AS [t] - , [Customers] AS [c2] -) AS [t0] ON [c1_Orders].[CustomerID] = [t0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_different_entity_types_using_Equals() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OfType_Select() : - AssertSql( - @"SELECT TOP 1 [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_OrderBy_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_Where_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_Customers_Orders_Skip_Take() : - AssertSql( - @"@__p_1='5' -@__p_0='10' - -SELECT TOP @__p_1+@__p_0 [c].[ContactName], [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [o].[OrderID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Order_by_length_twice() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY CInt(IIf(IsNull(Len([c].[CustomerID])),0,Len([c].[CustomerID]))), [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Trim_without_argument_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Trim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_dayOfYear_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('y', [o].[OrderDate]) = 68"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_from_method_call_introduces_explicit_cast() : - AssertSql( - @"SELECT CLng(IIf(IsNull(ABS([o].[OrderID])),0,ABS([o].[OrderID]))) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many_or2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN ('London', 'Berlin')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_from_length_introduces_explicit_cast() : - AssertSql( - @"SELECT CLng(IIf(IsNull(CInt(IIf(IsNull(Len([o].[CustomerID])),0,Len([o].[CustomerID])))),0,CInt(IIf(IsNull(Len([o].[CustomerID])),0,Len([o].[CustomerID]))))) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_second_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('s', [o].[OrderDate]) = 44"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.New_date_time_in_anonymous_type_works() : - AssertSql( - @"SELECT 1 -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_simple_subquery() : - AssertSql( - @"@__p_0='9' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t] -, [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_indexer_closure() : - AssertSql( - @"@__p_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Compare_two_collection_navigations_with_different_query_sources() : - AssertSql( - @"SELECT [c1].[CustomerID] AS [Id1], [c2].[CustomerID] AS [Id2] -FROM [Customers] AS [c1] -, [Customers] AS [c2] -WHERE (([c1].[CustomerID] = 'ALFKI') AND ([c2].[CustomerID] = 'ALFKI')) AND ([c1].[CustomerID] = [c2].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_different_outer_elements_with_same_key_projected_from_another_entity() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM (([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -LEFT JOIN [Customers] AS [c] ON [od#Order].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Not_Exists() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE False = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Contains_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr(1, [c].[ContactName], [c].[ContactName], 0) > 0) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_new_instance_field_access_closure_via_query_cache() : - AssertSql( - @"@__InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0", - // - @"@__InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_orderBy_take_count() : - AssertSql( - @"@__p_0='7' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[Country] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_int_to_string() : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderID]), NULL, CStr([o].[OrderID])) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_subquery_involving_join_binds_to_correct_table() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] > 11000) AND [o].[OrderID] IN ( - SELECT [od].[OrderID] - FROM ([Order Details] AS [od] - INNER JOIN [Products] AS [od#Product] ON [od].[ProductID] = [od#Product].[ProductID]) - WHERE [od#Product].[ProductName] = 'Chai' -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Projection_in_a_subquery_should_be_liftable() : - AssertSql( - @"@__p_0='1' - -SELECT [e].[EmployeeID] -FROM [Employees] AS [e] -ORDER BY [e].[EmployeeID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_division_on_decimal_no_significant_digits() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull([od].[Quantity] / 2.0),0,[od].[Quantity] / 2.0))) -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_today() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_Customers_Orders_Orders_Skip_Take_Same_Properties() : - AssertSql( - @"@__p_1='5' -@__p_0='10' - -SELECT TOP @__p_1+@__p_0 [o].[OrderID], [ca].[CustomerID] AS [CustomerIDA], [cb].[CustomerID] AS [CustomerIDB], [ca].[ContactName] AS [ContactNameA], [cb].[ContactName] AS [ContactNameB] -FROM (([Orders] AS [o] -INNER JOIN [Customers] AS [ca] ON [o].[CustomerID] = [ca].[CustomerID]) -INNER JOIN [Customers] AS [cb] ON [o].[CustomerID] = [cb].[CustomerID]) -ORDER BY [o].[OrderID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_acos() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND ((1.5707963267948966 + Atn(-[od].[Discount] / Sqr(-[od].[Discount] * [od].[Discount] + 1))) > 1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_simple2() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e2].[FirstName] AS [FirstName0] -FROM [Employees] AS [e1] -, [Customers] AS [c] -, [Employees] AS [e2]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE [e1].[FirstName] = ( - SELECT TOP 1 [e].[FirstName] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many_or4() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN ('London', 'Berlin', 'Seattle', 'Lisboa')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_on_float_column_in_subquery_with_cast() : - AssertSql( - @"SELECT [o].[OrderID], ( - SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od].[Discount]),0,[od].[Discount])))),0,AVG(CSng(IIf(IsNull([od].[Discount]),0,[od].[Discount]))))) - FROM [Order Details] AS [od] - WHERE [o].[OrderID] = [od].[OrderID] -) AS [Sum] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10300"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM [Customers] AS [c] -, [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_distinct_average() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([t].[OrderID]),0,[t].[OrderID]))) -FROM ( - SELECT DISTINCT [o].[OrderID] - FROM [Orders] AS [o] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_DTO_with_member_init_distinct_in_subquery_translated_to_server() : - AssertSql( - @"SELECT [t].[Id], [t].[Count], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ( - SELECT DISTINCT [o].[CustomerID] AS [Id], [o].[OrderID] AS [Count] - FROM [Orders] AS [o] - WHERE [o].[OrderID] < 10300 -) AS [t] -, [Customers] AS [c] -WHERE [c].[CustomerID] = [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Environment_newline_is_funcletized() : line_is_funcletized() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\Query\SimpleQueryJetTest.cs:riga 2703 - AssertSql( - @"@__NewLine_0=' -' (Nullable = false) (Size = 2) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr(1, [c].[CustomerID], @__NewLine_0, 0) > 0) OR (@__NewLine_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Anonymous_complex_orderby() : - AssertSql( - @"SELECT [c].[CustomerID] + [c].[City] AS [A] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] + [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_short_member_comparison() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[UnitsInStock] > 10"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Sum_with_coalesce() : - AssertSql( - @"SELECT SUM(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Any_simple() : - AssertSql( - @"SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c]), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_multi_level6() : - AssertSql( - @"SELECT IIf(IsNull(( - SELECT TOP 1 ( - SELECT TOP 1 [od].[ProductID] - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] <> CInt(IIf(IsNull(Len([c].[CustomerID])),0,Len([c].[CustomerID])))) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -)), 0, ( - SELECT TOP 1 ( - SELECT TOP 1 [od].[ProductID] - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] <> CInt(IIf(IsNull(Len([c].[CustomerID])),0,Len([c].[CustomerID])))) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -)) AS [Order] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_entity_deep() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title], [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title], [e3].[EmployeeID], [e3].[City], [e3].[Country], [e3].[FirstName], [e3].[ReportsTo], [e3].[Title], [e4].[EmployeeID], [e4].[City], [e4].[Country], [e4].[FirstName], [e4].[ReportsTo], [e4].[Title] -FROM [Employees] AS [e1] -, [Employees] AS [e2] -, [Employees] AS [e3] -, [Employees] AS [e4]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_day_component() : - AssertSql( - @"SELECT DatePart('d', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Any_nested3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%') AND (([c].[City] <> 'London') OR [c].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToString() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) <> '10')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_SelectMany_subquery_with_filter_orderby_and_DefaultIfEmpty() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_Distinct_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT DISTINCT [t].* - FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - ) AS [t] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_multi_level() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_All() : - AssertSql( - @"SELECT IIf( - NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] <> 'ALFKI') OR [o].[CustomerID] IS NULL), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bitwise_and() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_hour_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('h', [o].[OrderDate]) = 14"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_shadow() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToInt16() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_via_query_cache_nullable_type_reverse() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Filter_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE IIf(IsNull([c].[CompanyName]), [c].[ContactName], [c].[CompanyName]) = 'The Big Cheese'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_not_in_optimization4() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] NOT IN ('London', 'Berlin', 'Seattle', 'Lisboa')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Last() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToDecimal() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0.0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_All() : - AssertSql( - @"@__p_0='4' - -SELECT IIf( - NOT EXISTS ( - SELECT 1 - FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] - ) AS [t] - WHERE NOT ([t].[CustomerID] LIKE 'A' + '%')), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_closure_via_query_cache() : - AssertSql( - @"@__customerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] = @__customerID_0) AND ([o].[CustomerID] = [c].[CustomerID]))", - // - @"@__customerID_0='ANATR' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] = @__customerID_0) AND ([o].[CustomerID] = [c].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_projection() : - AssertSql( - @"SELECT [c].[ContactName], [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Method_with_constant_queryable_arg() : - AssertSql( - @"SELECT COUNT(*) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ALFKI')", - // - @"SELECT COUNT(*) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('FOO')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_projection2() : - AssertSql( - @"SELECT [e1].[City], [e2].[Country], [e3].[FirstName] -FROM [Employees] AS [e1] -, [Employees] AS [e2] -, [Employees] AS [e3]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_any_equals_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI', 'ANATR')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Let_any_subquery_anonymous() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Orders] AS [o0] - WHERE [o0].[CustomerID] = @_outer_CustomerID), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Orders] AS [o0] - WHERE [o0].[CustomerID] = @_outer_CustomerID), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Orders] AS [o0] - WHERE [o0].[CustomerID] = @_outer_CustomerID), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Orders] AS [o0] - WHERE [o0].[CustomerID] = @_outer_CustomerID), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_multi_level4() : - AssertSql( - @"SELECT IIf(IsNull(( - SELECT TOP 1 ( - SELECT COUNT(*) - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] > 10) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -)), 0, ( - SELECT TOP 1 ( - SELECT COUNT(*) - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] > 10) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -)) AS [Order] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_Skip() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[ContactName] -) AS [t] -ORDER BY [t].[ContactName] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Multiple_joins_Where_Order_Any() : - AssertSql( - @"SELECT IIf( - EXISTS ( - SELECT 1 - FROM (([Customers] AS [c] - INNER JOIN [Orders] AS [or] ON [c].[CustomerID] = [or].[CustomerID]) - INNER JOIN [Order Details] AS [od] ON [or].[OrderID] = [od].[OrderID]) - WHERE [c].[City] = 'London'), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_null_coalesce_operator() : - AssertSql( - @"@__p_0='5' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[CompanyName], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [Region] -FROM [Customers] AS [c] -ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_ThenBy_Any() : - AssertSql( - @"SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c]), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_in_optimization_multiple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE ([c].[City] IN ('London', 'Berlin') OR ([c].[CustomerID] = 'ALFKI')) OR ([c].[CustomerID] = 'ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_orderby_select_many() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_constant_is_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_SelectMany_subquery_with_filter_orderby() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_same_collection_multiple() : - AssertSql( - @"SELECT [c3].[CustomerID], [c3].[Address], [c3].[City], [c3].[CompanyName], [c3].[ContactName], [c3].[ContactTitle], [c3].[Country], [c3].[Fax], [c3].[Phone], [c3].[PostalCode], [c3].[Region] -FROM (([Customers] AS [o] -INNER JOIN [Customers] AS [c2] ON [o].[CustomerID] = [c2].[CustomerID]) -INNER JOIN [Customers] AS [c3] ON [o].[CustomerID] = [c3].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_log() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE (([od].[OrderID] = 11077) AND ([od].[Discount] > 0)) AND (LOG([od].[Discount]) < 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.DTO_complex_orderby() : - AssertSql( - @"SELECT [c].[CustomerID] + [c].[City] AS [Property] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] + [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Skip_no_orderby() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a' - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_parameter() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_concat_string_int_comparison3() : - AssertSql( - @"@__i_0='10' -@__j_1='21' - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE ((((@__i_0 + 20&"""") + [c].[CustomerID]) + (@__j_1&"""")) + (42&"""")) = [c].[CompanyName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple_ordering() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_with_single() : - AssertSql( - @"@__p_0='1' - -SELECT TOP 2 [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_correlated_subquery_projection() : - AssertSql( - @"@__p_0='3' - -SELECT TOP @__p_0 [cc].[CustomerID] -FROM [Customers] AS [cc] -ORDER BY [cc].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.IsNullOrEmpty_in_projection() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], IIf( - [c].[Region] IS NULL OR ([c].[Region] = ''), - True, - False -) AS [Value] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Any_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_from_anonymous_type_introduces_explicit_cast() : - AssertSql( - @"SELECT CLng(IIf(IsNull([o].[OrderID]),0,[o].[OrderID])) AS [LongOrder], CInt(IIf(IsNull([o].[OrderID]),0,[o].[OrderID])) AS [ShortOrder], [o].[OrderID] AS [Order] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many_and() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE (([c].[City] = 'London') AND ([c].[Country] = 'UK')) AND (([e].[City] = 'London') AND ([e].[Country] = 'UK'))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_orderBy_take_long_count() : - AssertSql( - @"@__p_0='7' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[Country] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_long_count() : - AssertSql( - @"@__p_0='7' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_multiple_contains_in_subquery_with_or() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[ProductID] IN ( - SELECT TOP 1 [p].[ProductID] - FROM [Products] AS [p] - ORDER BY [p].[ProductID] -) OR [od].[OrderID] IN ( - SELECT TOP 1 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_tuple_item_closure() : - AssertSql( - @"@__predicateTuple_Item2_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__predicateTuple_Item2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_count_using_DTO() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], ( - SELECT COUNT(*) - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] -) AS [Count] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='BSBEV' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='CONSH' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='EASTC' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='NORTS' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='SEVES' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_equals_constant() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Any_nested_negated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.LastOrDefault() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_entities_using_Equals() : - AssertSql( - @"SELECT [c1].[CustomerID] AS [Id1], [c2].[CustomerID] AS [Id2] -FROM [Customers] AS [c1] -, [Customers] AS [c2] -WHERE [c1].[CustomerID] LIKE 'ALFKI' + '%' AND ([c1].[CustomerID] = [c2].[CustomerID]) -ORDER BY [c1].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Union_with_custom_projection() : - AssertSql( - @"SELECT [c1].[CustomerID], [c1].[Address], [c1].[City], [c1].[CompanyName], [c1].[ContactName], [c1].[ContactTitle], [c1].[Country], [c1].[Fax], [c1].[Phone], [c1].[PostalCode], [c1].[Region] -FROM [Customers] AS [c1] -WHERE [c1].[CompanyName] LIKE 'A' + '%'", - // - @"SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE [c2].[CompanyName] LIKE 'B' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_not_in_optimization3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] NOT IN ('London', 'Berlin', 'Seattle')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.DTO_member_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_different_outer_elements_with_same_key_with_predicate() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID]) -WHERE [o].[OrderID] > 11500"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_customers_orders_count() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_log_new_base() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE (([od].[OrderID] = 11077) AND ([od].[Discount] > 0)) AND ((Log([od].[Discount]) / Log(7)) < 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_correlated_subquery_filtered() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0", - // - @"@__city_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_LastOrDefault() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_not_in_optimization2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] NOT IN ('London', 'Berlin')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Exists_Constant() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE False = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_Where_Distinct_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT DISTINCT [t].* - FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - WHERE [o].[CustomerID] = 'FRANK' - ) AS [t] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_to_fixed_string_parameter() : - AssertSql( - @"@__prefix_0='A' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE @__prefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_true() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_where_all() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[City] = 'México D.F.') AND [c].[CustomerID] NOT IN ('ABCDE', 'ALFKI', 'ANATR')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_sqrt() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Sqr([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_with_subquery_predicate_with_take() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[ContactName], [t].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT TOP @__p_0 [o2].* - FROM [Orders] AS [o2] - WHERE [o2].[OrderID] > 0 - ORDER BY [o2].[OrderID] -) AS [t] ON [c].[CustomerID] = [t].[CustomerID]) -WHERE [t].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Queryable_simple_anonymous_projection_subquery() : - AssertSql( - @"@__p_0='91' - -SELECT TOP @__p_0 [c].[City] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_Distinct() : - AssertSql( - @"@__p_0='5' - -SELECT DISTINCT [t].* -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_de_morgan_or_optimizated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) AND ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_sum() : - AssertSql( - @"@__p_0='10' - -SELECT SUM([t].[OrderID]) -FROM ( - SELECT TOP @__p_0 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Local_array() : - AssertSql( - @"@__get_Item_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_over_entityType_should_materialize_when_composite() : - AssertSql( - @"SELECT TOP 1 [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice] -FROM [Order Details] AS [o] -WHERE ([o].[OrderID] = 10248) AND ([o].[ProductID] = 42)", - // - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice] -FROM [Order Details] AS [o] -WHERE [o].[ProductID] = 42"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + [c].[ContactName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_navigation_contains() : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]", - // - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_binary_expression() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID] * 2),0,[o].[OrderID] * 2))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_indexof() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_anonymous_conditional_expression() : - AssertSql( - @"SELECT [p].[ProductID], IIf( - [p].[UnitsInStock] > 0, - True, - False -) AS [IsAvailable] -FROM [Products] AS [p]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_collection_complex_predicate_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI', 'ALFKI', 'ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_join_orderby_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM (([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -INNER JOIN [Order Details] AS [od] ON [o].[OrderID] = [od].[OrderID]) -WHERE [c].[CustomerID] <> 'ALFKI' -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_truncate() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE Int([od].[UnitPrice]) > 10.0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE [c].[ContactName] + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_anonymous_constant_in_expression() : - AssertSql( - @"SELECT [c].[CustomerID], CInt(IIf(IsNull(Len([c].[CustomerID])),0,Len([c].[CustomerID]))) + 5 AS [Expression] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_negated_boolean_expression_compared_to_another_negated_boolean_expression() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE IIf( - [p].[ProductID] > 50, - True, - False -) = IIf( - [p].[ProductID] > 20, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_skip_take() : - AssertSql( - @"@__p_1='8' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactTitle], [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Subquery_is_null_translated_correctly() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ( - SELECT TOP 1 [o].[CustomerID] - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ORDER BY [o].[OrderID] DESC -) IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_collection_complex_predicate_not_matching_ins1() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ALFKI', 'ABCDE') OR [c].[CustomerID] NOT IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_subquery_and_local_array_closure() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [c1] - WHERE [c1].[City] IN ('London', 'Buenos Aires') AND ([c1].[CustomerID] = [c].[CustomerID]))", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [c1] - WHERE [c1].[City] IN ('London') AND ([c1].[CustomerID] = [c].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_array_closure() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI')", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0", - // - @"@__city_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_not_bool_member_compared_to_binary_expression() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] <> IIf( - [p].[ProductID] > 50, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_navigations_using_Equals() : - AssertSql( - @"SELECT [o1].[OrderID] AS [Id1], [o2].[OrderID] AS [Id2] -FROM [Orders] AS [o1] -, [Orders] AS [o2] -WHERE [o1].[CustomerID] LIKE 'A' + '%' AND (([o1].[CustomerID] = [o2].[CustomerID]) OR ([o1].[CustomerID] IS NULL AND [o2].[CustomerID] IS NULL)) -ORDER BY [o1].[OrderID], [o2].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_cartesian_product_with_ordering() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[City] AS [City0] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE ([c].[City] = [e].[City]) OR ([c].[City] IS NULL AND [e].[City] IS NULL) -ORDER BY [e].[City], [c].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_ternary_boolean_condition_with_another_condition() : - AssertSql( - @"@__productId_0='15' -@__flag_1='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[ProductID] < @__productId_0) AND (((@__flag_1 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_1 <> True) AND ([p].[UnitsInStock] < 20)))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_constant() : - AssertSql( - @"SELECT Mid([c].[ContactName], 2, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_second_component() : - AssertSql( - @"SELECT DatePart('s', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Handle_materialization_properly_when_more_than_two_query_sources_are_involved() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -, [Orders] AS [o] -, [Employees] AS [e] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_bitwise_and_or() : - AssertSql( - @"SELECT [c].[CustomerID], (IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) BOR IIf( - [c].[CustomerID] = 'ANTON', - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_MethodCall() : - AssertSql( - @"@__LocalMethod2_0='m' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + @__LocalMethod2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Project_single_element_from_collection_with_OrderBy_Distinct_and_FirstOrDefault() : - AssertSql( - @"SELECT ( - SELECT DISTINCT TOP 1 [o].[CustomerID] - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] -) -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_conditional_with_null_comparison_in_test() : - AssertSql( - @"SELECT IIf( - [o].[CustomerID] IS NULL OR ([o].[CustomerID] IS NOT NULL AND ([o].[OrderID] < 100)), - True, - False -) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bitwise_and_with_logical_and() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True) AND ([c].[CustomerID] = 'ANTON')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_substring() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Mid([c].[City], 2, 2) = 'ea'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_entity_equality_no_elements_SingleOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = 42", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = 42", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = 42"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Query_expression_with_to_string_and_contains() : - AssertSql( - @"SELECT [o].[CustomerID] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL AND (Instr(1, IIf(IsNull([o].[EmployeeID]), NULL, CStr([o].[EmployeeID])), '10', 0) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_LongCount() : - AssertSql( - @"SELECT COUNT(*) -FROM [Customers] AS [c] -, [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_SelectMany_subquery_with_filter_and_DefaultIfEmpty() : - AssertSql( - @"SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate], [c].[ContactName] -FROM ([Customers] AS [c] -LEFT JOIN ( - SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - WHERE [o].[OrderID] > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_complex_negated_expression_optimized() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[Discontinued] = False) AND ([p].[ProductID] < 60)) AND ([p].[ProductID] > 30)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Skip_Take() : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.TrimStart_without_arguments_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE LTrim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.IsNullOrEmpty_negated_in_projection() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], IIf( - [c].[Region] IS NOT NULL AND ([c].[Region] <> ''), - True, - False -) AS [Value] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.All_top_level_subquery() : - AssertSql( - @"SELECT IIf( - NOT EXISTS ( - SELECT 1 - FROM [Customers] AS [c1] - WHERE NOT (( - SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c2] - WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [c3] - WHERE [c1].[CustomerID] = [c3].[CustomerID])), - True, - False - ) - FROM (SELECT COUNT(*) FROM MSysAccessStorage) - ) = True)), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_replace() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Replace([c].[City], 'Sea', 'Rea') = 'Reattle'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_concat_with_navigation1() : - AssertSql( - @"SELECT ([o].[CustomerID] + ' ') + [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_shadow_subquery_FirstOrDefault() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[Title] = ( - SELECT TOP 1 [e2].[Title] - FROM [Employees] AS [e2] - ORDER BY [e2].[Title] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_OrderBy_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Last() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_bitwise_and() : - AssertSql( - @"SELECT [c].[CustomerID], IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Streaming_chained_sync_query() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"SELECT [y#Customer].[CustomerID], [y#Customer].[Address], [y#Customer].[City], [y#Customer].[CompanyName], [y#Customer].[ContactName], [y#Customer].[ContactTitle], [y#Customer].[Country], [y#Customer].[Fax], [y#Customer].[Phone], [y#Customer].[PostalCode], [y#Customer].[Region] -FROM [Customers] AS [y#Customer]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Any_nested2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_dictionary_key_access_closure() : - AssertSql( - @"@__get_Item_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_Subquery_Single() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [od].[OrderID] -FROM [Order Details] AS [od] -ORDER BY [od].[ProductID], [od].[OrderID]", - // - @"@_outer_OrderID='10285' - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_OrderID = [o].[OrderID] -ORDER BY [o].[OrderID]", - // - @"@_outer_OrderID='10294' - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_OrderID = [o].[OrderID] -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_to_upper() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE UCase([c].[CustomerID]) = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_long_to_string() : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderID]), NULL, CStr([o].[OrderID])) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_ternary_boolean_condition_false() : - AssertSql( - @"@__flag_0='False' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ((@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_0 <> True) AND ([p].[UnitsInStock] < 20))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_FirstOrDefault_is_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ( - SELECT TOP 1 [o].[OrderID] - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ORDER BY [o].[OrderID] -) IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_with_subquery_anonymous_property_method_with_take() : - AssertSql( - @"@__p_0='5' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT TOP @__p_0 [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] - FROM [Orders] AS [o2] - ORDER BY [o2].[OrderID] -) AS [t]", - // - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_other_to_string() : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderDate]), NULL, CStr([o].[OrderDate])) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many_or_with_parameter() : - AssertSql( - @"@__london_0='London' (Nullable = false) (Size = 6) -@__lisboa_1='Lisboa' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN (@__london_0, 'Berlin', 'Seattle', @__lisboa_1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition4() : - AssertSql( - @"@__p_0='2' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t]", - // - @"SELECT 1 -FROM [Customers] AS [c0] -ORDER BY [c0].[CustomerID]", - // - @"SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2]", - // - @"SELECT 1 -FROM [Customers] AS [c0] -ORDER BY [c0].[CustomerID]", - // - @"SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Any_nested_negated3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%') AND (([c].[City] <> 'London') OR [c].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_navigations_using_static_Equals() : - AssertSql( - @"SELECT [o1].[OrderID] AS [Id1], [o2].[OrderID] AS [Id2] -FROM [Orders] AS [o1] -, [Orders] AS [o2] -WHERE [o1].[CustomerID] LIKE 'A' + '%' AND (([o1].[CustomerID] = [o2].[CustomerID]) OR ([o1].[CustomerID] IS NULL AND [o2].[CustomerID] IS NULL)) -ORDER BY [o1].[OrderID], [o2].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_non_matching_entities_using_Equals() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id1], [o].[OrderID] AS [Id2] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_any_equals_static() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI', 'ANATR')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_cos() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (COS([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_short_constant() : - AssertSql( - @"SELECT IIf( - [c].[CustomerID] = 'ALFKI', - 1, - 2 -) -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_hour_component() : - AssertSql( - @"SELECT DatePart('h', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_entities() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.FirstOrDefault_inside_subquery_gets_server_evaluated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND (( - SELECT TOP 1 [o].[CustomerID] - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] = 'ALFKI') AND ([c].[CustomerID] = [o].[CustomerID]) -) = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_nested_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0", - // - @"@__city_Nested_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_comparison_to_nullable_bool() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE '%' + 'KI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_orderby_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] <> 'ALFKI' -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Compare_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_with_single_select_many() : - AssertSql( - @"@__p_0='1' - -SELECT TOP 2 [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID] AS [CustomerID0], [o].[EmployeeID], [o].[OrderDate] - FROM [Customers] AS [c] - , [Orders] AS [o] - ORDER BY [c].[CustomerID], [o].[OrderID] -) AS [t] -ORDER BY [t].[CustomerID], [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_all_not_equals_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] NOT IN ('ABCDE', 'ALFKI', 'ANATR')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Let_entity_equality_to_null() : - AssertSql( - @"SELECT [c].[CustomerID], ( - SELECT TOP 1 [e0].[OrderDate] - FROM [Orders] AS [e0] - WHERE [c].[CustomerID] = [e0].[CustomerID] - ORDER BY [e0].[OrderDate] -) AS [OrderDate] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_sign() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Sgn([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_parameter() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE @__prm_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Projection_when_arithmetic_mixed_subqueries() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]", - // - @"SELECT TOP 2 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 2 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 2 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Lifting_when_subquery_nested_order_by_simple() : - AssertSql( - @"@__p_0='2' - -SELECT [t0].[CustomerID] -FROM ( - SELECT DISTINCT [t].[CustomerID] - FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] - ) AS [t] - , [Customers] AS [c2] -) AS [t0]", - // - @"SELECT [c1_Orders].[OrderID], [c1_Orders].[CustomerID], [c1_Orders].[EmployeeID], [c1_Orders].[OrderDate] -FROM [Orders] AS [c1_Orders]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_distinct_long_count() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].* - FROM [Customers] AS [c] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_minute_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('n', [o].[OrderDate]) = 23"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_comparison_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[Region] = 'ASK', - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_Where_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.DTO_complex_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [Property] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[Property] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_list_inline() : line() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\Query\SimpleQueryJetTest.ResultOperators.cs:riga 793 - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_entity_to_null_using_Equals() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND [c].[CustomerID] IS NOT NULL -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_min() : - AssertSql( - @"@__p_0='10' - -SELECT MIN([t].[OrderID]) -FROM ( - SELECT TOP @__p_0 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_collection_false() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] NOT IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToDouble() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Compare_two_collection_navigations_with_different_property_chains() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id1], [o].[OrderID] AS [Id2] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE ([c].[CustomerID] = 'ALFKI') AND ([c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID], [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToInt64() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_month_component() : - AssertSql( - @"SELECT DatePart('m', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_any_equals() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI', 'ANATR')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Parameter_extraction_short_circuits_1() : - AssertSql( - @"@__dateFilter_Value_Month_0='7' -@__dateFilter_Value_Year_1='1996' - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10400) AND (([o].[OrderDate] IS NOT NULL AND (DatePart('m', [o].[OrderDate]) = @__dateFilter_Value_Month_0)) AND (DatePart('yyyy', [o].[OrderDate]) = @__dateFilter_Value_Year_1))", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10400"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_different_outer_elements_with_same_key() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_scalar_primitive_after_take() : - AssertSql( - @"@__p_0='9' - -SELECT TOP @__p_0 [e].[EmployeeID] -FROM [Employees] AS [e]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple3() : - AssertSql( - @"SELECT [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_multiple_contains_in_subquery_with_and() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[ProductID] IN ( - SELECT TOP 20 [p].[ProductID] - FROM [Products] AS [p] - ORDER BY [p].[ProductID] -) AND [od].[OrderID] IN ( - SELECT TOP 10 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_ternary_boolean_condition_with_false_as_result_false() : - AssertSql( - @"@__flag_0='False' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_bitwise_or_multiple() : - AssertSql( - @"SELECT [c].[CustomerID], (IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) BOR IIf( - [c].[CustomerID] = 'ANTON', - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Sum_on_float_column() : - AssertSql( - @"SELECT CSng(IIf(IsNull(SUM([od].[Discount])),0,SUM([od].[Discount]))) -FROM [Order Details] AS [od] -WHERE [od].[ProductID] = 1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_average() : - AssertSql( - @"@__p_0='10' - -SELECT AVG(CDbl(IIf(IsNull([t].[OrderID]),0,[t].[OrderID]))) -FROM ( - SELECT TOP @__p_0 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Indexof_with_emptystring() : - AssertSql( - @"SELECT [c].[ContactName] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_static_field_access_closure_via_query_cache() : - AssertSql( - @"@__StaticFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0", - // - @"@__StaticFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_conditional_operator_where_condition_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - False = True, - 'ZZ', - [c].[City] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_null_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[CompanyName], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [Region] -FROM [Customers] AS [c] -ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_byte_constant() : - AssertSql( - @"SELECT IIf( - [c].[CustomerID] = 'ALFKI', - 1, - 2 -) -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_many_cross_join_same_collection() : - AssertSql( - @"SELECT [c0].[CustomerID], [c0].[Address], [c0].[City], [c0].[CompanyName], [c0].[ContactName], [c0].[ContactTitle], [c0].[Country], [c0].[Fax], [c0].[Phone], [c0].[PostalCode], [c0].[Region] -FROM [Customers] AS [c] -, [Customers] AS [c0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_is_not_null() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_non_matching_collection_navigations_using_Equals() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id1], [o].[OrderID] AS [Id2] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Static_equals_int_compared_to_long() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_ternary_boolean_condition_with_false_as_result_true() : - AssertSql( - @"@__flag_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_division_on_decimal() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull([od].[Quantity] / 2.09),0,[od].[Quantity] / 2.09))) -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_not_in_optimization1() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND (([e].[City] <> 'London') OR [e].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + [c].[ContactName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_DTO_with_member_init_distinct_in_subquery_used_in_projection_translated_to_server() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [t].[Id], [t].[Count] -FROM [Customers] AS [c] -, ( - SELECT DISTINCT [o].[CustomerID] AS [Id], [o].[OrderID] AS [Count] - FROM [Orders] AS [o] - WHERE [o].[OrderID] < 10300 -) AS [t] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_array_index() : - AssertSql( - @"@__p_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_Customers_Orders_Projection_With_String_Concat_Skip_Take() : - AssertSql( - @"@__p_1='5' -@__p_0='10' - -SELECT TOP @__p_1+@__p_0 ([c].[ContactName] + ' ') + [c].[ContactTitle] AS [Contact], [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [o].[OrderID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Min_with_non_matching_types_in_projection_introduces_explicit_cast() : - AssertSql( - @"SELECT MIN(CLng(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_primitive() : - AssertSql( - @"@__p_0='9' - -SELECT [t].[EmployeeID] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID] - FROM [Employees] AS [e] -) AS [t] -WHERE [t].[EmployeeID] = 5"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_equals_on_mismatched_types_nullable_int_long() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_multi_level2() : - AssertSql( - @"SELECT ( - SELECT TOP 1 [o].[OrderDate] - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [OrderDates] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_DateTime_Date() : - AssertSql( - @"SELECT [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE IIf(IsNull([e].[OrderDate]), NULL, DateValue([e].[OrderDate])) IN (#07/04/1996 00:00:00#, #07/16/1996 00:00:00#)", - // - @"SELECT [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE IIf(IsNull([e].[OrderDate]), NULL, DateValue([e].[OrderDate])) IN (#07/04/1996 00:00:00#)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_tracking_groups() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE [c].[ContactName] + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition2_FirstOrDefault_with_anonymous() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetimeoffset_now_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_Dto_projection_skip_take() : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID] AS [Id] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.LastOrDefault_Predicate() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Any() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[OrderDate] = #10/24/2008 00:00:00#) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_customers_orders_count_preserves_ordering() : - AssertSql( - @"@__p_0='5' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM (( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - WHERE [c].[CustomerID] NOT IN ('VAFFE', 'DRACD') - ORDER BY [c].[City] -) AS [t] -LEFT JOIN [Orders] AS [o] ON [t].[CustomerID] = [o].[CustomerID]) -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_no_arg() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_day_of_year_component() : - AssertSql( - @"SELECT DatePart('y', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Parameter_extraction_short_circuits_3() : - AssertSql( - @"@__dateFilter_Value_Month_0='7' -@__dateFilter_Value_Year_1='1996' - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10400) OR (([o].[OrderDate] IS NOT NULL AND (DatePart('m', [o].[OrderDate]) = @__dateFilter_Value_Month_0)) AND (DatePart('yyyy', [o].[OrderDate]) = @__dateFilter_Value_Year_1))", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many_or3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN ('London', 'Berlin', 'Seattle')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_via_query_cache_nullable_type() : - AssertSql( - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_Where_OrderBy() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE ([o].[CustomerID] = 'ALFKI') OR ([c].[CustomerID] = 'ANATR') -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Projection_null_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[CompanyName], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToByte() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_false() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_FirstOrDefault_compared_to_entity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ( - SELECT TOP 1 [o].[OrderID] - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ORDER BY [o].[OrderID] -) = 10243"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_concat_string_int_comparison2() : - AssertSql( - @"@__i_0='10' - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE ((@__i_0&"""") + [c].[CustomerID]) = [c].[CompanyName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_client_Take() : - AssertSql( - @"@__p_1='10' - -SELECT TOP @__p_1 [o].[EmployeeID], [o].[City], [o].[Country], [o].[FirstName], [o].[ReportsTo], [o].[Title] -FROM [Employees] AS [o] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Compare_collection_navigation_with_itself() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND ([c].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_subquery_projection() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[City] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_sin() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (SIN([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_int_to_long_introduces_explicit_cast() : - AssertSql( - @"SELECT CLng(IIf(IsNull([o].[OrderID]),0,[o].[OrderID])) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_entity_equality_one_element_FirstOrDefault() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE ( - SELECT TOP 1 [e2].[EmployeeID] - FROM [Employees] AS [e2] - WHERE [e2].[EmployeeID] = [e1].[ReportsTo] -) = 0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_MethodCall() : - AssertSql( - @"@__LocalMethod1_0='M' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE @__LocalMethod1_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_nullable_int_to_long_introduces_explicit_cast() : - AssertSql( - @"SELECT CLng(IIf(IsNull([o].[EmployeeID]),0,[o].[EmployeeID])) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_method_call_nullable_type_reverse_closure_via_query_cache() : - AssertSql( - @"@__city_NullableInt_0='1' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0", - // - @"@__city_NullableInt_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_top_level() : - AssertSql( - @"@__p_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT IIf( - @__p_0 IN ( - SELECT [c].[CustomerID] - FROM [Customers] AS [c] - ), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_on_float_column_in_subquery() : - AssertSql( - @"SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10300", - // - @"@_outer_OrderID='10248' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10249' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10250' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10251' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10252' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10253' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10254' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10255' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_Take_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Distinct_Take() : - AssertSql( - @"@__p_0='5' - -SELECT TOP @__p_0 [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT DISTINCT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] -) AS [t] -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_with_subquery_with_take() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[ContactName], [t].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT TOP @__p_0 [o2].* - FROM [Orders] AS [o2] - ORDER BY [o2].[OrderID] -) AS [t] ON [c].[CustomerID] = [t].[CustomerID]) -WHERE [t].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.No_orderby_added_for_fully_translated_manually_constructed_LOJ() : - AssertSql( - @"SELECT [e1].[City] AS [City1], [e2].[City] AS [City2] -FROM ([Employees] AS [e1] -LEFT JOIN [Employees] AS [e2] ON [e1].[EmployeeID] = [e2].[ReportsTo])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Any_nested_negated2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE 'M' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_list_inline_closure_mix() : line_closure_mix() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\Query\SimpleQueryJetTest.ResultOperators.cs:riga 803 - AssertSql( - @"@__id_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', @__id_0)", - // - @"@__id_0='ANATR' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', @__id_0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_coalesce_take_distinct() : - AssertSql( - @"@__p_0='15' - -SELECT DISTINCT [t].* -FROM ( - SELECT TOP @__p_0 [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] - FROM [Products] AS [p] - ORDER BY IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice]) -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Min_with_coalesce() : - AssertSql( - @"SELECT MIN(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_multi_level3() : - AssertSql( - @"SELECT ( - SELECT TOP 1 [o].[OrderDate] - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [OrderDates] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_functions_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE CInt(IIf(IsNull(Len([c].[CustomerID])),0,Len([c].[CustomerID])))^2 = 25"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_named_tuple_item_closure() : - AssertSql( - @"@__predicateTuple_Item2_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__predicateTuple_Item2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_all_not_equals() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] NOT IN ('ABCDE', 'ALFKI', 'ANATR')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_simple_parameterized() : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Max_with_coalesce() : - AssertSql( - @"SELECT MAX(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_false() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_skip_null_coalesce_operator() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[CompanyName], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [Region] - FROM [Customers] AS [c] - ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) -) AS [t] -ORDER BY [t].[Region] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_equals_on_matched_nullable_int_types() : - AssertSql( - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE @__nullableIntPrm_0 = [e].[ReportsTo]", - // - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__nullableIntPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.First_inside_subquery_gets_client_evaluated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE ([o0].[CustomerID] = 'ALFKI') AND (@_outer_CustomerID = [o0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_concat_with_navigation2() : - AssertSql( - @"SELECT ([o#Customer].[City] + ' ') + [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_from_binary_expression_nested_introduces_top_level_explicit_cast() : - AssertSql( - @"SELECT CInt(IIf(IsNull([o].[OrderID] + [o].[OrderID]),0,[o].[OrderID] + [o].[OrderID])) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_projection1() : - AssertSql( - @"SELECT [e1].[City], [e2].[Country] -FROM [Employees] AS [e1] -, [Employees] AS [e2]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_concat_string_int_comparison1() : - AssertSql( - @"@__i_0='10' - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] + (@__i_0&"""")) = [c].[CompanyName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_client_side_negated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_static_property_access_closure_via_query_cache() : - AssertSql( - @"@__StaticPropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0", - // - @"@__StaticPropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_via_query_cache() : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0", - // - @"@__city_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_to_lower() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE LCase([c].[CustomerID]) = 'alfki'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_simple() : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_OrderBy_same_column_different_direction() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' -ORDER BY [c].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Complex_query_with_repeated_query_model_compiles_correctly() : - AssertSql( - @"SELECT [outer].[CustomerID], [outer].[Address], [outer].[City], [outer].[CompanyName], [outer].[ContactName], [outer].[ContactTitle], [outer].[Country], [outer].[Fax], [outer].[Phone], [outer].[PostalCode], [outer].[Region] -FROM [Customers] AS [outer] -WHERE [outer].[CustomerID] = 'ALFKI'", - // - @"SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c0] - WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [cc1])), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Contains_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr(1, [c].[ContactName], [c].[ContactName], 0) > 0) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Subquery_is_not_null_translated_correctly() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ( - SELECT TOP 1 [o].[CustomerID] - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ORDER BY [o].[OrderID] DESC -) IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_zero_length() : - AssertSql( - @"SELECT Mid([c].[ContactName], 3, 0) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_Where_Subquery_Equality() : - AssertSql( - @"@__p_0='1' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] -) AS [t] -ORDER BY [t].[OrderID]", - // - @"SELECT [t1].[OrderID] -FROM ( - SELECT TOP 2 [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice] - FROM [Order Details] AS [od0] - ORDER BY [od0].[OrderID] -) AS [t1]", - // - @"@_outer_CustomerID2='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 1 [c3].[Country] -FROM [Customers] AS [c3] -WHERE [c3].[CustomerID] = @_outer_CustomerID2 -ORDER BY [c3].[CustomerID]", - // - @"@_outer_OrderID1='10248' - -SELECT TOP 1 [c4].[Country] -FROM ([Orders] AS [o20] -INNER JOIN [Customers] AS [c4] ON [o20].[CustomerID] = [c4].[CustomerID]) -WHERE [o20].[OrderID] = @_outer_OrderID1 -ORDER BY [o20].[OrderID], [c4].[CustomerID]", - // - @"@_outer_CustomerID2='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 1 [c3].[Country] -FROM [Customers] AS [c3] -WHERE [c3].[CustomerID] = @_outer_CustomerID2 -ORDER BY [c3].[CustomerID]", - // - @"@_outer_OrderID1='10248' - -SELECT TOP 1 [c4].[Country] -FROM ([Orders] AS [o20] -INNER JOIN [Customers] AS [c4] ON [o20].[CustomerID] = [c4].[CustomerID]) -WHERE [o20].[OrderID] = @_outer_OrderID1 -ORDER BY [o20].[OrderID], [c4].[CustomerID]", - // - @"@_outer_CustomerID2='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 1 [c3].[Country] -FROM [Customers] AS [c3] -WHERE [c3].[CustomerID] = @_outer_CustomerID2 -ORDER BY [c3].[CustomerID]", - // - @"@_outer_OrderID1='10248' - -SELECT TOP 1 [c4].[Country] -FROM ([Orders] AS [o20] -INNER JOIN [Customers] AS [c4] ON [o20].[CustomerID] = [c4].[CustomerID]) -WHERE [o20].[OrderID] = @_outer_OrderID1 -ORDER BY [o20].[OrderID], [c4].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_math_truncate_int() : - AssertSql( - @"SELECT Int(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [A] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10250"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_closure() : - AssertSql( - @"@__start_0='2' - -SELECT Mid([c].[ContactName], @__start_0 + 1, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_same_collection_force_alias_uniquefication() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM ([Orders] AS [o] -INNER JOIN [Orders] AS [o0] ON [o].[CustomerID] = [o0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_max() : - AssertSql( - @"@__p_0='10' - -SELECT MAX([t].[OrderID]) -FROM ( - SELECT TOP @__p_0 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OfType_Select_OfType_Select() : - AssertSql( - @"SELECT TOP 1 [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_skip_null_coalesce_operator3() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [c] - FROM [Customers] AS [c] - ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) -) AS [t] -ORDER BY [t].[c] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_select() : - AssertSql( - @"SELECT [c].[ContactName], [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_array_inline() : line() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\Query\SimpleQueryJetTest.ResultOperators.cs:riga 763 - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_conditional_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[Region] IS NULL, - 'ZZ', - [c].[Region] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_bitwise_or_with_logical_or() : - AssertSql( - @"SELECT [c].[CustomerID], IIf( - ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False - ) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False - )) = True) OR ([c].[CustomerID] = 'ANTON'), - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty_multiple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o1].[OrderID], [o1].[CustomerID], [o1].[EmployeeID], [o1].[OrderDate], [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM (([Customers] AS [c] -LEFT JOIN [Orders] AS [o1] ON [c].[CustomerID] = [o1].[CustomerID]) -LEFT JOIN [Orders] AS [o2] ON [c].[CustomerID] = [o2].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_length() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE CInt(IIf(IsNull(Len([c].[City])),0,Len([c].[City]))) = 6"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_chain() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'QUICK') AND ([o].[OrderDate] > #01/01/1998 00:00:00#)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.All_top_level() : - AssertSql( - @"SELECT IIf( - NOT EXISTS ( - SELECT 1 - FROM [Customers] AS [c] - WHERE NOT ([c].[ContactName] LIKE 'A' + '%')), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_power() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[Discount]^2 > 0.05000000074505806"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_compare_to_with_parameter() : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_mixed() : - AssertSql( - @"@__p_0='2' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_non_matching_types_in_projection_doesnt_produce_second_explicit_cast() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure() : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_zero_startindex() : - AssertSql( - @"SELECT Mid([c].[ContactName], 1, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_ternary_boolean_condition_true() : - AssertSql( - @"@__flag_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ((@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_0 <> True) AND ([p].[UnitsInStock] < 20))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Projection_when_arithmetic_mixed() : - AssertSql( - @"@__p_0='10' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate], [t0].[EmployeeID], [t0].[City], [t0].[Country], [t0].[FirstName], [t0].[ReportsTo], [t0].[Title] -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] -, ( - SELECT TOP 5 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_nested_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0", - // - @"@__city_Nested_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_collection_empty_closure() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_collection_sql_injection() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ALFKI', 'ABC'')); GO; DROP TABLE Orders; GO; --', 'ALFKI', 'ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Max_with_non_matching_types_in_projection_introduces_explicit_cast() : - AssertSql( - @"SELECT MAX(CLng(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Null_conditional_deep() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE CInt(IIf(IsNull(Len([c].[CustomerID])),0,Len([c].[CustomerID]))) = 5"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_Take_Last_gives_correct_result() : - AssertSql( - @"@__p_0='20' - -SELECT TOP 1 [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -ORDER BY [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty_Project() : - AssertSql( - @"SELECT [o].[OrderID] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition2() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_count() : - AssertSql( - @"@__p_0='7' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_from_binary_expression_introduces_explicit_cast() : - AssertSql( - @"SELECT CLng(IIf(IsNull([o].[OrderID] + [o].[OrderID]),0,[o].[OrderID] + [o].[OrderID])) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Compare_to_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_take_count_works() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [o].* - FROM ([Orders] AS [o] - INNER JOIN ( - SELECT [c].* - FROM [Customers] AS [c] - WHERE [c].[CustomerID] = 'ALFKI' - ) AS [t] ON [o].[CustomerID] = [t].[CustomerID]) - WHERE ([o].[OrderID] > 690) AND ([o].[OrderID] < 710) -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_date_add_year_constant_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('yyyy', IIf(IsNull([o].[OrderDate]), NULL, DateAdd('yyyy', -1, [o].[OrderDate]))) = 1997"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_in_complex_predicate() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[ProductID] > 100) AND ([p].[Discontinued] = True)) OR ([p].[Discontinued] = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_collection_navigation_to_null_complex() : - AssertSql( - @"SELECT [od].[ProductID], [od].[OrderID] -FROM ([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -WHERE ([od].[OrderID] < 10250) AND [od#Order].[CustomerID] IS NOT NULL -ORDER BY [od].[OrderID], [od].[ProductID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bitwise_and_with_logical_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True) OR ([c].[CustomerID] = 'ANTON')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Complex_query_with_repeated_nested_query_model_compiles_correctly() : - AssertSql( - @"SELECT [outer].[CustomerID], [outer].[Address], [outer].[City], [outer].[CompanyName], [outer].[ContactName], [outer].[ContactTitle], [outer].[Country], [outer].[Fax], [outer].[Phone], [outer].[PostalCode], [outer].[Region] -FROM [Customers] AS [outer] -WHERE [outer].[CustomerID] = 'ALFKI'", - // - @"SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c0] - WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [cc1] - WHERE EXISTS ( - SELECT DISTINCT 1 - FROM ( - SELECT TOP 10 [inner1].* - FROM [Customers] AS [inner1] - ORDER BY [inner1].[CustomerID] - ) AS [t1]))), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Parameter_extraction_short_circuits_2() : - AssertSql( - @"@__dateFilter_Value_Month_0='7' -@__dateFilter_Value_Year_1='1996' - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10400) AND (([o].[OrderDate] IS NOT NULL AND (DatePart('m', [o].[OrderDate]) = @__dateFilter_Value_Month_0)) AND (DatePart('yyyy', [o].[OrderDate]) = @__dateFilter_Value_Year_1))", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Let_subquery_with_multiple_occurences() : - AssertSql( - @"SELECT ( - SELECT COUNT(*) - FROM [Order Details] AS [od0] - WHERE ([od0].[Quantity] < 10) AND ([o].[OrderID] = [od0].[OrderID]) -) AS [Count] -FROM [Orders] AS [o] -WHERE EXISTS ( - SELECT 1 - FROM [Order Details] AS [od] - WHERE ([od].[Quantity] < 10) AND ([o].[OrderID] = [od].[OrderID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE ([c].[City] = 'London') OR ([e].[City] = 'London')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Distinct_Skip_Take() : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT DISTINCT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] -) AS [t] -ORDER BY [t].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_and_parameter_compared_to_binary_expression_nested() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = IIf( - IIf( - [p].[ProductID] > 50, - True, - False - ) <> @__prm_0, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Orderby_added_for_client_side_GroupJoin_principal_to_dependent_LOJ() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City] AS [City1], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title], [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM ([Employees] AS [e1] -LEFT JOIN [Employees] AS [e2] ON [e1].[EmployeeID] = [e2].[ReportsTo]) -ORDER BY [e1].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_exp() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (EXP([od].[Discount]) > 1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_guid_newguid() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE NewGuid() <> '00000000-0000-0000-0000-000000000000'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_equals_on_mismatched_types_nullable_long_nullable_int() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_skip_null_coalesce_operator2() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[CompanyName], [c].[Region], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [c] - FROM [Customers] AS [c] - ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) -) AS [t] -ORDER BY [t].[c] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Projection_when_client_evald_subquery() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [t].[CustomerID], [c#Orders].[CustomerID] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Queryable_simple_anonymous_subquery() : - AssertSql( - @"@__p_0='91' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_arg() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_utcnow() : - AssertSql( - @"@__myDatetime_0='2015-04-10T00:00:00' (DbType = DateTime) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Now() <> @__myDatetime_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_math_round_int() : - AssertSql( - @"SELECT ROUND(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID])), 0) AS [A] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10250"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Manual_expression_tree_typed_null_equality() : - AssertSql( - @"SELECT IIf( - [o].[CustomerID] IS NULL, - [o#Customer].[City], - NULL -) -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o].[OrderID] < 10300"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_day_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('d', [o].[OrderDate]) = 4"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.QueryType_with_nav_defining_query() : - AssertSql( - @"@__ef_filter___searchTerm_0='A' (Nullable = false) (Size = 1) -@__ef_filter___searchTerm_1='A' (Nullable = false) (Size = 1) - -SELECT [t].[CompanyName], [t].[OrderCount], [t].[SearchTerm] -FROM ( - SELECT [c].[CompanyName], ( - SELECT COUNT(*) - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ) AS [OrderCount], @__ef_filter___searchTerm_0 AS [SearchTerm] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[CompanyName] LIKE @__ef_filter___searchTerm_1 + '%' AND ([t].[OrderCount] > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_integer() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.All_top_level_column() : - AssertSql( - @"SELECT IIf( - NOT EXISTS ( - SELECT 1 - FROM [Customers] AS [c] - WHERE NOT ([c].[ContactName] LIKE [c].[ContactName] + '%')), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_bitwise_or() : - AssertSql( - @"SELECT [c].[CustomerID], IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Selected_column_can_coalesce() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_multi_level5() : - AssertSql( - @"SELECT IIf(IsNull(( - SELECT TOP 1 ( - SELECT TOP 1 [od].[ProductID] - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] <> ( - SELECT COUNT(*) - FROM [Orders] AS [o0] - WHERE [c].[CustomerID] = [o0].[CustomerID] - )) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -)), 0, ( - SELECT TOP 1 ( - SELECT TOP 1 [od].[ProductID] - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] <> ( - SELECT COUNT(*) - FROM [Orders] AS [o0] - WHERE [c].[CustomerID] = [o0].[CustomerID] - )) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -)) AS [Order] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Anonymous_member_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_on_collection() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE 5 IN ( - SELECT [o].[Quantity] - FROM [Order Details] AS [o] - WHERE [o].[ProductID] = [p].[ProductID] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_ThenBy_same_column_different_direction() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Sum_on_float_column_in_subquery() : - AssertSql( - @"SELECT [o].[OrderID], ( - SELECT CSng(IIf(IsNull(SUM([od].[Discount])),0,SUM([od].[Discount]))) - FROM [Order Details] AS [od] - WHERE [o].[OrderID] = [od].[OrderID] -) AS [Sum] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10300"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.All_top_level_subquery_ef_property() : - AssertSql( - @"SELECT IIf( - NOT EXISTS ( - SELECT 1 - FROM [Customers] AS [c1] - WHERE NOT (( - SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c2] - WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [c3] - WHERE [c1].[CustomerID] = [c3].[CustomerID])), - True, - False - ) - FROM (SELECT COUNT(*) FROM MSysAccessStorage) - ) = True)), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Single_Predicate() : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [o].[OrderID] IS NOT NULL AND ([o].[CustomerID] = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_collection_complex_predicate_and() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ALFKI', 'ABCDE') AND [c].[CustomerID] IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Last_Predicate() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_constant() : - AssertSql( - @"@__predicate_0='True' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE @__predicate_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_tan() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (TAN([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_de_morgan_and_optimizated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) OR ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_bool_constant() : - AssertSql( - @"SELECT IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition2_FirstOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t] -WHERE [t].[FirstName] = ( - SELECT TOP 1 [e0].[FirstName] - FROM [Employees] AS [e0] - ORDER BY [e0].[EmployeeID] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_select_many() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -, [Employees] AS [e]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_bitwise_and_with_logical_and() : - AssertSql( - @"SELECT [c].[CustomerID], IIf( - ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False - ) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False - )) = True) AND ([c].[CustomerID] = 'ANTON'), - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_compared_to_binary_expression() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = IIf( - [p].[ProductID] > 50, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_references_are_updated_correctly_with_subquery() : - AssertSql( - @"@__nextYear_0='2017' - -SELECT [t].[c] -FROM ( - SELECT DISTINCT DatePart('yyyy', [o].[OrderDate]) AS [c] - FROM [Orders] AS [o] - WHERE [o].[OrderDate] IS NOT NULL -) AS [t] -WHERE [t].[c] < @__nextYear_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_OrderBy_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty3() : - AssertSql( - @"@__p_0='1' - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM (( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -LEFT JOIN [Orders] AS [o] ON [t].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Complex_nested_query_doesnt_try_binding_to_grandparent_when_parent_returns_complex_result() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"@_outer_CustomerID1='ALFKI' (Nullable = false) (Size = 5) -@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) -@_outer_CustomerID2='ALFKI' (Nullable = false) (Size = 5) - -SELECT ( - SELECT COUNT(*) - FROM [Orders] AS [o0] - WHERE @_outer_CustomerID1 = [o0].[CustomerID] -) AS [InnerOrder], @_outer_CustomerID2 AS [Id] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Project_single_element_from_collection_with_OrderBy_over_navigation_Take_and_FirstOrDefault_2() : - AssertSql( - @"SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10250", - // - @"@_outer_OrderID='10248' - -SELECT TOP 1 [t].* -FROM ( - SELECT TOP 1 [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice], [od#Product].[ProductName] - FROM ([Order Details] AS [od] - INNER JOIN [Products] AS [od#Product] ON [od].[ProductID] = [od#Product].[ProductID]) - WHERE @_outer_OrderID = [od].[OrderID] - ORDER BY [od#Product].[ProductName] -) AS [t] -ORDER BY [t].[ProductName]", - // - @"@_outer_OrderID='10249' - -SELECT TOP 1 [t].* -FROM ( - SELECT TOP 1 [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice], [od#Product].[ProductName] - FROM ([Order Details] AS [od] - INNER JOIN [Products] AS [od#Product] ON [od].[ProductID] = [od#Product].[ProductID]) - WHERE @_outer_OrderID = [od].[OrderID] - ORDER BY [od#Product].[ProductName] -) AS [t] -ORDER BY [t].[ProductName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_over_entityType_should_rewrite_to_identity_equality() : - AssertSql( - @"SELECT TOP 2 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderID] = 10248", - // - @"@__p_0_OrderID='10248' - -SELECT IIf( - @__p_0_OrderID IN ( - SELECT [o].[OrderID] - FROM [Orders] AS [o] - WHERE [o].[CustomerID] = 'VINET' - ), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_now() : - AssertSql( - @"@__myDatetime_0='2015-04-10T00:00:00' (DbType = DateTime) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Now() <> @__myDatetime_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_SelectMany() : - AssertSql( - @"SELECT [c].[ContactName], [t].[OrderID] -FROM [Customers] AS [c] -, ( - SELECT TOP 3 [o].* - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] -WHERE [c].[CustomerID] = [t].[CustomerID] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple_subquery() : - AssertSql( - @"@__p_0='4' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty2() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Employees] AS [e] -LEFT JOIN [Orders] AS [o] ON [e].[EmployeeID] = [o].[EmployeeID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_correlated_client_eval() : - AssertSql( - @"@__p_0='5' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] -) AS [t] -ORDER BY [t].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID = [c2].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID = [c2].[CustomerID]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID = [c2].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID = [c2].[CustomerID]", - // - @"@_outer_CustomerID='BERGS' (Nullable = false) (Size = 5) - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID = [c2].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_equals_using_object_overload_on_mismatched_types() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_simple_projection() : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[City] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Replace_with_emptystring() : - AssertSql( - @"SELECT Replace([c].[ContactName], 'ari', '') -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_date_add_year() : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderDate]), NULL, DateAdd('yyyy', 1, [o].[OrderDate])) AS [OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Distinct_Take_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT DISTINCT TOP @__p_0 [o].* - FROM [Orders] AS [o] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_entity_equality_multiple_elements_FirstOrDefault() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE ( - SELECT TOP 1 [e2].[EmployeeID] - FROM [Employees] AS [e2] - WHERE ([e2].[EmployeeID] <> [e1].[ReportsTo]) OR [e1].[ReportsTo] IS NULL -) = 0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_false_shadow() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_all_not_equals_static() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] NOT IN ('ABCDE', 'ALFKI', 'ANATR')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Skip() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_year_component() : - AssertSql( - @"SELECT DatePart('yyyy', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_order_by_key_descending2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] LIKE 'A' + '%' -ORDER BY [c].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_compare_with_parameter() : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_OrderBy_ThenBy_Any() : - AssertSql( - @"SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c] - , [Orders] AS [o]), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Subquery_member_pushdown_does_not_change_original_subquery_model() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[CustomerID], [t].[OrderID] -FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]", - // - @"@_outer_CustomerID='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c0].[City] -FROM [Customers] AS [c0] -WHERE [c0].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='TOMSP' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c0].[City] -FROM [Customers] AS [c0] -WHERE [c0].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='HANAR' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c0].[City] -FROM [Customers] AS [c0] -WHERE [c0].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID1='TOMSP' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE [c2].[CustomerID] = @_outer_CustomerID1", - // - @"@_outer_CustomerID1='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE [c2].[CustomerID] = @_outer_CustomerID1", - // - @"@_outer_CustomerID1='HANAR' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE [c2].[CustomerID] = @_outer_CustomerID1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Let_entity_equality_to_other_entity() : - AssertSql( - @"SELECT [c].[CustomerID], ( - SELECT TOP 1 [e2].[OrderDate] - FROM [Orders] AS [e2] - WHERE [c].[CustomerID] = [e2].[CustomerID] - ORDER BY [e2].[OrderDate] -) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID1='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e1].[OrderID], [e1].[CustomerID], [e1].[EmployeeID], [e1].[OrderDate] -FROM [Orders] AS [e1] -WHERE @_outer_CustomerID1 = [e1].[CustomerID] -ORDER BY [e1].[OrderDate]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID1='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e1].[OrderID], [e1].[CustomerID], [e1].[EmployeeID], [e1].[OrderDate] -FROM [Orders] AS [e1] -WHERE @_outer_CustomerID1 = [e1].[CustomerID] -ORDER BY [e1].[OrderDate]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID1='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e1].[OrderID], [e1].[CustomerID], [e1].[EmployeeID], [e1].[OrderDate] -FROM [Orders] AS [e1] -WHERE @_outer_CustomerID1 = [e1].[CustomerID] -ORDER BY [e1].[OrderDate]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID1='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e1].[OrderID], [e1].[CustomerID], [e1].[EmployeeID], [e1].[OrderDate] -FROM [Orders] AS [e1] -WHERE @_outer_CustomerID1 = [e1].[CustomerID] -ORDER BY [e1].[OrderDate]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_entity_equality_no_elements_FirstOrDefault() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE ( - SELECT TOP 1 [e2].[EmployeeID] - FROM [Employees] AS [e2] - WHERE [e2].[EmployeeID] = 42 -) = 0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_from_unary_expression_introduces_explicit_cast1() : - AssertSql( - @"SELECT CLng(IIf(IsNull(-[o].[OrderID]),0,-[o].[OrderID])) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.TrimEnd_without_arguments_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE RTrim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_Any_with_predicate() : - AssertSql( - @"@__p_0='5' - -SELECT IIf( - EXISTS ( - SELECT 1 - FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] - ) AS [t] - WHERE [t].[CustomerID] LIKE 'B' + '%'), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Exists_Inequality() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE (([o].[OrderDate] <> #10/24/2008 00:00:00#) OR [o].[OrderDate] IS NULL) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToInt32() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_month_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('m', [o].[OrderDate]) = 4"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Exists() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[OrderDate] = #10/24/2008 00:00:00#) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_is_null() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_correlated_subquery_ordered() : - AssertSql( - @"@__p_0='3' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_Where_Subquery_Deep_Single() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[OrderID] = 10344", - // - @"@_outer_OrderID='10344' - -SELECT TOP 2 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE @_outer_OrderID = [o0].[OrderID]", - // - @"@_outer_CustomerID1='WHITC' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID1 = [c2].[CustomerID]", - // - @"@_outer_OrderID='10344' - -SELECT TOP 2 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE @_outer_OrderID = [o0].[OrderID]", - // - @"@_outer_CustomerID1='WHITC' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID1 = [c2].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_GroupJoin_DefaultIfEmpty_Where() : - AssertSql( - @"SELECT [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM (([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -LEFT JOIN [Orders] AS [o2] ON [c].[CustomerID] = [o2].[CustomerID]) -WHERE [o2].[OrderID] IS NOT NULL AND ([o2].[CustomerID] = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_log10() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE (([od].[OrderID] = 11077) AND ([od].[Discount] > 0)) AND ((Log([od].[Discount]) / 2.3025850929940459) < 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_collection_complex_predicate_not_matching_ins2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI') AND [c].[CustomerID] NOT IN ('ALFKI', 'ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_Where_Subquery_Deep_First() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ( - SELECT TOP 1 ( - SELECT TOP 1 [c].[City] - FROM [Customers] AS [c] - WHERE [o].[CustomerID] = [c].[CustomerID] - ) - FROM [Orders] AS [o] - WHERE [od].[OrderID] = [o].[OrderID] -) = 'Seattle'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_null_is_not_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_parameter_compared_to_binary_expression() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE IIf( - [p].[ProductID] > 50, - True, - False -) <> @__prm_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_coalesce() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])),0,IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])))) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_negated_twice() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_from_unary_expression_introduces_explicit_cast2() : - AssertSql( - @"SELECT -CLng(IIf(IsNull([o].[OrderID]),0,[o].[OrderID])) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Distinct_Skip() : - AssertSql( - @"@__p_0='5' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT DISTINCT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] -) AS [t] -ORDER BY [t].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_order_by_key_descending1() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] LIKE 'A' + '%' -ORDER BY [c].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_on_float_column() : - AssertSql( - @"SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od].[Discount]),0,[od].[Discount])))),0,AVG(CSng(IIf(IsNull([od].[Discount]),0,[od].[Discount]))))) -FROM [Order Details] AS [od] -WHERE [od].[ProductID] = 1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_where_any() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[City] = 'México D.F.') AND [c].[CustomerID] IN ('ABCDE', 'ALFKI', 'ANATR')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_minute_component() : - AssertSql( - @"SELECT DatePart('n', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Anonymous_complex_distinct_result() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].[CustomerID] + [c].[City] AS [A] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[A] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_null_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_atan() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Atn([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_list_closure() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_simple1() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Employees] AS [e] -, [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bitwise_or_with_logical_and() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True) AND ([c].[Country] = 'Germany')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_entity_equality_one_element_SingleOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.No_orderby_added_for_client_side_GroupJoin_dependent_to_principal_LOJ() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID] AS [Id1], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetimeoffset_utcnow_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_count_using_anonymous_type() : - AssertSql( - @"SELECT ( - SELECT COUNT(*) - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] -) AS [Count] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bitwise_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_asin() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Atn([od].[Discount] / Sqr(-[od].[Discount] * [od].[Discount] + 1)) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_method_call_closure_via_query_cache() : - AssertSql( - @"@__GetCity_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0", - // - @"@__GetCity_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bitwise_or_with_logical_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True) OR ([c].[CustomerID] = 'ANTON')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_arg_expression() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID] + [o].[OrderID]),0,[o].[OrderID] + [o].[OrderID]))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Project_single_element_from_collection_with_OrderBy_Take_and_SingleOrDefault() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 2 [t0].[CustomerID] -FROM ( - SELECT TOP 1 [o0].[CustomerID], [o0].[OrderID] - FROM [Orders] AS [o0] - WHERE @_outer_CustomerID = [o0].[CustomerID] - ORDER BY [o0].[OrderID] -) AS [t0] -ORDER BY [t0].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Any_predicate() : - AssertSql( - @"SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c] - WHERE [c].[ContactName] LIKE 'A' + '%'), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_year_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('yyyy', [o].[OrderDate]) = 1998"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + 'b'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_SelectMany_subquery_with_filter() : - AssertSql( - @"SELECT [c].[ContactName], [t].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT [o].* - FROM [Orders] AS [o] - WHERE [o].[OrderID] > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_composite_key() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON ([c].[CustomerID] = [o].[CustomerID]) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Lifting_when_subquery_nested_order_by_anonymous() : - AssertSql( - @"@__p_0='2' - -SELECT [c1_Orders].[OrderID], [c1_Orders].[CustomerID], [c1_Orders].[EmployeeID], [c1_Orders].[OrderDate], [t0].[CustomerID] -FROM ([Orders] AS [c1_Orders] -INNER JOIN ( - SELECT DISTINCT [t].[CustomerID] - FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] - ) AS [t] - , [Customers] AS [c2] -) AS [t0] ON [c1_Orders].[CustomerID] = [t0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_different_entity_types_using_Equals() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OfType_Select() : - AssertSql( - @"SELECT TOP 1 [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_Customers_Orders_Skip_Take() : - AssertSql( - @"@__p_1='5' -@__p_0='10' - -SELECT TOP @__p_1+@__p_0 [c].[ContactName], [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [o].[OrderID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Order_by_length_twice() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY CInt(IIf(IsNull(Len([c].[CustomerID])),0,Len([c].[CustomerID]))), [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Trim_without_argument_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Trim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_dayOfYear_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('y', [o].[OrderDate]) = 68"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_from_method_call_introduces_explicit_cast() : - AssertSql( - @"SELECT CLng(IIf(IsNull(ABS([o].[OrderID])),0,ABS([o].[OrderID]))) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many_or2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN ('London', 'Berlin')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_from_length_introduces_explicit_cast() : - AssertSql( - @"SELECT CLng(IIf(IsNull(CInt(IIf(IsNull(Len([o].[CustomerID])),0,Len([o].[CustomerID])))),0,CInt(IIf(IsNull(Len([o].[CustomerID])),0,Len([o].[CustomerID]))))) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_second_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('s', [o].[OrderDate]) = 44"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.New_date_time_in_anonymous_type_works() : - AssertSql( - @"SELECT 1 -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_simple_subquery() : - AssertSql( - @"@__p_0='9' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t] -, [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_indexer_closure() : - AssertSql( - @"@__p_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Compare_two_collection_navigations_with_different_query_sources() : - AssertSql( - @"SELECT [c1].[CustomerID] AS [Id1], [c2].[CustomerID] AS [Id2] -FROM [Customers] AS [c1] -, [Customers] AS [c2] -WHERE (([c1].[CustomerID] = 'ALFKI') AND ([c2].[CustomerID] = 'ALFKI')) AND ([c1].[CustomerID] = [c2].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_different_outer_elements_with_same_key_projected_from_another_entity() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM (([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -LEFT JOIN [Customers] AS [c] ON [od#Order].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Not_Exists() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE False = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Contains_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr(1, [c].[ContactName], [c].[ContactName], 0) > 0) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_new_instance_field_access_closure_via_query_cache() : - AssertSql( - @"@__InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0", - // - @"@__InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_orderBy_take_count() : - AssertSql( - @"@__p_0='7' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[Country] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_int_to_string() : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderID]), NULL, CStr([o].[OrderID])) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_subquery_involving_join_binds_to_correct_table() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] > 11000) AND [o].[OrderID] IN ( - SELECT [od].[OrderID] - FROM ([Order Details] AS [od] - INNER JOIN [Products] AS [od#Product] ON [od].[ProductID] = [od#Product].[ProductID]) - WHERE [od#Product].[ProductName] = 'Chai' -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Projection_in_a_subquery_should_be_liftable() : - AssertSql( - @"@__p_0='1' - -SELECT [e].[EmployeeID] -FROM [Employees] AS [e] -ORDER BY [e].[EmployeeID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_division_on_decimal_no_significant_digits() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull([od].[Quantity] / 2.0),0,[od].[Quantity] / 2.0))) -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_today() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_Customers_Orders_Orders_Skip_Take_Same_Properties() : - AssertSql( - @"@__p_1='5' -@__p_0='10' - -SELECT TOP @__p_1+@__p_0 [o].[OrderID], [ca].[CustomerID] AS [CustomerIDA], [cb].[CustomerID] AS [CustomerIDB], [ca].[ContactName] AS [ContactNameA], [cb].[ContactName] AS [ContactNameB] -FROM (([Orders] AS [o] -INNER JOIN [Customers] AS [ca] ON [o].[CustomerID] = [ca].[CustomerID]) -INNER JOIN [Customers] AS [cb] ON [o].[CustomerID] = [cb].[CustomerID]) -ORDER BY [o].[OrderID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_acos() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND ((1.5707963267948966 + Atn(-[od].[Discount] / Sqr(-[od].[Discount] * [od].[Discount] + 1))) > 1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_simple2() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e2].[FirstName] AS [FirstName0] -FROM [Employees] AS [e1] -, [Customers] AS [c] -, [Employees] AS [e2]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE [e1].[FirstName] = ( - SELECT TOP 1 [e].[FirstName] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many_or4() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN ('London', 'Berlin', 'Seattle', 'Lisboa')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_on_float_column_in_subquery_with_cast() : - AssertSql( - @"SELECT [o].[OrderID], ( - SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od].[Discount]),0,[od].[Discount])))),0,AVG(CSng(IIf(IsNull([od].[Discount]),0,[od].[Discount]))))) - FROM [Order Details] AS [od] - WHERE [o].[OrderID] = [od].[OrderID] -) AS [Sum] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10300"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM [Customers] AS [c] -, [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_distinct_average() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([t].[OrderID]),0,[t].[OrderID]))) -FROM ( - SELECT DISTINCT [o].[OrderID] - FROM [Orders] AS [o] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_DTO_with_member_init_distinct_in_subquery_translated_to_server() : - AssertSql( - @"SELECT [t].[Id], [t].[Count], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ( - SELECT DISTINCT [o].[CustomerID] AS [Id], [o].[OrderID] AS [Count] - FROM [Orders] AS [o] - WHERE [o].[OrderID] < 10300 -) AS [t] -, [Customers] AS [c] -WHERE [c].[CustomerID] = [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Environment_newline_is_funcletized() : line_is_funcletized() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\Query\SimpleQueryJetTest.cs:riga 2703 - AssertSql( - @"@__NewLine_0=' -' (Nullable = false) (Size = 2) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr(1, [c].[CustomerID], @__NewLine_0, 0) > 0) OR (@__NewLine_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Anonymous_complex_orderby() : - AssertSql( - @"SELECT [c].[CustomerID] + [c].[City] AS [A] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] + [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_short_member_comparison() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[UnitsInStock] > 10"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Sum_with_coalesce() : - AssertSql( - @"SELECT SUM(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Any_simple() : - AssertSql( - @"SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c]), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_multi_level6() : - AssertSql( - @"SELECT IIf(IsNull(( - SELECT TOP 1 ( - SELECT TOP 1 [od].[ProductID] - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] <> CInt(IIf(IsNull(Len([c].[CustomerID])),0,Len([c].[CustomerID])))) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -)), 0, ( - SELECT TOP 1 ( - SELECT TOP 1 [od].[ProductID] - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] <> CInt(IIf(IsNull(Len([c].[CustomerID])),0,Len([c].[CustomerID])))) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -)) AS [Order] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_entity_deep() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title], [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title], [e3].[EmployeeID], [e3].[City], [e3].[Country], [e3].[FirstName], [e3].[ReportsTo], [e3].[Title], [e4].[EmployeeID], [e4].[City], [e4].[Country], [e4].[FirstName], [e4].[ReportsTo], [e4].[Title] -FROM [Employees] AS [e1] -, [Employees] AS [e2] -, [Employees] AS [e3] -, [Employees] AS [e4]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_day_component() : - AssertSql( - @"SELECT DatePart('d', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Any_nested3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%') AND (([c].[City] <> 'London') OR [c].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToString() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) <> '10')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_SelectMany_subquery_with_filter_orderby_and_DefaultIfEmpty() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_Distinct_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT DISTINCT [t].* - FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - ) AS [t] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_multi_level() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_All() : - AssertSql( - @"SELECT IIf( - NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] <> 'ALFKI') OR [o].[CustomerID] IS NULL), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bitwise_and() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_hour_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('h', [o].[OrderDate]) = 14"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_shadow() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToInt16() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_via_query_cache_nullable_type_reverse() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Filter_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE IIf(IsNull([c].[CompanyName]), [c].[ContactName], [c].[CompanyName]) = 'The Big Cheese'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_not_in_optimization4() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] NOT IN ('London', 'Berlin', 'Seattle', 'Lisboa')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Last() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToDecimal() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0.0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_All() : - AssertSql( - @"@__p_0='4' - -SELECT IIf( - NOT EXISTS ( - SELECT 1 - FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] - ) AS [t] - WHERE NOT ([t].[CustomerID] LIKE 'A' + '%')), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_closure_via_query_cache() : - AssertSql( - @"@__customerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] = @__customerID_0) AND ([o].[CustomerID] = [c].[CustomerID]))", - // - @"@__customerID_0='ANATR' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] = @__customerID_0) AND ([o].[CustomerID] = [c].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_projection() : - AssertSql( - @"SELECT [c].[ContactName], [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Method_with_constant_queryable_arg() : - AssertSql( - @"SELECT COUNT(*) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ALFKI')", - // - @"SELECT COUNT(*) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('FOO')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_projection2() : - AssertSql( - @"SELECT [e1].[City], [e2].[Country], [e3].[FirstName] -FROM [Employees] AS [e1] -, [Employees] AS [e2] -, [Employees] AS [e3]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_any_equals_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI', 'ANATR')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Let_any_subquery_anonymous() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Orders] AS [o0] - WHERE [o0].[CustomerID] = @_outer_CustomerID), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Orders] AS [o0] - WHERE [o0].[CustomerID] = @_outer_CustomerID), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Orders] AS [o0] - WHERE [o0].[CustomerID] = @_outer_CustomerID), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Orders] AS [o0] - WHERE [o0].[CustomerID] = @_outer_CustomerID), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_multi_level4() : - AssertSql( - @"SELECT IIf(IsNull(( - SELECT TOP 1 ( - SELECT COUNT(*) - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] > 10) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -)), 0, ( - SELECT TOP 1 ( - SELECT COUNT(*) - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] > 10) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -)) AS [Order] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_Skip() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[ContactName] -) AS [t] -ORDER BY [t].[ContactName] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Multiple_joins_Where_Order_Any() : - AssertSql( - @"SELECT IIf( - EXISTS ( - SELECT 1 - FROM (([Customers] AS [c] - INNER JOIN [Orders] AS [or] ON [c].[CustomerID] = [or].[CustomerID]) - INNER JOIN [Order Details] AS [od] ON [or].[OrderID] = [od].[OrderID]) - WHERE [c].[City] = 'London'), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_null_coalesce_operator() : - AssertSql( - @"@__p_0='5' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[CompanyName], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [Region] -FROM [Customers] AS [c] -ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_ThenBy_Any() : - AssertSql( - @"SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c]), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_in_optimization_multiple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE ([c].[City] IN ('London', 'Berlin') OR ([c].[CustomerID] = 'ALFKI')) OR ([c].[CustomerID] = 'ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_orderby_select_many() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_constant_is_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_SelectMany_subquery_with_filter_orderby() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_same_collection_multiple() : - AssertSql( - @"SELECT [c3].[CustomerID], [c3].[Address], [c3].[City], [c3].[CompanyName], [c3].[ContactName], [c3].[ContactTitle], [c3].[Country], [c3].[Fax], [c3].[Phone], [c3].[PostalCode], [c3].[Region] -FROM (([Customers] AS [o] -INNER JOIN [Customers] AS [c2] ON [o].[CustomerID] = [c2].[CustomerID]) -INNER JOIN [Customers] AS [c3] ON [o].[CustomerID] = [c3].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_log() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE (([od].[OrderID] = 11077) AND ([od].[Discount] > 0)) AND (LOG([od].[Discount]) < 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.DTO_complex_orderby() : - AssertSql( - @"SELECT [c].[CustomerID] + [c].[City] AS [Property] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] + [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Skip_no_orderby() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a' - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_parameter() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_concat_string_int_comparison3() : - AssertSql( - @"@__i_0='10' -@__j_1='21' - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE ((((@__i_0 + 20&"""") + [c].[CustomerID]) + (@__j_1&"""")) + (42&"""")) = [c].[CompanyName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple_ordering() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_with_single() : - AssertSql( - @"@__p_0='1' - -SELECT TOP 2 [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_correlated_subquery_projection() : - AssertSql( - @"@__p_0='3' - -SELECT TOP @__p_0 [cc].[CustomerID] -FROM [Customers] AS [cc] -ORDER BY [cc].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.IsNullOrEmpty_in_projection() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], IIf( - [c].[Region] IS NULL OR ([c].[Region] = ''), - True, - False -) AS [Value] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Any_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE [o].[CustomerID] LIKE 'A' + '%')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_from_anonymous_type_introduces_explicit_cast() : - AssertSql( - @"SELECT CLng(IIf(IsNull([o].[OrderID]),0,[o].[OrderID])) AS [LongOrder], CInt(IIf(IsNull([o].[OrderID]),0,[o].[OrderID])) AS [ShortOrder], [o].[OrderID] AS [Order] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many_and() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE (([c].[City] = 'London') AND ([c].[Country] = 'UK')) AND (([e].[City] = 'London') AND ([e].[Country] = 'UK'))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_orderBy_take_long_count() : - AssertSql( - @"@__p_0='7' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[Country] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_long_count() : - AssertSql( - @"@__p_0='7' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_multiple_contains_in_subquery_with_or() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[ProductID] IN ( - SELECT TOP 1 [p].[ProductID] - FROM [Products] AS [p] - ORDER BY [p].[ProductID] -) OR [od].[OrderID] IN ( - SELECT TOP 1 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_tuple_item_closure() : - AssertSql( - @"@__predicateTuple_Item2_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__predicateTuple_Item2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='BSBEV' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='CONSH' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='EASTC' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='NORTS' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='SEVES' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_equals_constant() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.LastOrDefault() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_entities_using_Equals() : - AssertSql( - @"SELECT [c1].[CustomerID] AS [Id1], [c2].[CustomerID] AS [Id2] -FROM [Customers] AS [c1] -, [Customers] AS [c2] -WHERE [c1].[CustomerID] LIKE 'ALFKI' + '%' AND ([c1].[CustomerID] = [c2].[CustomerID]) -ORDER BY [c1].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Union_with_custom_projection() : - AssertSql( - @"SELECT [c1].[CustomerID], [c1].[Address], [c1].[City], [c1].[CompanyName], [c1].[ContactName], [c1].[ContactTitle], [c1].[Country], [c1].[Fax], [c1].[Phone], [c1].[PostalCode], [c1].[Region] -FROM [Customers] AS [c1] -WHERE [c1].[CompanyName] LIKE 'A' + '%'", - // - @"SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE [c2].[CompanyName] LIKE 'B' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_not_in_optimization3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] NOT IN ('London', 'Berlin', 'Seattle')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_different_outer_elements_with_same_key_with_predicate() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID]) -WHERE [o].[OrderID] > 11500"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_customers_orders_count() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_log_new_base() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE (([od].[OrderID] = 11077) AND ([od].[Discount] > 0)) AND ((Log([od].[Discount]) / Log(7)) < 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_correlated_subquery_filtered() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0", - // - @"@__city_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_LastOrDefault() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_not_in_optimization2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] NOT IN ('London', 'Berlin')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Exists_Constant() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE False = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_Where_Distinct_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT DISTINCT [t].* - FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - WHERE [o].[CustomerID] = 'FRANK' - ) AS [t] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_to_fixed_string_parameter() : - AssertSql( - @"@__prefix_0='A' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE @__prefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_true() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_where_all() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[City] = 'México D.F.') AND [c].[CustomerID] NOT IN ('ABCDE', 'ALFKI', 'ANATR')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_sqrt() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Sqr([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_with_subquery_predicate_with_take() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[ContactName], [t].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT TOP @__p_0 [o2].* - FROM [Orders] AS [o2] - WHERE [o2].[OrderID] > 0 - ORDER BY [o2].[OrderID] -) AS [t] ON [c].[CustomerID] = [t].[CustomerID]) -WHERE [t].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Queryable_simple_anonymous_projection_subquery() : - AssertSql( - @"@__p_0='91' - -SELECT TOP @__p_0 [c].[City] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_Distinct() : - AssertSql( - @"@__p_0='5' - -SELECT DISTINCT [t].* -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_de_morgan_or_optimizated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) AND ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_sum() : - AssertSql( - @"@__p_0='10' - -SELECT SUM([t].[OrderID]) -FROM ( - SELECT TOP @__p_0 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Local_array() : - AssertSql( - @"@__get_Item_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_over_entityType_should_materialize_when_composite() : - AssertSql( - @"SELECT TOP 1 [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice] -FROM [Order Details] AS [o] -WHERE ([o].[OrderID] = 10248) AND ([o].[ProductID] = 42)", - // - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice] -FROM [Order Details] AS [o] -WHERE [o].[ProductID] = 42"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + [c].[ContactName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_navigation_contains() : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]", - // - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_binary_expression() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID] * 2),0,[o].[OrderID] * 2))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_indexof() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_anonymous_conditional_expression() : - AssertSql( - @"SELECT [p].[ProductID], IIf( - [p].[UnitsInStock] > 0, - True, - False -) AS [IsAvailable] -FROM [Products] AS [p]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_collection_complex_predicate_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI', 'ALFKI', 'ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_join_orderby_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM (([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -INNER JOIN [Order Details] AS [od] ON [o].[OrderID] = [od].[OrderID]) -WHERE [c].[CustomerID] <> 'ALFKI' -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_truncate() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE Int([od].[UnitPrice]) > 10.0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE [c].[ContactName] + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_anonymous_constant_in_expression() : - AssertSql( - @"SELECT [c].[CustomerID], CInt(IIf(IsNull(Len([c].[CustomerID])),0,Len([c].[CustomerID]))) + 5 AS [Expression] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_negated_boolean_expression_compared_to_another_negated_boolean_expression() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE IIf( - [p].[ProductID] > 50, - True, - False -) = IIf( - [p].[ProductID] > 20, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_skip_take() : - AssertSql( - @"@__p_1='8' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactTitle], [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Subquery_is_null_translated_correctly() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ( - SELECT TOP 1 [o].[CustomerID] - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ORDER BY [o].[OrderID] DESC -) IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_collection_complex_predicate_not_matching_ins1() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ALFKI', 'ABCDE') OR [c].[CustomerID] NOT IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_subquery_and_local_array_closure() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [c1] - WHERE [c1].[City] IN ('London', 'Buenos Aires') AND ([c1].[CustomerID] = [c].[CustomerID]))", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [c1] - WHERE [c1].[City] IN ('London') AND ([c1].[CustomerID] = [c].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_array_closure() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI')", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0", - // - @"@__city_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_not_bool_member_compared_to_binary_expression() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] <> IIf( - [p].[ProductID] > 50, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_navigations_using_Equals() : - AssertSql( - @"SELECT [o1].[OrderID] AS [Id1], [o2].[OrderID] AS [Id2] -FROM [Orders] AS [o1] -, [Orders] AS [o2] -WHERE [o1].[CustomerID] LIKE 'A' + '%' AND (([o1].[CustomerID] = [o2].[CustomerID]) OR ([o1].[CustomerID] IS NULL AND [o2].[CustomerID] IS NULL)) -ORDER BY [o1].[OrderID], [o2].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_cartesian_product_with_ordering() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[City] AS [City0] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE ([c].[City] = [e].[City]) OR ([c].[City] IS NULL AND [e].[City] IS NULL) -ORDER BY [e].[City], [c].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_ternary_boolean_condition_with_another_condition() : - AssertSql( - @"@__productId_0='15' -@__flag_1='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[ProductID] < @__productId_0) AND (((@__flag_1 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_1 <> True) AND ([p].[UnitsInStock] < 20)))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_constant() : - AssertSql( - @"SELECT Mid([c].[ContactName], 2, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_second_component() : - AssertSql( - @"SELECT DatePart('s', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Handle_materialization_properly_when_more_than_two_query_sources_are_involved() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -, [Orders] AS [o] -, [Employees] AS [e] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_bitwise_and_or() : - AssertSql( - @"SELECT [c].[CustomerID], (IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) BOR IIf( - [c].[CustomerID] = 'ANTON', - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_MethodCall() : - AssertSql( - @"@__LocalMethod2_0='m' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + @__LocalMethod2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Project_single_element_from_collection_with_OrderBy_Distinct_and_FirstOrDefault() : - AssertSql( - @"SELECT ( - SELECT DISTINCT TOP 1 [o].[CustomerID] - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] -) -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_conditional_with_null_comparison_in_test() : - AssertSql( - @"SELECT IIf( - [o].[CustomerID] IS NULL OR ([o].[CustomerID] IS NOT NULL AND ([o].[OrderID] < 100)), - True, - False -) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bitwise_and_with_logical_and() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True) AND ([c].[CustomerID] = 'ANTON')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_substring() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Mid([c].[City], 2, 2) = 'ea'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_entity_equality_no_elements_SingleOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = 42", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = 42", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = 42"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Query_expression_with_to_string_and_contains() : - AssertSql( - @"SELECT [o].[CustomerID] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL AND (Instr(1, IIf(IsNull([o].[EmployeeID]), NULL, CStr([o].[EmployeeID])), '10', 0) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_LongCount() : - AssertSql( - @"SELECT COUNT(*) -FROM [Customers] AS [c] -, [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_SelectMany_subquery_with_filter_and_DefaultIfEmpty() : - AssertSql( - @"SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate], [c].[ContactName] -FROM ([Customers] AS [c] -LEFT JOIN ( - SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - WHERE [o].[OrderID] > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_complex_negated_expression_optimized() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[Discontinued] = False) AND ([p].[ProductID] < 60)) AND ([p].[ProductID] > 30)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Skip_Take() : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.TrimStart_without_arguments_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE LTrim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.IsNullOrEmpty_negated_in_projection() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], IIf( - [c].[Region] IS NOT NULL AND ([c].[Region] <> ''), - True, - False -) AS [Value] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.All_top_level_subquery() : - AssertSql( - @"SELECT IIf( - NOT EXISTS ( - SELECT 1 - FROM [Customers] AS [c1] - WHERE NOT (( - SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c2] - WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [c3] - WHERE [c1].[CustomerID] = [c3].[CustomerID])), - True, - False - ) - FROM (SELECT COUNT(*) FROM MSysAccessStorage) - ) = True)), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_replace() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Replace([c].[City], 'Sea', 'Rea') = 'Reattle'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_concat_with_navigation1() : - AssertSql( - @"SELECT ([o].[CustomerID] + ' ') + [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_shadow_subquery_FirstOrDefault() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[Title] = ( - SELECT TOP 1 [e2].[Title] - FROM [Employees] AS [e2] - ORDER BY [e2].[Title] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_OrderBy_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Last() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_bitwise_and() : - AssertSql( - @"SELECT [c].[CustomerID], IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Streaming_chained_sync_query() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"SELECT [y#Customer].[CustomerID], [y#Customer].[Address], [y#Customer].[City], [y#Customer].[CompanyName], [y#Customer].[ContactName], [y#Customer].[ContactTitle], [y#Customer].[Country], [y#Customer].[Fax], [y#Customer].[Phone], [y#Customer].[PostalCode], [y#Customer].[Region] -FROM [Customers] AS [y#Customer]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_dictionary_key_access_closure() : - AssertSql( - @"@__get_Item_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_Subquery_Single() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [od].[OrderID] -FROM [Order Details] AS [od] -ORDER BY [od].[ProductID], [od].[OrderID]", - // - @"@_outer_OrderID='10285' - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_OrderID = [o].[OrderID] -ORDER BY [o].[OrderID]", - // - @"@_outer_OrderID='10294' - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_OrderID = [o].[OrderID] -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_to_upper() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE UCase([c].[CustomerID]) = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_long_to_string() : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderID]), NULL, CStr([o].[OrderID])) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_ternary_boolean_condition_false() : - AssertSql( - @"@__flag_0='False' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ((@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_0 <> True) AND ([p].[UnitsInStock] < 20))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_FirstOrDefault_is_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ( - SELECT TOP 1 [o].[OrderID] - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ORDER BY [o].[OrderID] -) IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_with_subquery_anonymous_property_method_with_take() : - AssertSql( - @"@__p_0='5' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT TOP @__p_0 [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] - FROM [Orders] AS [o2] - ORDER BY [o2].[OrderID] -) AS [t]", - // - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_other_to_string() : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderDate]), NULL, CStr([o].[OrderDate])) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many_or_with_parameter() : - AssertSql( - @"@__london_0='London' (Nullable = false) (Size = 6) -@__lisboa_1='Lisboa' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN (@__london_0, 'Berlin', 'Seattle', @__lisboa_1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition4() : - AssertSql( - @"@__p_0='2' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t]", - // - @"SELECT 1 -FROM [Customers] AS [c0] -ORDER BY [c0].[CustomerID]", - // - @"SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2]", - // - @"SELECT 1 -FROM [Customers] AS [c0] -ORDER BY [c0].[CustomerID]", - // - @"SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_navigations_using_static_Equals() : - AssertSql( - @"SELECT [o1].[OrderID] AS [Id1], [o2].[OrderID] AS [Id2] -FROM [Orders] AS [o1] -, [Orders] AS [o2] -WHERE [o1].[CustomerID] LIKE 'A' + '%' AND (([o1].[CustomerID] = [o2].[CustomerID]) OR ([o1].[CustomerID] IS NULL AND [o2].[CustomerID] IS NULL)) -ORDER BY [o1].[OrderID], [o2].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_non_matching_entities_using_Equals() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id1], [o].[OrderID] AS [Id2] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_any_equals_static() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI', 'ANATR')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_cos() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (COS([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_short_constant() : - AssertSql( - @"SELECT IIf( - [c].[CustomerID] = 'ALFKI', - 1, - 2 -) -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_hour_component() : - AssertSql( - @"SELECT DatePart('h', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_entities() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.FirstOrDefault_inside_subquery_gets_server_evaluated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND (( - SELECT TOP 1 [o].[CustomerID] - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] = 'ALFKI') AND ([c].[CustomerID] = [o].[CustomerID]) -) = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_nested_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0", - // - @"@__city_Nested_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_comparison_to_nullable_bool() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE '%' + 'KI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_orderby_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] <> 'ALFKI' -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Compare_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_with_single_select_many() : - AssertSql( - @"@__p_0='1' - -SELECT TOP 2 [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID] AS [CustomerID0], [o].[EmployeeID], [o].[OrderDate] - FROM [Customers] AS [c] - , [Orders] AS [o] - ORDER BY [c].[CustomerID], [o].[OrderID] -) AS [t] -ORDER BY [t].[CustomerID], [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_all_not_equals_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] NOT IN ('ABCDE', 'ALFKI', 'ANATR')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Let_entity_equality_to_null() : - AssertSql( - @"SELECT [c].[CustomerID], ( - SELECT TOP 1 [e0].[OrderDate] - FROM [Orders] AS [e0] - WHERE [c].[CustomerID] = [e0].[CustomerID] - ORDER BY [e0].[OrderDate] -) AS [OrderDate] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_sign() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Sgn([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_parameter() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE @__prm_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Projection_when_arithmetic_mixed_subqueries() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]", - // - @"SELECT TOP 2 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 2 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 2 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Lifting_when_subquery_nested_order_by_simple() : - AssertSql( - @"@__p_0='2' - -SELECT [t0].[CustomerID] -FROM ( - SELECT DISTINCT [t].[CustomerID] - FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] - ) AS [t] - , [Customers] AS [c2] -) AS [t0]", - // - @"SELECT [c1_Orders].[OrderID], [c1_Orders].[CustomerID], [c1_Orders].[EmployeeID], [c1_Orders].[OrderDate] -FROM [Orders] AS [c1_Orders]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_distinct_long_count() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].* - FROM [Customers] AS [c] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_minute_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('n', [o].[OrderDate]) = 23"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_comparison_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[Region] = 'ASK', - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_Where_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_list_inline() : line() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\Query\SimpleQueryJetTest.ResultOperators.cs:riga 793 - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_entity_to_null_using_Equals() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND [c].[CustomerID] IS NOT NULL -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_min() : - AssertSql( - @"@__p_0='10' - -SELECT MIN([t].[OrderID]) -FROM ( - SELECT TOP @__p_0 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_collection_false() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] NOT IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToDouble() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Compare_two_collection_navigations_with_different_property_chains() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id1], [o].[OrderID] AS [Id2] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE ([c].[CustomerID] = 'ALFKI') AND ([c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID], [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToInt64() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_month_component() : - AssertSql( - @"SELECT DatePart('m', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_any_equals() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI', 'ANATR')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Parameter_extraction_short_circuits_1() : - AssertSql( - @"@__dateFilter_Value_Month_0='7' -@__dateFilter_Value_Year_1='1996' - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10400) AND (([o].[OrderDate] IS NOT NULL AND (DatePart('m', [o].[OrderDate]) = @__dateFilter_Value_Month_0)) AND (DatePart('yyyy', [o].[OrderDate]) = @__dateFilter_Value_Year_1))", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10400"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_different_outer_elements_with_same_key() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_scalar_primitive_after_take() : - AssertSql( - @"@__p_0='9' - -SELECT TOP @__p_0 [e].[EmployeeID] -FROM [Employees] AS [e]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple3() : - AssertSql( - @"SELECT [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_multiple_contains_in_subquery_with_and() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[ProductID] IN ( - SELECT TOP 20 [p].[ProductID] - FROM [Products] AS [p] - ORDER BY [p].[ProductID] -) AND [od].[OrderID] IN ( - SELECT TOP 10 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_ternary_boolean_condition_with_false_as_result_false() : - AssertSql( - @"@__flag_0='False' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_bitwise_or_multiple() : - AssertSql( - @"SELECT [c].[CustomerID], (IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) BOR IIf( - [c].[CustomerID] = 'ANTON', - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Sum_on_float_column() : - AssertSql( - @"SELECT CSng(IIf(IsNull(SUM([od].[Discount])),0,SUM([od].[Discount]))) -FROM [Order Details] AS [od] -WHERE [od].[ProductID] = 1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_average() : - AssertSql( - @"@__p_0='10' - -SELECT AVG(CDbl(IIf(IsNull([t].[OrderID]),0,[t].[OrderID]))) -FROM ( - SELECT TOP @__p_0 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Indexof_with_emptystring() : - AssertSql( - @"SELECT [c].[ContactName] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_static_field_access_closure_via_query_cache() : - AssertSql( - @"@__StaticFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0", - // - @"@__StaticFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_conditional_operator_where_condition_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - False = True, - 'ZZ', - [c].[City] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_null_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[CompanyName], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [Region] -FROM [Customers] AS [c] -ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_byte_constant() : - AssertSql( - @"SELECT IIf( - [c].[CustomerID] = 'ALFKI', - 1, - 2 -) -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_many_cross_join_same_collection() : - AssertSql( - @"SELECT [c0].[CustomerID], [c0].[Address], [c0].[City], [c0].[CompanyName], [c0].[ContactName], [c0].[ContactTitle], [c0].[Country], [c0].[Fax], [c0].[Phone], [c0].[PostalCode], [c0].[Region] -FROM [Customers] AS [c] -, [Customers] AS [c0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_is_not_null() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_non_matching_collection_navigations_using_Equals() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id1], [o].[OrderID] AS [Id2] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Static_equals_int_compared_to_long() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_ternary_boolean_condition_with_false_as_result_true() : - AssertSql( - @"@__flag_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_division_on_decimal() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull([od].[Quantity] / 2.09),0,[od].[Quantity] / 2.09))) -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_not_in_optimization1() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND (([e].[City] <> 'London') OR [e].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + [c].[ContactName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_DTO_with_member_init_distinct_in_subquery_used_in_projection_translated_to_server() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [t].[Id], [t].[Count] -FROM [Customers] AS [c] -, ( - SELECT DISTINCT [o].[CustomerID] AS [Id], [o].[OrderID] AS [Count] - FROM [Orders] AS [o] - WHERE [o].[OrderID] < 10300 -) AS [t] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_array_index() : - AssertSql( - @"@__p_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_Customers_Orders_Projection_With_String_Concat_Skip_Take() : - AssertSql( - @"@__p_1='5' -@__p_0='10' - -SELECT TOP @__p_1+@__p_0 ([c].[ContactName] + ' ') + [c].[ContactTitle] AS [Contact], [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [o].[OrderID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Min_with_non_matching_types_in_projection_introduces_explicit_cast() : - AssertSql( - @"SELECT MIN(CLng(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_primitive() : - AssertSql( - @"@__p_0='9' - -SELECT [t].[EmployeeID] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID] - FROM [Employees] AS [e] -) AS [t] -WHERE [t].[EmployeeID] = 5"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_equals_on_mismatched_types_nullable_int_long() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_multi_level2() : - AssertSql( - @"SELECT ( - SELECT TOP 1 [o].[OrderDate] - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [OrderDates] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_DateTime_Date() : - AssertSql( - @"SELECT [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE IIf(IsNull([e].[OrderDate]), NULL, DateValue([e].[OrderDate])) IN (#07/04/1996 00:00:00#, #07/16/1996 00:00:00#)", - // - @"SELECT [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE IIf(IsNull([e].[OrderDate]), NULL, DateValue([e].[OrderDate])) IN (#07/04/1996 00:00:00#)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_tracking_groups() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE [c].[ContactName] + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition2_FirstOrDefault_with_anonymous() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetimeoffset_now_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_Dto_projection_skip_take() : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID] AS [Id] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.LastOrDefault_Predicate() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Any() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[OrderDate] = #10/24/2008 00:00:00#) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_customers_orders_count_preserves_ordering() : - AssertSql( - @"@__p_0='5' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM (( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - WHERE [c].[CustomerID] NOT IN ('VAFFE', 'DRACD') - ORDER BY [c].[City] -) AS [t] -LEFT JOIN [Orders] AS [o] ON [t].[CustomerID] = [o].[CustomerID]) -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_no_arg() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_day_of_year_component() : - AssertSql( - @"SELECT DatePart('y', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Parameter_extraction_short_circuits_3() : - AssertSql( - @"@__dateFilter_Value_Month_0='7' -@__dateFilter_Value_Year_1='1996' - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10400) OR (([o].[OrderDate] IS NOT NULL AND (DatePart('m', [o].[OrderDate]) = @__dateFilter_Value_Month_0)) AND (DatePart('yyyy', [o].[OrderDate]) = @__dateFilter_Value_Year_1))", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many_or3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN ('London', 'Berlin', 'Seattle')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_via_query_cache_nullable_type() : - AssertSql( - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_Where_OrderBy() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE ([o].[CustomerID] = 'ALFKI') OR ([c].[CustomerID] = 'ANATR') -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Projection_null_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[CompanyName], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToByte() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_false() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_FirstOrDefault_compared_to_entity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ( - SELECT TOP 1 [o].[OrderID] - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ORDER BY [o].[OrderID] -) = 10243"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_concat_string_int_comparison2() : - AssertSql( - @"@__i_0='10' - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE ((@__i_0&"""") + [c].[CustomerID]) = [c].[CompanyName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_client_Take() : - AssertSql( - @"@__p_1='10' - -SELECT TOP @__p_1 [o].[EmployeeID], [o].[City], [o].[Country], [o].[FirstName], [o].[ReportsTo], [o].[Title] -FROM [Employees] AS [o] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Compare_collection_navigation_with_itself() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND ([c].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_subquery_projection() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[City] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_sin() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (SIN([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_int_to_long_introduces_explicit_cast() : - AssertSql( - @"SELECT CLng(IIf(IsNull([o].[OrderID]),0,[o].[OrderID])) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_entity_equality_one_element_FirstOrDefault() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE ( - SELECT TOP 1 [e2].[EmployeeID] - FROM [Employees] AS [e2] - WHERE [e2].[EmployeeID] = [e1].[ReportsTo] -) = 0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_MethodCall() : - AssertSql( - @"@__LocalMethod1_0='M' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE @__LocalMethod1_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_nullable_int_to_long_introduces_explicit_cast() : - AssertSql( - @"SELECT CLng(IIf(IsNull([o].[EmployeeID]),0,[o].[EmployeeID])) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_method_call_nullable_type_reverse_closure_via_query_cache() : - AssertSql( - @"@__city_NullableInt_0='1' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0", - // - @"@__city_NullableInt_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_top_level() : - AssertSql( - @"@__p_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT IIf( - @__p_0 IN ( - SELECT [c].[CustomerID] - FROM [Customers] AS [c] - ), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_on_float_column_in_subquery() : - AssertSql( - @"SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10300", - // - @"@_outer_OrderID='10248' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10249' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10250' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10251' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10252' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10253' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10254' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10255' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_Take_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Distinct_Take() : - AssertSql( - @"@__p_0='5' - -SELECT TOP @__p_0 [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT DISTINCT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] -) AS [t] -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_with_subquery_with_take() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[ContactName], [t].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT TOP @__p_0 [o2].* - FROM [Orders] AS [o2] - ORDER BY [o2].[OrderID] -) AS [t] ON [c].[CustomerID] = [t].[CustomerID]) -WHERE [t].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.No_orderby_added_for_fully_translated_manually_constructed_LOJ() : - AssertSql( - @"SELECT [e1].[City] AS [City1], [e2].[City] AS [City2] -FROM ([Employees] AS [e1] -LEFT JOIN [Employees] AS [e2] ON [e1].[EmployeeID] = [e2].[ReportsTo])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE 'M' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_list_inline_closure_mix() : line_closure_mix() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\Query\SimpleQueryJetTest.ResultOperators.cs:riga 803 - AssertSql( - @"@__id_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', @__id_0)", - // - @"@__id_0='ANATR' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', @__id_0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_coalesce_take_distinct() : - AssertSql( - @"@__p_0='15' - -SELECT DISTINCT [t].* -FROM ( - SELECT TOP @__p_0 [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] - FROM [Products] AS [p] - ORDER BY IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice]) -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Min_with_coalesce() : - AssertSql( - @"SELECT MIN(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_multi_level3() : - AssertSql( - @"SELECT ( - SELECT TOP 1 [o].[OrderDate] - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [OrderDates] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_functions_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE CInt(IIf(IsNull(Len([c].[CustomerID])),0,Len([c].[CustomerID])))^2 = 25"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_named_tuple_item_closure() : - AssertSql( - @"@__predicateTuple_Item2_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__predicateTuple_Item2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_all_not_equals() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] NOT IN ('ABCDE', 'ALFKI', 'ANATR')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_simple_parameterized() : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Max_with_coalesce() : - AssertSql( - @"SELECT MAX(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_false() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_skip_null_coalesce_operator() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[CompanyName], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [Region] - FROM [Customers] AS [c] - ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) -) AS [t] -ORDER BY [t].[Region] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_equals_on_matched_nullable_int_types() : - AssertSql( - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE @__nullableIntPrm_0 = [e].[ReportsTo]", - // - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__nullableIntPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.First_inside_subquery_gets_client_evaluated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE ([o0].[CustomerID] = 'ALFKI') AND (@_outer_CustomerID = [o0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_concat_with_navigation2() : - AssertSql( - @"SELECT ([o#Customer].[City] + ' ') + [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_from_binary_expression_nested_introduces_top_level_explicit_cast() : - AssertSql( - @"SELECT CInt(IIf(IsNull([o].[OrderID] + [o].[OrderID]),0,[o].[OrderID] + [o].[OrderID])) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_projection1() : - AssertSql( - @"SELECT [e1].[City], [e2].[Country] -FROM [Employees] AS [e1] -, [Employees] AS [e2]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_concat_string_int_comparison1() : - AssertSql( - @"@__i_0='10' - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] + (@__i_0&"""")) = [c].[CompanyName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_client_side_negated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_static_property_access_closure_via_query_cache() : - AssertSql( - @"@__StaticPropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0", - // - @"@__StaticPropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_via_query_cache() : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0", - // - @"@__city_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_to_lower() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE LCase([c].[CustomerID]) = 'alfki'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_simple() : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Complex_query_with_repeated_query_model_compiles_correctly() : - AssertSql( - @"SELECT [outer].[CustomerID], [outer].[Address], [outer].[City], [outer].[CompanyName], [outer].[ContactName], [outer].[ContactTitle], [outer].[Country], [outer].[Fax], [outer].[Phone], [outer].[PostalCode], [outer].[Region] -FROM [Customers] AS [outer] -WHERE [outer].[CustomerID] = 'ALFKI'", - // - @"SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c0] - WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [cc1])), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Contains_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr(1, [c].[ContactName], [c].[ContactName], 0) > 0) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Subquery_is_not_null_translated_correctly() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ( - SELECT TOP 1 [o].[CustomerID] - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ORDER BY [o].[OrderID] DESC -) IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_zero_length() : - AssertSql( - @"SELECT Mid([c].[ContactName], 3, 0) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_Where_Subquery_Equality() : - AssertSql( - @"@__p_0='1' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] -) AS [t] -ORDER BY [t].[OrderID]", - // - @"SELECT [t1].[OrderID] -FROM ( - SELECT TOP 2 [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice] - FROM [Order Details] AS [od0] - ORDER BY [od0].[OrderID] -) AS [t1]", - // - @"@_outer_CustomerID2='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 1 [c3].[Country] -FROM [Customers] AS [c3] -WHERE [c3].[CustomerID] = @_outer_CustomerID2 -ORDER BY [c3].[CustomerID]", - // - @"@_outer_OrderID1='10248' - -SELECT TOP 1 [c4].[Country] -FROM ([Orders] AS [o20] -INNER JOIN [Customers] AS [c4] ON [o20].[CustomerID] = [c4].[CustomerID]) -WHERE [o20].[OrderID] = @_outer_OrderID1 -ORDER BY [o20].[OrderID], [c4].[CustomerID]", - // - @"@_outer_CustomerID2='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 1 [c3].[Country] -FROM [Customers] AS [c3] -WHERE [c3].[CustomerID] = @_outer_CustomerID2 -ORDER BY [c3].[CustomerID]", - // - @"@_outer_OrderID1='10248' - -SELECT TOP 1 [c4].[Country] -FROM ([Orders] AS [o20] -INNER JOIN [Customers] AS [c4] ON [o20].[CustomerID] = [c4].[CustomerID]) -WHERE [o20].[OrderID] = @_outer_OrderID1 -ORDER BY [o20].[OrderID], [c4].[CustomerID]", - // - @"@_outer_CustomerID2='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 1 [c3].[Country] -FROM [Customers] AS [c3] -WHERE [c3].[CustomerID] = @_outer_CustomerID2 -ORDER BY [c3].[CustomerID]", - // - @"@_outer_OrderID1='10248' - -SELECT TOP 1 [c4].[Country] -FROM ([Orders] AS [o20] -INNER JOIN [Customers] AS [c4] ON [o20].[CustomerID] = [c4].[CustomerID]) -WHERE [o20].[OrderID] = @_outer_OrderID1 -ORDER BY [o20].[OrderID], [c4].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_math_truncate_int() : - AssertSql( - @"SELECT Int(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [A] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10250"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_closure() : - AssertSql( - @"@__start_0='2' - -SELECT Mid([c].[ContactName], @__start_0 + 1, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_same_collection_force_alias_uniquefication() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM ([Orders] AS [o] -INNER JOIN [Orders] AS [o0] ON [o].[CustomerID] = [o0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_max() : - AssertSql( - @"@__p_0='10' - -SELECT MAX([t].[OrderID]) -FROM ( - SELECT TOP @__p_0 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OfType_Select_OfType_Select() : - AssertSql( - @"SELECT TOP 1 [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_skip_null_coalesce_operator3() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [c] - FROM [Customers] AS [c] - ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) -) AS [t] -ORDER BY [t].[c] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_select() : - AssertSql( - @"SELECT [c].[ContactName], [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_array_inline() : line() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\Query\SimpleQueryJetTest.ResultOperators.cs:riga 763 - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_conditional_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[Region] IS NULL, - 'ZZ', - [c].[Region] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_bitwise_or_with_logical_or() : - AssertSql( - @"SELECT [c].[CustomerID], IIf( - ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False - ) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False - )) = True) OR ([c].[CustomerID] = 'ANTON'), - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty_multiple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o1].[OrderID], [o1].[CustomerID], [o1].[EmployeeID], [o1].[OrderDate], [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM (([Customers] AS [c] -LEFT JOIN [Orders] AS [o1] ON [c].[CustomerID] = [o1].[CustomerID]) -LEFT JOIN [Orders] AS [o2] ON [c].[CustomerID] = [o2].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_length() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE CInt(IIf(IsNull(Len([c].[City])),0,Len([c].[City]))) = 6"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_chain() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'QUICK') AND ([o].[OrderDate] > #01/01/1998 00:00:00#)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.All_top_level() : - AssertSql( - @"SELECT IIf( - NOT EXISTS ( - SELECT 1 - FROM [Customers] AS [c] - WHERE NOT ([c].[ContactName] LIKE 'A' + '%')), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_power() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[Discount]^2 > 0.05000000074505806"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_compare_to_with_parameter() : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_mixed() : - AssertSql( - @"@__p_0='2' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_non_matching_types_in_projection_doesnt_produce_second_explicit_cast() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure() : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_zero_startindex() : - AssertSql( - @"SELECT Mid([c].[ContactName], 1, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_ternary_boolean_condition_true() : - AssertSql( - @"@__flag_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ((@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_0 <> True) AND ([p].[UnitsInStock] < 20))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Projection_when_arithmetic_mixed() : - AssertSql( - @"@__p_0='10' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate], [t0].[EmployeeID], [t0].[City], [t0].[Country], [t0].[FirstName], [t0].[ReportsTo], [t0].[Title] -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] -, ( - SELECT TOP 5 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_nested_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0", - // - @"@__city_Nested_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_collection_empty_closure() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_collection_sql_injection() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ALFKI', 'ABC'')); GO; DROP TABLE Orders; GO; --', 'ALFKI', 'ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Max_with_non_matching_types_in_projection_introduces_explicit_cast() : - AssertSql( - @"SELECT MAX(CLng(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Null_conditional_deep() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE CInt(IIf(IsNull(Len([c].[CustomerID])),0,Len([c].[CustomerID]))) = 5"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_Take_Last_gives_correct_result() : - AssertSql( - @"@__p_0='20' - -SELECT TOP 1 [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -ORDER BY [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty_Project() : - AssertSql( - @"SELECT [o].[OrderID] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition2() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_count() : - AssertSql( - @"@__p_0='7' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_from_binary_expression_introduces_explicit_cast() : - AssertSql( - @"SELECT CLng(IIf(IsNull([o].[OrderID] + [o].[OrderID]),0,[o].[OrderID] + [o].[OrderID])) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Compare_to_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_take_count_works() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [o].* - FROM ([Orders] AS [o] - INNER JOIN ( - SELECT [c].* - FROM [Customers] AS [c] - WHERE [c].[CustomerID] = 'ALFKI' - ) AS [t] ON [o].[CustomerID] = [t].[CustomerID]) - WHERE ([o].[OrderID] > 690) AND ([o].[OrderID] < 710) -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_date_add_year_constant_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('yyyy', IIf(IsNull([o].[OrderDate]), NULL, DateAdd('yyyy', -1, [o].[OrderDate]))) = 1997"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_in_complex_predicate() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[ProductID] > 100) AND ([p].[Discontinued] = True)) OR ([p].[Discontinued] = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_collection_navigation_to_null_complex() : - AssertSql( - @"SELECT [od].[ProductID], [od].[OrderID] -FROM ([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -WHERE ([od].[OrderID] < 10250) AND [od#Order].[CustomerID] IS NOT NULL -ORDER BY [od].[OrderID], [od].[ProductID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bitwise_and_with_logical_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True) OR ([c].[CustomerID] = 'ANTON')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Complex_query_with_repeated_nested_query_model_compiles_correctly() : - AssertSql( - @"SELECT [outer].[CustomerID], [outer].[Address], [outer].[City], [outer].[CompanyName], [outer].[ContactName], [outer].[ContactTitle], [outer].[Country], [outer].[Fax], [outer].[Phone], [outer].[PostalCode], [outer].[Region] -FROM [Customers] AS [outer] -WHERE [outer].[CustomerID] = 'ALFKI'", - // - @"SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c0] - WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [cc1] - WHERE EXISTS ( - SELECT DISTINCT 1 - FROM ( - SELECT TOP 10 [inner1].* - FROM [Customers] AS [inner1] - ORDER BY [inner1].[CustomerID] - ) AS [t1]))), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Parameter_extraction_short_circuits_2() : - AssertSql( - @"@__dateFilter_Value_Month_0='7' -@__dateFilter_Value_Year_1='1996' - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10400) AND (([o].[OrderDate] IS NOT NULL AND (DatePart('m', [o].[OrderDate]) = @__dateFilter_Value_Month_0)) AND (DatePart('yyyy', [o].[OrderDate]) = @__dateFilter_Value_Year_1))", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Let_subquery_with_multiple_occurences() : - AssertSql( - @"SELECT ( - SELECT COUNT(*) - FROM [Order Details] AS [od0] - WHERE ([od0].[Quantity] < 10) AND ([o].[OrderID] = [od0].[OrderID]) -) AS [Count] -FROM [Orders] AS [o] -WHERE EXISTS ( - SELECT 1 - FROM [Order Details] AS [od] - WHERE ([od].[Quantity] < 10) AND ([o].[OrderID] = [od].[OrderID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE ([c].[City] = 'London') OR ([e].[City] = 'London')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Distinct_Skip_Take() : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT DISTINCT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] -) AS [t] -ORDER BY [t].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_and_parameter_compared_to_binary_expression_nested() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = IIf( - IIf( - [p].[ProductID] > 50, - True, - False - ) <> @__prm_0, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Orderby_added_for_client_side_GroupJoin_principal_to_dependent_LOJ() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City] AS [City1], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title], [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM ([Employees] AS [e1] -LEFT JOIN [Employees] AS [e2] ON [e1].[EmployeeID] = [e2].[ReportsTo]) -ORDER BY [e1].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_from_anonymous_type_introduces_explicit_cast() : - AssertSql( - @"SELECT CLng(IIf(IsNull([o].[OrderID]),0,[o].[OrderID])) AS [LongOrder], CInt(IIf(IsNull([o].[OrderID]),0,[o].[OrderID])) AS [ShortOrder], [o].[OrderID] AS [Order] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many_and() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE (([c].[City] = 'London') AND ([c].[Country] = 'UK')) AND (([e].[City] = 'London') AND ([e].[Country] = 'UK'))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_orderBy_take_long_count() : - AssertSql( - @"@__p_0='7' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[Country] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_long_count() : - AssertSql( - @"@__p_0='7' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_multiple_contains_in_subquery_with_or() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[ProductID] IN ( - SELECT TOP 1 [p].[ProductID] - FROM [Products] AS [p] - ORDER BY [p].[ProductID] -) OR [od].[OrderID] IN ( - SELECT TOP 1 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_tuple_item_closure() : - AssertSql( - @"@__predicateTuple_Item2_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__predicateTuple_Item2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='BSBEV' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='CONSH' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='EASTC' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='NORTS' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='SEVES' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_equals_constant() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.LastOrDefault() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_entities_using_Equals() : - AssertSql( - @"SELECT [c1].[CustomerID] AS [Id1], [c2].[CustomerID] AS [Id2] -FROM [Customers] AS [c1] -, [Customers] AS [c2] -WHERE [c1].[CustomerID] LIKE 'ALFKI' + '%' AND ([c1].[CustomerID] = [c2].[CustomerID]) -ORDER BY [c1].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Union_with_custom_projection() : - AssertSql( - @"SELECT [c1].[CustomerID], [c1].[Address], [c1].[City], [c1].[CompanyName], [c1].[ContactName], [c1].[ContactTitle], [c1].[Country], [c1].[Fax], [c1].[Phone], [c1].[PostalCode], [c1].[Region] -FROM [Customers] AS [c1] -WHERE [c1].[CompanyName] LIKE 'A' + '%'", - // - @"SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE [c2].[CompanyName] LIKE 'B' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_not_in_optimization3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] NOT IN ('London', 'Berlin', 'Seattle')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_different_outer_elements_with_same_key_with_predicate() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID]) -WHERE [o].[OrderID] > 11500"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_customers_orders_count() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_log_new_base() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE (([od].[OrderID] = 11077) AND ([od].[Discount] > 0)) AND ((Log([od].[Discount]) / Log(7)) < 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_correlated_subquery_filtered() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0", - // - @"@__city_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_LastOrDefault() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_not_in_optimization2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] NOT IN ('London', 'Berlin')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Exists_Constant() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE False = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_Where_Distinct_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT DISTINCT [t].* - FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - WHERE [o].[CustomerID] = 'FRANK' - ) AS [t] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_to_fixed_string_parameter() : - AssertSql( - @"@__prefix_0='A' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE @__prefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_true() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_sqrt() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Sqr([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_with_subquery_predicate_with_take() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[ContactName], [t].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT TOP @__p_0 [o2].* - FROM [Orders] AS [o2] - WHERE [o2].[OrderID] > 0 - ORDER BY [o2].[OrderID] -) AS [t] ON [c].[CustomerID] = [t].[CustomerID]) -WHERE [t].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Queryable_simple_anonymous_projection_subquery() : - AssertSql( - @"@__p_0='91' - -SELECT TOP @__p_0 [c].[City] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_Distinct() : - AssertSql( - @"@__p_0='5' - -SELECT DISTINCT [t].* -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_de_morgan_or_optimizated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) AND ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_sum() : - AssertSql( - @"@__p_0='10' - -SELECT SUM([t].[OrderID]) -FROM ( - SELECT TOP @__p_0 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Local_array() : - AssertSql( - @"@__get_Item_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_over_entityType_should_materialize_when_composite() : - AssertSql( - @"SELECT TOP 1 [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice] -FROM [Order Details] AS [o] -WHERE ([o].[OrderID] = 10248) AND ([o].[ProductID] = 42)", - // - @"SELECT [o].[OrderID], [o].[ProductID], [o].[Discount], [o].[Quantity], [o].[UnitPrice] -FROM [Order Details] AS [o] -WHERE [o].[ProductID] = 42"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + [c].[ContactName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_navigation_contains() : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]", - // - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_binary_expression() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID] * 2),0,[o].[OrderID] * 2))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_indexof() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_anonymous_conditional_expression() : - AssertSql( - @"SELECT [p].[ProductID], IIf( - [p].[UnitsInStock] > 0, - True, - False -) AS [IsAvailable] -FROM [Products] AS [p]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_join_orderby_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM (([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -INNER JOIN [Order Details] AS [od] ON [o].[OrderID] = [od].[OrderID]) -WHERE [c].[CustomerID] <> 'ALFKI' -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_truncate() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE Int([od].[UnitPrice]) > 10.0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE [c].[ContactName] + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_anonymous_constant_in_expression() : - AssertSql( - @"SELECT [c].[CustomerID], CInt(IIf(IsNull(Len([c].[CustomerID])),0,Len([c].[CustomerID]))) + 5 AS [Expression] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_negated_boolean_expression_compared_to_another_negated_boolean_expression() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE IIf( - [p].[ProductID] > 50, - True, - False -) = IIf( - [p].[ProductID] > 20, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_skip_take() : - AssertSql( - @"@__p_1='8' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactTitle], [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Subquery_is_null_translated_correctly() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ( - SELECT TOP 1 [o].[CustomerID] - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ORDER BY [o].[OrderID] DESC -) IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0", - // - @"@__city_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_not_bool_member_compared_to_binary_expression() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] <> IIf( - [p].[ProductID] > 50, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_navigations_using_Equals() : - AssertSql( - @"SELECT [o1].[OrderID] AS [Id1], [o2].[OrderID] AS [Id2] -FROM [Orders] AS [o1] -, [Orders] AS [o2] -WHERE [o1].[CustomerID] LIKE 'A' + '%' AND (([o1].[CustomerID] = [o2].[CustomerID]) OR ([o1].[CustomerID] IS NULL AND [o2].[CustomerID] IS NULL)) -ORDER BY [o1].[OrderID], [o2].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_cartesian_product_with_ordering() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[City] AS [City0] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE ([c].[City] = [e].[City]) OR ([c].[City] IS NULL AND [e].[City] IS NULL) -ORDER BY [e].[City], [c].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_ternary_boolean_condition_with_another_condition() : - AssertSql( - @"@__productId_0='15' -@__flag_1='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[ProductID] < @__productId_0) AND (((@__flag_1 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_1 <> True) AND ([p].[UnitsInStock] < 20)))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_constant() : - AssertSql( - @"SELECT Mid([c].[ContactName], 2, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_second_component() : - AssertSql( - @"SELECT DatePart('s', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Handle_materialization_properly_when_more_than_two_query_sources_are_involved() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -, [Orders] AS [o] -, [Employees] AS [e] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_bitwise_and_or() : - AssertSql( - @"SELECT [c].[CustomerID], (IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) BOR IIf( - [c].[CustomerID] = 'ANTON', - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_MethodCall() : - AssertSql( - @"@__LocalMethod2_0='m' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + @__LocalMethod2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Project_single_element_from_collection_with_OrderBy_Distinct_and_FirstOrDefault() : - AssertSql( - @"SELECT ( - SELECT DISTINCT TOP 1 [o].[CustomerID] - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] -) -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_conditional_with_null_comparison_in_test() : - AssertSql( - @"SELECT IIf( - [o].[CustomerID] IS NULL OR ([o].[CustomerID] IS NOT NULL AND ([o].[OrderID] < 100)), - True, - False -) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bitwise_and_with_logical_and() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True) AND ([c].[CustomerID] = 'ANTON')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_substring() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Mid([c].[City], 2, 2) = 'ea'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_entity_equality_no_elements_SingleOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = 42", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = 42", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = 42"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Query_expression_with_to_string_and_contains() : - AssertSql( - @"SELECT [o].[CustomerID] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL AND (Instr(1, IIf(IsNull([o].[EmployeeID]), NULL, CStr([o].[EmployeeID])), '10', 0) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_LongCount() : - AssertSql( - @"SELECT COUNT(*) -FROM [Customers] AS [c] -, [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_SelectMany_subquery_with_filter_and_DefaultIfEmpty() : - AssertSql( - @"SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate], [c].[ContactName] -FROM ([Customers] AS [c] -LEFT JOIN ( - SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - WHERE [o].[OrderID] > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_complex_negated_expression_optimized() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[Discontinued] = False) AND ([p].[ProductID] < 60)) AND ([p].[ProductID] > 30)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Skip_Take() : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.TrimStart_without_arguments_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE LTrim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.IsNullOrEmpty_negated_in_projection() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], IIf( - [c].[Region] IS NOT NULL AND ([c].[Region] <> ''), - True, - False -) AS [Value] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.All_top_level_subquery() : - AssertSql( - @"SELECT IIf( - NOT EXISTS ( - SELECT 1 - FROM [Customers] AS [c1] - WHERE NOT (( - SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c2] - WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [c3] - WHERE [c1].[CustomerID] = [c3].[CustomerID])), - True, - False - ) - FROM (SELECT COUNT(*) FROM MSysAccessStorage) - ) = True)), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_replace() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Replace([c].[City], 'Sea', 'Rea') = 'Reattle'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_concat_with_navigation1() : - AssertSql( - @"SELECT ([o].[CustomerID] + ' ') + [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_shadow_subquery_FirstOrDefault() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[Title] = ( - SELECT TOP 1 [e2].[Title] - FROM [Employees] AS [e2] - ORDER BY [e2].[Title] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_OrderBy_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Last() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_bitwise_and() : - AssertSql( - @"SELECT [c].[CustomerID], IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Streaming_chained_sync_query() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"SELECT [y#Customer].[CustomerID], [y#Customer].[Address], [y#Customer].[City], [y#Customer].[CompanyName], [y#Customer].[ContactName], [y#Customer].[ContactTitle], [y#Customer].[Country], [y#Customer].[Fax], [y#Customer].[Phone], [y#Customer].[PostalCode], [y#Customer].[Region] -FROM [Customers] AS [y#Customer]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_dictionary_key_access_closure() : - AssertSql( - @"@__get_Item_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_Subquery_Single() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [od].[OrderID] -FROM [Order Details] AS [od] -ORDER BY [od].[ProductID], [od].[OrderID]", - // - @"@_outer_OrderID='10285' - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_OrderID = [o].[OrderID] -ORDER BY [o].[OrderID]", - // - @"@_outer_OrderID='10294' - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_OrderID = [o].[OrderID] -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_to_upper() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE UCase([c].[CustomerID]) = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_long_to_string() : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderID]), NULL, CStr([o].[OrderID])) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_ternary_boolean_condition_false() : - AssertSql( - @"@__flag_0='False' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ((@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_0 <> True) AND ([p].[UnitsInStock] < 20))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_FirstOrDefault_is_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ( - SELECT TOP 1 [o].[OrderID] - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ORDER BY [o].[OrderID] -) IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_with_subquery_anonymous_property_method_with_take() : - AssertSql( - @"@__p_0='5' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT TOP @__p_0 [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] - FROM [Orders] AS [o2] - ORDER BY [o2].[OrderID] -) AS [t]", - // - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_other_to_string() : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderDate]), NULL, CStr([o].[OrderDate])) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many_or_with_parameter() : - AssertSql( - @"@__london_0='London' (Nullable = false) (Size = 6) -@__lisboa_1='Lisboa' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN (@__london_0, 'Berlin', 'Seattle', @__lisboa_1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition4() : - AssertSql( - @"@__p_0='2' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t]", - // - @"SELECT 1 -FROM [Customers] AS [c0] -ORDER BY [c0].[CustomerID]", - // - @"SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2]", - // - @"SELECT 1 -FROM [Customers] AS [c0] -ORDER BY [c0].[CustomerID]", - // - @"SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_navigations_using_static_Equals() : - AssertSql( - @"SELECT [o1].[OrderID] AS [Id1], [o2].[OrderID] AS [Id2] -FROM [Orders] AS [o1] -, [Orders] AS [o2] -WHERE [o1].[CustomerID] LIKE 'A' + '%' AND (([o1].[CustomerID] = [o2].[CustomerID]) OR ([o1].[CustomerID] IS NULL AND [o2].[CustomerID] IS NULL)) -ORDER BY [o1].[OrderID], [o2].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_non_matching_entities_using_Equals() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id1], [o].[OrderID] AS [Id2] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_cos() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (COS([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_short_constant() : - AssertSql( - @"SELECT IIf( - [c].[CustomerID] = 'ALFKI', - 1, - 2 -) -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_hour_component() : - AssertSql( - @"SELECT DatePart('h', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_entities() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.FirstOrDefault_inside_subquery_gets_server_evaluated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND (( - SELECT TOP 1 [o].[CustomerID] - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] = 'ALFKI') AND ([c].[CustomerID] = [o].[CustomerID]) -) = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_nested_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0", - // - @"@__city_Nested_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_comparison_to_nullable_bool() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE '%' + 'KI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_orderby_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] <> 'ALFKI' -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Compare_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_with_single_select_many() : - AssertSql( - @"@__p_0='1' - -SELECT TOP 2 [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID] AS [CustomerID0], [o].[EmployeeID], [o].[OrderDate] - FROM [Customers] AS [c] - , [Orders] AS [o] - ORDER BY [c].[CustomerID], [o].[OrderID] -) AS [t] -ORDER BY [t].[CustomerID], [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Let_entity_equality_to_null() : - AssertSql( - @"SELECT [c].[CustomerID], ( - SELECT TOP 1 [e0].[OrderDate] - FROM [Orders] AS [e0] - WHERE [c].[CustomerID] = [e0].[CustomerID] - ORDER BY [e0].[OrderDate] -) AS [OrderDate] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_sign() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Sgn([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_parameter() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE @__prm_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Projection_when_arithmetic_mixed_subqueries() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]", - // - @"SELECT TOP 2 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 2 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 2 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Lifting_when_subquery_nested_order_by_simple() : - AssertSql( - @"@__p_0='2' - -SELECT [t0].[CustomerID] -FROM ( - SELECT DISTINCT [t].[CustomerID] - FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] - ) AS [t] - , [Customers] AS [c2] -) AS [t0]", - // - @"SELECT [c1_Orders].[OrderID], [c1_Orders].[CustomerID], [c1_Orders].[EmployeeID], [c1_Orders].[OrderDate] -FROM [Orders] AS [c1_Orders]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_distinct_long_count() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].* - FROM [Customers] AS [c] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_minute_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('n', [o].[OrderDate]) = 23"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_comparison_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[Region] = 'ASK', - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_Where_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_entity_to_null_using_Equals() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND [c].[CustomerID] IS NOT NULL -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_min() : - AssertSql( - @"@__p_0='10' - -SELECT MIN([t].[OrderID]) -FROM ( - SELECT TOP @__p_0 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToDouble() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Compare_two_collection_navigations_with_different_property_chains() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id1], [o].[OrderID] AS [Id2] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE ([c].[CustomerID] = 'ALFKI') AND ([c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID], [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToInt64() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_month_component() : - AssertSql( - @"SELECT DatePart('m', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Parameter_extraction_short_circuits_1() : - AssertSql( - @"@__dateFilter_Value_Month_0='7' -@__dateFilter_Value_Year_1='1996' - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10400) AND (([o].[OrderDate] IS NOT NULL AND (DatePart('m', [o].[OrderDate]) = @__dateFilter_Value_Month_0)) AND (DatePart('yyyy', [o].[OrderDate]) = @__dateFilter_Value_Year_1))", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10400"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_different_outer_elements_with_same_key() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_scalar_primitive_after_take() : - AssertSql( - @"@__p_0='9' - -SELECT TOP @__p_0 [e].[EmployeeID] -FROM [Employees] AS [e]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple3() : - AssertSql( - @"SELECT [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_multiple_contains_in_subquery_with_and() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[ProductID] IN ( - SELECT TOP 20 [p].[ProductID] - FROM [Products] AS [p] - ORDER BY [p].[ProductID] -) AND [od].[OrderID] IN ( - SELECT TOP 10 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_ternary_boolean_condition_with_false_as_result_false() : - AssertSql( - @"@__flag_0='False' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_bitwise_or_multiple() : - AssertSql( - @"SELECT [c].[CustomerID], (IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) BOR IIf( - [c].[CustomerID] = 'ANTON', - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Sum_on_float_column() : - AssertSql( - @"SELECT CSng(IIf(IsNull(SUM([od].[Discount])),0,SUM([od].[Discount]))) -FROM [Order Details] AS [od] -WHERE [od].[ProductID] = 1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_average() : - AssertSql( - @"@__p_0='10' - -SELECT AVG(CDbl(IIf(IsNull([t].[OrderID]),0,[t].[OrderID]))) -FROM ( - SELECT TOP @__p_0 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Indexof_with_emptystring() : - AssertSql( - @"SELECT [c].[ContactName] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_static_field_access_closure_via_query_cache() : - AssertSql( - @"@__StaticFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0", - // - @"@__StaticFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_conditional_operator_where_condition_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - False = True, - 'ZZ', - [c].[City] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_null_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[CompanyName], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [Region] -FROM [Customers] AS [c] -ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_byte_constant() : - AssertSql( - @"SELECT IIf( - [c].[CustomerID] = 'ALFKI', - 1, - 2 -) -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_many_cross_join_same_collection() : - AssertSql( - @"SELECT [c0].[CustomerID], [c0].[Address], [c0].[City], [c0].[CompanyName], [c0].[ContactName], [c0].[ContactTitle], [c0].[Country], [c0].[Fax], [c0].[Phone], [c0].[PostalCode], [c0].[Region] -FROM [Customers] AS [c] -, [Customers] AS [c0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_is_not_null() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_non_matching_collection_navigations_using_Equals() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id1], [o].[OrderID] AS [Id2] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Static_equals_int_compared_to_long() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_ternary_boolean_condition_with_false_as_result_true() : - AssertSql( - @"@__flag_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_division_on_decimal() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull([od].[Quantity] / 2.09),0,[od].[Quantity] / 2.09))) -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_not_in_optimization1() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE (([c].[City] <> 'London') OR [c].[City] IS NULL) AND (([e].[City] <> 'London') OR [e].[City] IS NULL)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + [c].[ContactName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_DTO_with_member_init_distinct_in_subquery_used_in_projection_translated_to_server() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [t].[Id], [t].[Count] -FROM [Customers] AS [c] -, ( - SELECT DISTINCT [o].[CustomerID] AS [Id], [o].[OrderID] AS [Count] - FROM [Orders] AS [o] - WHERE [o].[OrderID] < 10300 -) AS [t] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_array_index() : - AssertSql( - @"@__p_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_Customers_Orders_Projection_With_String_Concat_Skip_Take() : - AssertSql( - @"@__p_1='5' -@__p_0='10' - -SELECT TOP @__p_1+@__p_0 ([c].[ContactName] + ' ') + [c].[ContactTitle] AS [Contact], [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [o].[OrderID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Min_with_non_matching_types_in_projection_introduces_explicit_cast() : - AssertSql( - @"SELECT MIN(CLng(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_primitive() : - AssertSql( - @"@__p_0='9' - -SELECT [t].[EmployeeID] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID] - FROM [Employees] AS [e] -) AS [t] -WHERE [t].[EmployeeID] = 5"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_equals_on_mismatched_types_nullable_int_long() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_multi_level2() : - AssertSql( - @"SELECT ( - SELECT TOP 1 [o].[OrderDate] - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [OrderDates] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_DateTime_Date() : - AssertSql( - @"SELECT [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE IIf(IsNull([e].[OrderDate]), NULL, DateValue([e].[OrderDate])) IN (#07/04/1996 00:00:00#, #07/16/1996 00:00:00#)", - // - @"SELECT [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE IIf(IsNull([e].[OrderDate]), NULL, DateValue([e].[OrderDate])) IN (#07/04/1996 00:00:00#)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_tracking_groups() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE [c].[ContactName] + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition2_FirstOrDefault_with_anonymous() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetimeoffset_now_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_Dto_projection_skip_take() : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID] AS [Id] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.LastOrDefault_Predicate() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Any() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[OrderDate] = #10/24/2008 00:00:00#) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_customers_orders_count_preserves_ordering() : - AssertSql( - @"@__p_0='5' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM (( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - WHERE [c].[CustomerID] NOT IN ('VAFFE', 'DRACD') - ORDER BY [c].[City] -) AS [t] -LEFT JOIN [Orders] AS [o] ON [t].[CustomerID] = [o].[CustomerID]) -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_no_arg() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_day_of_year_component() : - AssertSql( - @"SELECT DatePart('y', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Parameter_extraction_short_circuits_3() : - AssertSql( - @"@__dateFilter_Value_Month_0='7' -@__dateFilter_Value_Year_1='1996' - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10400) OR (([o].[OrderDate] IS NOT NULL AND (DatePart('m', [o].[OrderDate]) = @__dateFilter_Value_Month_0)) AND (DatePart('yyyy', [o].[OrderDate]) = @__dateFilter_Value_Year_1))", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many_or3() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN ('London', 'Berlin', 'Seattle')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_via_query_cache_nullable_type() : - AssertSql( - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_Where_OrderBy() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE ([o].[CustomerID] = 'ALFKI') OR ([c].[CustomerID] = 'ANATR') -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Projection_null_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[CompanyName], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToByte() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_false() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_FirstOrDefault_compared_to_entity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ( - SELECT TOP 1 [o].[OrderID] - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ORDER BY [o].[OrderID] -) = 10243"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_concat_string_int_comparison2() : - AssertSql( - @"@__i_0='10' - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE ((@__i_0&"""") + [c].[CustomerID]) = [c].[CompanyName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_client_Take() : - AssertSql( - @"@__p_1='10' - -SELECT TOP @__p_1 [o].[EmployeeID], [o].[City], [o].[Country], [o].[FirstName], [o].[ReportsTo], [o].[Title] -FROM [Employees] AS [o] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Compare_collection_navigation_with_itself() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND ([c].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_subquery_projection() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[City] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_sin() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (SIN([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_int_to_long_introduces_explicit_cast() : - AssertSql( - @"SELECT CLng(IIf(IsNull([o].[OrderID]),0,[o].[OrderID])) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_entity_equality_one_element_FirstOrDefault() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE ( - SELECT TOP 1 [e2].[EmployeeID] - FROM [Employees] AS [e2] - WHERE [e2].[EmployeeID] = [e1].[ReportsTo] -) = 0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_MethodCall() : - AssertSql( - @"@__LocalMethod1_0='M' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE @__LocalMethod1_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_nullable_int_to_long_introduces_explicit_cast() : - AssertSql( - @"SELECT CLng(IIf(IsNull([o].[EmployeeID]),0,[o].[EmployeeID])) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_method_call_nullable_type_reverse_closure_via_query_cache() : - AssertSql( - @"@__city_NullableInt_0='1' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0", - // - @"@__city_NullableInt_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_top_level() : - AssertSql( - @"@__p_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT IIf( - @__p_0 IN ( - SELECT [c].[CustomerID] - FROM [Customers] AS [c] - ), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_on_float_column_in_subquery() : - AssertSql( - @"SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10300", - // - @"@_outer_OrderID='10248' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10249' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10250' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10251' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10252' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10253' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10254' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10255' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_Take_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Distinct_Take() : - AssertSql( - @"@__p_0='5' - -SELECT TOP @__p_0 [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT DISTINCT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] -) AS [t] -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_with_subquery_with_take() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[ContactName], [t].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT TOP @__p_0 [o2].* - FROM [Orders] AS [o2] - ORDER BY [o2].[OrderID] -) AS [t] ON [c].[CustomerID] = [t].[CustomerID]) -WHERE [t].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.No_orderby_added_for_fully_translated_manually_constructed_LOJ() : - AssertSql( - @"SELECT [e1].[City] AS [City1], [e2].[City] AS [City2] -FROM ([Employees] AS [e1] -LEFT JOIN [Employees] AS [e2] ON [e1].[EmployeeID] = [e2].[ReportsTo])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE 'M' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_list_inline_closure_mix() : line_closure_mix() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\Query\SimpleQueryJetTest.ResultOperators.cs:riga 803 - AssertSql( - @"@__id_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', @__id_0)", - // - @"@__id_0='ANATR' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', @__id_0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_coalesce_take_distinct() : - AssertSql( - @"@__p_0='15' - -SELECT DISTINCT [t].* -FROM ( - SELECT TOP @__p_0 [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] - FROM [Products] AS [p] - ORDER BY IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice]) -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Min_with_coalesce() : - AssertSql( - @"SELECT MIN(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_multi_level3() : - AssertSql( - @"SELECT ( - SELECT TOP 1 [o].[OrderDate] - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -) AS [OrderDates] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_functions_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE CInt(IIf(IsNull(Len([c].[CustomerID])),0,Len([c].[CustomerID])))^2 = 25"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_named_tuple_item_closure() : - AssertSql( - @"@__predicateTuple_Item2_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__predicateTuple_Item2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_simple_parameterized() : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Max_with_coalesce() : - AssertSql( - @"SELECT MAX(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_false() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_skip_null_coalesce_operator() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[CompanyName], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [Region] - FROM [Customers] AS [c] - ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) -) AS [t] -ORDER BY [t].[Region] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_equals_on_matched_nullable_int_types() : - AssertSql( - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE @__nullableIntPrm_0 = [e].[ReportsTo]", - // - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__nullableIntPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.First_inside_subquery_gets_client_evaluated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE ([o0].[CustomerID] = 'ALFKI') AND (@_outer_CustomerID = [o0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_concat_with_navigation2() : - AssertSql( - @"SELECT ([o#Customer].[City] + ' ') + [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_from_binary_expression_nested_introduces_top_level_explicit_cast() : - AssertSql( - @"SELECT CInt(IIf(IsNull([o].[OrderID] + [o].[OrderID]),0,[o].[OrderID] + [o].[OrderID])) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_projection1() : - AssertSql( - @"SELECT [e1].[City], [e2].[Country] -FROM [Employees] AS [e1] -, [Employees] AS [e2]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_concat_string_int_comparison1() : - AssertSql( - @"@__i_0='10' - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] + (@__i_0&"""")) = [c].[CompanyName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_client_side_negated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_static_property_access_closure_via_query_cache() : - AssertSql( - @"@__StaticPropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0", - // - @"@__StaticPropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_via_query_cache() : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0", - // - @"@__city_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_to_lower() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE LCase([c].[CustomerID]) = 'alfki'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_simple() : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Complex_query_with_repeated_query_model_compiles_correctly() : - AssertSql( - @"SELECT [outer].[CustomerID], [outer].[Address], [outer].[City], [outer].[CompanyName], [outer].[ContactName], [outer].[ContactTitle], [outer].[Country], [outer].[Fax], [outer].[Phone], [outer].[PostalCode], [outer].[Region] -FROM [Customers] AS [outer] -WHERE [outer].[CustomerID] = 'ALFKI'", - // - @"SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c0] - WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [cc1])), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Contains_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr(1, [c].[ContactName], [c].[ContactName], 0) > 0) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Subquery_is_not_null_translated_correctly() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ( - SELECT TOP 1 [o].[CustomerID] - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ORDER BY [o].[OrderID] DESC -) IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_zero_length() : - AssertSql( - @"SELECT Mid([c].[ContactName], 3, 0) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_Where_Subquery_Equality() : - AssertSql( - @"@__p_0='1' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] -) AS [t] -ORDER BY [t].[OrderID]", - // - @"SELECT [t1].[OrderID] -FROM ( - SELECT TOP 2 [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice] - FROM [Order Details] AS [od0] - ORDER BY [od0].[OrderID] -) AS [t1]", - // - @"@_outer_CustomerID2='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 1 [c3].[Country] -FROM [Customers] AS [c3] -WHERE [c3].[CustomerID] = @_outer_CustomerID2 -ORDER BY [c3].[CustomerID]", - // - @"@_outer_OrderID1='10248' - -SELECT TOP 1 [c4].[Country] -FROM ([Orders] AS [o20] -INNER JOIN [Customers] AS [c4] ON [o20].[CustomerID] = [c4].[CustomerID]) -WHERE [o20].[OrderID] = @_outer_OrderID1 -ORDER BY [o20].[OrderID], [c4].[CustomerID]", - // - @"@_outer_CustomerID2='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 1 [c3].[Country] -FROM [Customers] AS [c3] -WHERE [c3].[CustomerID] = @_outer_CustomerID2 -ORDER BY [c3].[CustomerID]", - // - @"@_outer_OrderID1='10248' - -SELECT TOP 1 [c4].[Country] -FROM ([Orders] AS [o20] -INNER JOIN [Customers] AS [c4] ON [o20].[CustomerID] = [c4].[CustomerID]) -WHERE [o20].[OrderID] = @_outer_OrderID1 -ORDER BY [o20].[OrderID], [c4].[CustomerID]", - // - @"@_outer_CustomerID2='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 1 [c3].[Country] -FROM [Customers] AS [c3] -WHERE [c3].[CustomerID] = @_outer_CustomerID2 -ORDER BY [c3].[CustomerID]", - // - @"@_outer_OrderID1='10248' - -SELECT TOP 1 [c4].[Country] -FROM ([Orders] AS [o20] -INNER JOIN [Customers] AS [c4] ON [o20].[CustomerID] = [c4].[CustomerID]) -WHERE [o20].[OrderID] = @_outer_OrderID1 -ORDER BY [o20].[OrderID], [c4].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_math_truncate_int() : - AssertSql( - @"SELECT Int(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [A] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10250"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_closure() : - AssertSql( - @"@__start_0='2' - -SELECT Mid([c].[ContactName], @__start_0 + 1, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_same_collection_force_alias_uniquefication() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM ([Orders] AS [o] -INNER JOIN [Orders] AS [o0] ON [o].[CustomerID] = [o0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_max() : - AssertSql( - @"@__p_0='10' - -SELECT MAX([t].[OrderID]) -FROM ( - SELECT TOP @__p_0 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OfType_Select_OfType_Select() : - AssertSql( - @"SELECT TOP 1 [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_skip_null_coalesce_operator3() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [c] - FROM [Customers] AS [c] - ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) -) AS [t] -ORDER BY [t].[c] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_select() : - AssertSql( - @"SELECT [c].[ContactName], [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_conditional_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf( - [c].[Region] IS NULL, - 'ZZ', - [c].[Region] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_bitwise_or_with_logical_or() : - AssertSql( - @"SELECT [c].[CustomerID], IIf( - ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False - ) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False - )) = True) OR ([c].[CustomerID] = 'ANTON'), - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty_multiple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o1].[OrderID], [o1].[CustomerID], [o1].[EmployeeID], [o1].[OrderDate], [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM (([Customers] AS [c] -LEFT JOIN [Orders] AS [o1] ON [c].[CustomerID] = [o1].[CustomerID]) -LEFT JOIN [Orders] AS [o2] ON [c].[CustomerID] = [o2].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_length() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE CInt(IIf(IsNull(Len([c].[City])),0,Len([c].[City]))) = 6"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_chain() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'QUICK') AND ([o].[OrderDate] > #01/01/1998 00:00:00#)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.All_top_level() : - AssertSql( - @"SELECT IIf( - NOT EXISTS ( - SELECT 1 - FROM [Customers] AS [c] - WHERE NOT ([c].[ContactName] LIKE 'A' + '%')), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_power() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[Discount]^2 > 0.05000000074505806"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_compare_to_with_parameter() : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_mixed() : - AssertSql( - @"@__p_0='2' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_non_matching_types_in_projection_doesnt_produce_second_explicit_cast() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure() : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_zero_startindex() : - AssertSql( - @"SELECT Mid([c].[ContactName], 1, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_ternary_boolean_condition_true() : - AssertSql( - @"@__flag_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ((@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_0 <> True) AND ([p].[UnitsInStock] < 20))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Projection_when_arithmetic_mixed() : - AssertSql( - @"@__p_0='10' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate], [t0].[EmployeeID], [t0].[City], [t0].[Country], [t0].[FirstName], [t0].[ReportsTo], [t0].[Title] -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] -, ( - SELECT TOP 5 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_nested_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0", - // - @"@__city_Nested_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_collection_empty_closure() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Max_with_non_matching_types_in_projection_introduces_explicit_cast() : - AssertSql( - @"SELECT MAX(CLng(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Null_conditional_deep() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE CInt(IIf(IsNull(Len([c].[CustomerID])),0,Len([c].[CustomerID]))) = 5"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_Take_Last_gives_correct_result() : - AssertSql( - @"@__p_0='20' - -SELECT TOP 1 [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -ORDER BY [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty_Project() : - AssertSql( - @"SELECT [o].[OrderID] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition2() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_count() : - AssertSql( - @"@__p_0='7' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_from_binary_expression_introduces_explicit_cast() : - AssertSql( - @"SELECT CLng(IIf(IsNull([o].[OrderID] + [o].[OrderID]),0,[o].[OrderID] + [o].[OrderID])) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Compare_to_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_take_count_works() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [o].* - FROM ([Orders] AS [o] - INNER JOIN ( - SELECT [c].* - FROM [Customers] AS [c] - WHERE [c].[CustomerID] = 'ALFKI' - ) AS [t] ON [o].[CustomerID] = [t].[CustomerID]) - WHERE ([o].[OrderID] > 690) AND ([o].[OrderID] < 710) -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_date_add_year_constant_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('yyyy', IIf(IsNull([o].[OrderDate]), NULL, DateAdd('yyyy', -1, [o].[OrderDate]))) = 1997"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_in_complex_predicate() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[ProductID] > 100) AND ([p].[Discontinued] = True)) OR ([p].[Discontinued] = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_collection_navigation_to_null_complex() : - AssertSql( - @"SELECT [od].[ProductID], [od].[OrderID] -FROM ([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -WHERE ([od].[OrderID] < 10250) AND [od#Order].[CustomerID] IS NOT NULL -ORDER BY [od].[OrderID], [od].[ProductID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bitwise_and_with_logical_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True) OR ([c].[CustomerID] = 'ANTON')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Complex_query_with_repeated_nested_query_model_compiles_correctly() : - AssertSql( - @"SELECT [outer].[CustomerID], [outer].[Address], [outer].[City], [outer].[CompanyName], [outer].[ContactName], [outer].[ContactTitle], [outer].[Country], [outer].[Fax], [outer].[Phone], [outer].[PostalCode], [outer].[Region] -FROM [Customers] AS [outer] -WHERE [outer].[CustomerID] = 'ALFKI'", - // - @"SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c0] - WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [cc1] - WHERE EXISTS ( - SELECT DISTINCT 1 - FROM ( - SELECT TOP 10 [inner1].* - FROM [Customers] AS [inner1] - ORDER BY [inner1].[CustomerID] - ) AS [t1]))), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Parameter_extraction_short_circuits_2() : - AssertSql( - @"@__dateFilter_Value_Month_0='7' -@__dateFilter_Value_Year_1='1996' - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10400) AND (([o].[OrderDate] IS NOT NULL AND (DatePart('m', [o].[OrderDate]) = @__dateFilter_Value_Month_0)) AND (DatePart('yyyy', [o].[OrderDate]) = @__dateFilter_Value_Year_1))", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Let_subquery_with_multiple_occurences() : - AssertSql( - @"SELECT ( - SELECT COUNT(*) - FROM [Order Details] AS [od0] - WHERE ([od0].[Quantity] < 10) AND ([o].[OrderID] = [od0].[OrderID]) -) AS [Count] -FROM [Orders] AS [o] -WHERE EXISTS ( - SELECT 1 - FROM [Order Details] AS [od] - WHERE ([od].[Quantity] < 10) AND ([o].[OrderID] = [od].[OrderID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE ([c].[City] = 'London') OR ([e].[City] = 'London')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Distinct_Skip_Take() : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT DISTINCT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] -) AS [t] -ORDER BY [t].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_and_parameter_compared_to_binary_expression_nested() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = IIf( - IIf( - [p].[ProductID] > 50, - True, - False - ) <> @__prm_0, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Orderby_added_for_client_side_GroupJoin_principal_to_dependent_LOJ() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City] AS [City1], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title], [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM ([Employees] AS [e1] -LEFT JOIN [Employees] AS [e2] ON [e1].[EmployeeID] = [e2].[ReportsTo]) -ORDER BY [e1].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_exp() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (EXP([od].[Discount]) > 1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_guid_newguid() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE NewGuid() <> '00000000-0000-0000-0000-000000000000'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_equals_on_mismatched_types_nullable_long_nullable_int() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_skip_null_coalesce_operator2() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[CompanyName], [c].[Region], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [c] - FROM [Customers] AS [c] - ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) -) AS [t] -ORDER BY [t].[c] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Projection_when_client_evald_subquery() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [t].[CustomerID], [c#Orders].[CustomerID] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Queryable_simple_anonymous_subquery() : - AssertSql( - @"@__p_0='91' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_arg() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_utcnow() : - AssertSql( - @"@__myDatetime_0='2015-04-10T00:00:00' (DbType = DateTime) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Now() <> @__myDatetime_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_math_round_int() : - AssertSql( - @"SELECT ROUND(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID])), 0) AS [A] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10250"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Manual_expression_tree_typed_null_equality() : - AssertSql( - @"SELECT IIf( - [o].[CustomerID] IS NULL, - [o#Customer].[City], - NULL -) -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -WHERE [o].[OrderID] < 10300"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_day_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('d', [o].[OrderDate]) = 4"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.QueryType_with_nav_defining_query() : - AssertSql( - @"@__ef_filter___searchTerm_0='A' (Nullable = false) (Size = 1) -@__ef_filter___searchTerm_1='A' (Nullable = false) (Size = 1) - -SELECT [t].[CompanyName], [t].[OrderCount], [t].[SearchTerm] -FROM ( - SELECT [c].[CompanyName], ( - SELECT COUNT(*) - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ) AS [OrderCount], @__ef_filter___searchTerm_0 AS [SearchTerm] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[CompanyName] LIKE @__ef_filter___searchTerm_1 + '%' AND ([t].[OrderCount] > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_integer() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.All_top_level_column() : - AssertSql( - @"SELECT IIf( - NOT EXISTS ( - SELECT 1 - FROM [Customers] AS [c] - WHERE NOT ([c].[ContactName] LIKE [c].[ContactName] + '%')), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_bitwise_or() : - AssertSql( - @"SELECT [c].[CustomerID], IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Selected_column_can_coalesce() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_multi_level5() : - AssertSql( - @"SELECT IIf(IsNull(( - SELECT TOP 1 ( - SELECT TOP 1 [od].[ProductID] - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] <> ( - SELECT COUNT(*) - FROM [Orders] AS [o0] - WHERE [c].[CustomerID] = [o0].[CustomerID] - )) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -)), 0, ( - SELECT TOP 1 ( - SELECT TOP 1 [od].[ProductID] - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] <> ( - SELECT COUNT(*) - FROM [Orders] AS [o0] - WHERE [c].[CustomerID] = [o0].[CustomerID] - )) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -)) AS [Order] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_on_collection() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE 5 IN ( - SELECT [o].[Quantity] - FROM [Order Details] AS [o] - WHERE [o].[ProductID] = [p].[ProductID] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Sum_on_float_column_in_subquery() : - AssertSql( - @"SELECT [o].[OrderID], ( - SELECT CSng(IIf(IsNull(SUM([od].[Discount])),0,SUM([od].[Discount]))) - FROM [Order Details] AS [od] - WHERE [o].[OrderID] = [od].[OrderID] -) AS [Sum] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10300"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.All_top_level_subquery_ef_property() : - AssertSql( - @"SELECT IIf( - NOT EXISTS ( - SELECT 1 - FROM [Customers] AS [c1] - WHERE NOT (( - SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c2] - WHERE EXISTS ( - SELECT 1 - FROM [Customers] AS [c3] - WHERE [c1].[CustomerID] = [c3].[CustomerID])), - True, - False - ) - FROM (SELECT COUNT(*) FROM MSysAccessStorage) - ) = True)), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Single_Predicate() : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [o].[OrderID] IS NOT NULL AND ([o].[CustomerID] = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Last_Predicate() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_constant() : - AssertSql( - @"@__predicate_0='True' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE @__predicate_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_tan() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (TAN([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_de_morgan_and_optimizated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) OR ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_bool_constant() : - AssertSql( - @"SELECT IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition2_FirstOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t] -WHERE [t].[FirstName] = ( - SELECT TOP 1 [e0].[FirstName] - FROM [Employees] AS [e0] - ORDER BY [e0].[EmployeeID] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_select_many() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -, [Employees] AS [e]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_bitwise_and_with_logical_and() : - AssertSql( - @"SELECT [c].[CustomerID], IIf( - ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False - ) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False - )) = True) AND ([c].[CustomerID] = 'ANTON'), - True, - False -) AS [Value] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_compared_to_binary_expression() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = IIf( - [p].[ProductID] > 50, - True, - False -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_references_are_updated_correctly_with_subquery() : - AssertSql( - @"@__nextYear_0='2017' - -SELECT [t].[c] -FROM ( - SELECT DISTINCT DatePart('yyyy', [o].[OrderDate]) AS [c] - FROM [Orders] AS [o] - WHERE [o].[OrderDate] IS NOT NULL -) AS [t] -WHERE [t].[c] < @__nextYear_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_OrderBy_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty3() : - AssertSql( - @"@__p_0='1' - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM (( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -LEFT JOIN [Orders] AS [o] ON [t].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Complex_nested_query_doesnt_try_binding_to_grandparent_when_parent_returns_complex_result() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"@_outer_CustomerID1='ALFKI' (Nullable = false) (Size = 5) -@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) -@_outer_CustomerID2='ALFKI' (Nullable = false) (Size = 5) - -SELECT ( - SELECT COUNT(*) - FROM [Orders] AS [o0] - WHERE @_outer_CustomerID1 = [o0].[CustomerID] -) AS [InnerOrder], @_outer_CustomerID2 AS [Id] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Project_single_element_from_collection_with_OrderBy_over_navigation_Take_and_FirstOrDefault_2() : - AssertSql( - @"SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10250", - // - @"@_outer_OrderID='10248' - -SELECT TOP 1 [t].* -FROM ( - SELECT TOP 1 [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice], [od#Product].[ProductName] - FROM ([Order Details] AS [od] - INNER JOIN [Products] AS [od#Product] ON [od].[ProductID] = [od#Product].[ProductID]) - WHERE @_outer_OrderID = [od].[OrderID] - ORDER BY [od#Product].[ProductName] -) AS [t] -ORDER BY [t].[ProductName]", - // - @"@_outer_OrderID='10249' - -SELECT TOP 1 [t].* -FROM ( - SELECT TOP 1 [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice], [od#Product].[ProductName] - FROM ([Order Details] AS [od] - INNER JOIN [Products] AS [od#Product] ON [od].[ProductID] = [od#Product].[ProductID]) - WHERE @_outer_OrderID = [od].[OrderID] - ORDER BY [od#Product].[ProductName] -) AS [t] -ORDER BY [t].[ProductName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_over_entityType_should_rewrite_to_identity_equality() : - AssertSql( - @"SELECT TOP 2 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderID] = 10248", - // - @"@__p_0_OrderID='10248' - -SELECT IIf( - @__p_0_OrderID IN ( - SELECT [o].[OrderID] - FROM [Orders] AS [o] - WHERE [o].[CustomerID] = 'VINET' - ), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_now() : - AssertSql( - @"@__myDatetime_0='2015-04-10T00:00:00' (DbType = DateTime) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Now() <> @__myDatetime_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_SelectMany() : - AssertSql( - @"SELECT [c].[ContactName], [t].[OrderID] -FROM [Customers] AS [c] -, ( - SELECT TOP 3 [o].* - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] -WHERE [c].[CustomerID] = [t].[CustomerID] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple_subquery() : - AssertSql( - @"@__p_0='4' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty2() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Employees] AS [e] -LEFT JOIN [Orders] AS [o] ON [e].[EmployeeID] = [o].[EmployeeID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_correlated_client_eval() : - AssertSql( - @"@__p_0='5' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] -) AS [t] -ORDER BY [t].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID = [c2].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID = [c2].[CustomerID]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID = [c2].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID = [c2].[CustomerID]", - // - @"@_outer_CustomerID='BERGS' (Nullable = false) (Size = 5) - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID = [c2].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_equals_using_object_overload_on_mismatched_types() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_simple_projection() : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[City] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Replace_with_emptystring() : - AssertSql( - @"SELECT Replace([c].[ContactName], 'ari', '') -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_date_add_year() : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderDate]), NULL, DateAdd('yyyy', 1, [o].[OrderDate])) AS [OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Distinct_Take_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT DISTINCT TOP @__p_0 [o].* - FROM [Orders] AS [o] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_entity_equality_multiple_elements_FirstOrDefault() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE ( - SELECT TOP 1 [e2].[EmployeeID] - FROM [Employees] AS [e2] - WHERE ([e2].[EmployeeID] <> [e1].[ReportsTo]) OR [e1].[ReportsTo] IS NULL -) = 0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_false_shadow() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Skip() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_year_component() : - AssertSql( - @"SELECT DatePart('yyyy', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_order_by_key_descending2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] LIKE 'A' + '%' -ORDER BY [c].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_compare_with_parameter() : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_OrderBy_ThenBy_Any() : - AssertSql( - @"SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c] - , [Orders] AS [o]), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Subquery_member_pushdown_does_not_change_original_subquery_model() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[CustomerID], [t].[OrderID] -FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]", - // - @"@_outer_CustomerID='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c0].[City] -FROM [Customers] AS [c0] -WHERE [c0].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='TOMSP' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c0].[City] -FROM [Customers] AS [c0] -WHERE [c0].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='HANAR' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c0].[City] -FROM [Customers] AS [c0] -WHERE [c0].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID1='TOMSP' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE [c2].[CustomerID] = @_outer_CustomerID1", - // - @"@_outer_CustomerID1='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE [c2].[CustomerID] = @_outer_CustomerID1", - // - @"@_outer_CustomerID1='HANAR' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE [c2].[CustomerID] = @_outer_CustomerID1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Let_entity_equality_to_other_entity() : - AssertSql( - @"SELECT [c].[CustomerID], ( - SELECT TOP 1 [e2].[OrderDate] - FROM [Orders] AS [e2] - WHERE [c].[CustomerID] = [e2].[CustomerID] - ORDER BY [e2].[OrderDate] -) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID1='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e1].[OrderID], [e1].[CustomerID], [e1].[EmployeeID], [e1].[OrderDate] -FROM [Orders] AS [e1] -WHERE @_outer_CustomerID1 = [e1].[CustomerID] -ORDER BY [e1].[OrderDate]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID1='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e1].[OrderID], [e1].[CustomerID], [e1].[EmployeeID], [e1].[OrderDate] -FROM [Orders] AS [e1] -WHERE @_outer_CustomerID1 = [e1].[CustomerID] -ORDER BY [e1].[OrderDate]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID1='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e1].[OrderID], [e1].[CustomerID], [e1].[EmployeeID], [e1].[OrderDate] -FROM [Orders] AS [e1] -WHERE @_outer_CustomerID1 = [e1].[CustomerID] -ORDER BY [e1].[OrderDate]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID1='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e1].[OrderID], [e1].[CustomerID], [e1].[EmployeeID], [e1].[OrderDate] -FROM [Orders] AS [e1] -WHERE @_outer_CustomerID1 = [e1].[CustomerID] -ORDER BY [e1].[OrderDate]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_entity_equality_no_elements_FirstOrDefault() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE ( - SELECT TOP 1 [e2].[EmployeeID] - FROM [Employees] AS [e2] - WHERE [e2].[EmployeeID] = 42 -) = 0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_from_unary_expression_introduces_explicit_cast1() : - AssertSql( - @"SELECT CLng(IIf(IsNull(-[o].[OrderID]),0,-[o].[OrderID])) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.TrimEnd_without_arguments_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE RTrim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_Any_with_predicate() : - AssertSql( - @"@__p_0='5' - -SELECT IIf( - EXISTS ( - SELECT 1 - FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] - ) AS [t] - WHERE [t].[CustomerID] LIKE 'B' + '%'), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Exists_Inequality() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE (([o].[OrderDate] <> #10/24/2008 00:00:00#) OR [o].[OrderDate] IS NULL) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToInt32() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_month_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('m', [o].[OrderDate]) = 4"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Exists() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[OrderDate] = #10/24/2008 00:00:00#) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_is_null() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_correlated_subquery_ordered() : - AssertSql( - @"@__p_0='3' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_Where_Subquery_Deep_Single() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[OrderID] = 10344", - // - @"@_outer_OrderID='10344' - -SELECT TOP 2 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE @_outer_OrderID = [o0].[OrderID]", - // - @"@_outer_CustomerID1='WHITC' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID1 = [c2].[CustomerID]", - // - @"@_outer_OrderID='10344' - -SELECT TOP 2 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE @_outer_OrderID = [o0].[OrderID]", - // - @"@_outer_CustomerID1='WHITC' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID1 = [c2].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_GroupJoin_DefaultIfEmpty_Where() : - AssertSql( - @"SELECT [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM (([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -LEFT JOIN [Orders] AS [o2] ON [c].[CustomerID] = [o2].[CustomerID]) -WHERE [o2].[OrderID] IS NOT NULL AND ([o2].[CustomerID] = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_log10() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE (([od].[OrderID] = 11077) AND ([od].[Discount] > 0)) AND ((Log([od].[Discount]) / 2.3025850929940459) < 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_Where_Subquery_Deep_First() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ( - SELECT TOP 1 ( - SELECT TOP 1 [c].[City] - FROM [Customers] AS [c] - WHERE [o].[CustomerID] = [c].[CustomerID] - ) - FROM [Orders] AS [o] - WHERE [od].[OrderID] = [o].[OrderID] -) = 'Seattle'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_null_is_not_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_parameter_compared_to_binary_expression() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE IIf( - [p].[ProductID] > 50, - True, - False -) <> @__prm_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_coalesce() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])),0,IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])))) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_negated_twice() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_from_unary_expression_introduces_explicit_cast2() : - AssertSql( - @"SELECT -CLng(IIf(IsNull([o].[OrderID]),0,[o].[OrderID])) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Distinct_Skip() : - AssertSql( - @"@__p_0='5' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT DISTINCT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] -) AS [t] -ORDER BY [t].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_order_by_key_descending1() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] LIKE 'A' + '%' -ORDER BY [c].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_on_float_column() : - AssertSql( - @"SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od].[Discount]),0,[od].[Discount])))),0,AVG(CSng(IIf(IsNull([od].[Discount]),0,[od].[Discount]))))) -FROM [Order Details] AS [od] -WHERE [od].[ProductID] = 1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_minute_component() : - AssertSql( - @"SELECT DatePart('n', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_null_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_atan() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Atn([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_simple1() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Employees] AS [e] -, [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bitwise_or_with_logical_and() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True) AND ([c].[Country] = 'Germany')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_entity_equality_one_element_SingleOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.No_orderby_added_for_client_side_GroupJoin_dependent_to_principal_LOJ() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID] AS [Id1], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetimeoffset_utcnow_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bitwise_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_asin() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Atn([od].[Discount] / Sqr(-[od].[Discount] * [od].[Discount] + 1)) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_method_call_closure_via_query_cache() : - AssertSql( - @"@__GetCity_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0", - // - @"@__GetCity_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bitwise_or_with_logical_or() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ((IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BOR IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True) OR ([c].[CustomerID] = 'ANTON')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_arg_expression() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID] + [o].[OrderID]),0,[o].[OrderID] + [o].[OrderID]))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Project_single_element_from_collection_with_OrderBy_Take_and_SingleOrDefault() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 2 [t0].[CustomerID] -FROM ( - SELECT TOP 1 [o0].[CustomerID], [o0].[OrderID] - FROM [Orders] AS [o0] - WHERE @_outer_CustomerID = [o0].[CustomerID] - ORDER BY [o0].[OrderID] -) AS [t0] -ORDER BY [t0].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Any_predicate() : - AssertSql( - @"SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c] - WHERE [c].[ContactName] LIKE 'A' + '%'), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_year_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('yyyy', [o].[OrderDate]) = 1998"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + 'b'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_SelectMany_subquery_with_filter() : - AssertSql( - @"SELECT [c].[ContactName], [t].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT [o].* - FROM [Orders] AS [o] - WHERE [o].[OrderID] > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_composite_key() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON ([c].[CustomerID] = [o].[CustomerID]) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Lifting_when_subquery_nested_order_by_anonymous() : - AssertSql( - @"@__p_0='2' - -SELECT [c1_Orders].[OrderID], [c1_Orders].[CustomerID], [c1_Orders].[EmployeeID], [c1_Orders].[OrderDate], [t0].[CustomerID] -FROM ([Orders] AS [c1_Orders] -INNER JOIN ( - SELECT DISTINCT [t].[CustomerID] - FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] - ) AS [t] - , [Customers] AS [c2] -) AS [t0] ON [c1_Orders].[CustomerID] = [t0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_different_entity_types_using_Equals() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OfType_Select() : - AssertSql( - @"SELECT TOP 1 [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_Customers_Orders_Skip_Take() : - AssertSql( - @"@__p_1='5' -@__p_0='10' - -SELECT TOP @__p_1+@__p_0 [c].[ContactName], [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [o].[OrderID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Order_by_length_twice() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY CInt(IIf(IsNull(Len([c].[CustomerID])),0,Len([c].[CustomerID]))), [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Trim_without_argument_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Trim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_dayOfYear_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('y', [o].[OrderDate]) = 68"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_from_method_call_introduces_explicit_cast() : - AssertSql( - @"SELECT CLng(IIf(IsNull(ABS([o].[OrderID])),0,ABS([o].[OrderID]))) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many_or2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN ('London', 'Berlin')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_from_length_introduces_explicit_cast() : - AssertSql( - @"SELECT CLng(IIf(IsNull(CInt(IIf(IsNull(Len([o].[CustomerID])),0,Len([o].[CustomerID])))),0,CInt(IIf(IsNull(Len([o].[CustomerID])),0,Len([o].[CustomerID]))))) -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_second_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('s', [o].[OrderDate]) = 44"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_simple_subquery() : - AssertSql( - @"@__p_0='9' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t] -, [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_indexer_closure() : - AssertSql( - @"@__p_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Compare_two_collection_navigations_with_different_query_sources() : - AssertSql( - @"SELECT [c1].[CustomerID] AS [Id1], [c2].[CustomerID] AS [Id2] -FROM [Customers] AS [c1] -, [Customers] AS [c2] -WHERE (([c1].[CustomerID] = 'ALFKI') AND ([c2].[CustomerID] = 'ALFKI')) AND ([c1].[CustomerID] = [c2].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_different_outer_elements_with_same_key_projected_from_another_entity() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM (([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -LEFT JOIN [Customers] AS [c] ON [od#Order].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Not_Exists() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE False = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Contains_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr(1, [c].[ContactName], [c].[ContactName], 0) > 0) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_new_instance_field_access_closure_via_query_cache() : - AssertSql( - @"@__InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0", - // - @"@__InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_orderBy_take_count() : - AssertSql( - @"@__p_0='7' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[Country] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_int_to_string() : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderID]), NULL, CStr([o].[OrderID])) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_subquery_involving_join_binds_to_correct_table() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] > 11000) AND [o].[OrderID] IN ( - SELECT [od].[OrderID] - FROM ([Order Details] AS [od] - INNER JOIN [Products] AS [od#Product] ON [od].[ProductID] = [od#Product].[ProductID]) - WHERE [od#Product].[ProductName] = 'Chai' -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Projection_in_a_subquery_should_be_liftable() : - AssertSql( - @"@__p_0='1' - -SELECT [e].[EmployeeID] -FROM [Employees] AS [e] -ORDER BY [e].[EmployeeID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_division_on_decimal_no_significant_digits() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull([od].[Quantity] / 2.0),0,[od].[Quantity] / 2.0))) -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_today() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_Customers_Orders_Orders_Skip_Take_Same_Properties() : - AssertSql( - @"@__p_1='5' -@__p_0='10' - -SELECT TOP @__p_1+@__p_0 [o].[OrderID], [ca].[CustomerID] AS [CustomerIDA], [cb].[CustomerID] AS [CustomerIDB], [ca].[ContactName] AS [ContactNameA], [cb].[ContactName] AS [ContactNameB] -FROM (([Orders] AS [o] -INNER JOIN [Customers] AS [ca] ON [o].[CustomerID] = [ca].[CustomerID]) -INNER JOIN [Customers] AS [cb] ON [o].[CustomerID] = [cb].[CustomerID]) -ORDER BY [o].[OrderID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_acos() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND ((1.5707963267948966 + Atn(-[od].[Discount] / Sqr(-[od].[Discount] * [od].[Discount] + 1))) > 1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_simple2() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e2].[FirstName] AS [FirstName0] -FROM [Employees] AS [e1] -, [Customers] AS [c] -, [Employees] AS [e2]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title] -FROM [Employees] AS [e1] -WHERE [e1].[FirstName] = ( - SELECT TOP 1 [e].[FirstName] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many_or4() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN ('London', 'Berlin', 'Seattle', 'Lisboa')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_on_float_column_in_subquery_with_cast() : - AssertSql( - @"SELECT [o].[OrderID], ( - SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od].[Discount]),0,[od].[Discount])))),0,AVG(CSng(IIf(IsNull([od].[Discount]),0,[od].[Discount]))))) - FROM [Order Details] AS [od] - WHERE [o].[OrderID] = [od].[OrderID] -) AS [Sum] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10300"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM [Customers] AS [c] -, [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_distinct_average() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([t].[OrderID]),0,[t].[OrderID]))) -FROM ( - SELECT DISTINCT [o].[OrderID] - FROM [Orders] AS [o] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_DTO_with_member_init_distinct_in_subquery_translated_to_server() : - AssertSql( - @"SELECT [t].[Id], [t].[Count], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ( - SELECT DISTINCT [o].[CustomerID] AS [Id], [o].[OrderID] AS [Count] - FROM [Orders] AS [o] - WHERE [o].[OrderID] < 10300 -) AS [t] -, [Customers] AS [c] -WHERE [c].[CustomerID] = [t].[Id]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Environment_newline_is_funcletized() : line_is_funcletized() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\Query\SimpleQueryJetTest.cs:riga 2703 - AssertSql( - @"@__NewLine_0=' -' (Nullable = false) (Size = 2) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr(1, [c].[CustomerID], @__NewLine_0, 0) > 0) OR (@__NewLine_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Anonymous_complex_orderby() : - AssertSql( - @"SELECT [c].[CustomerID] + [c].[City] AS [A] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] + [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_short_member_comparison() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[UnitsInStock] > 10"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Sum_with_coalesce() : - AssertSql( - @"SELECT SUM(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Any_simple() : - AssertSql( - @"SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c]), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_multi_level6() : - AssertSql( - @"SELECT IIf(IsNull(( - SELECT TOP 1 ( - SELECT TOP 1 [od].[ProductID] - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] <> CInt(IIf(IsNull(Len([c].[CustomerID])),0,Len([c].[CustomerID])))) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -)), 0, ( - SELECT TOP 1 ( - SELECT TOP 1 [od].[ProductID] - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] <> CInt(IIf(IsNull(Len([c].[CustomerID])),0,Len([c].[CustomerID])))) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -)) AS [Order] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_entity_deep() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title], [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title], [e3].[EmployeeID], [e3].[City], [e3].[Country], [e3].[FirstName], [e3].[ReportsTo], [e3].[Title], [e4].[EmployeeID], [e4].[City], [e4].[Country], [e4].[FirstName], [e4].[ReportsTo], [e4].[Title] -FROM [Employees] AS [e1] -, [Employees] AS [e2] -, [Employees] AS [e3] -, [Employees] AS [e4]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_day_component() : - AssertSql( - @"SELECT DatePart('d', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToString() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) <> '10')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_SelectMany_subquery_with_filter_orderby_and_DefaultIfEmpty() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_Distinct_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT DISTINCT [t].* - FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - ) AS [t] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_multi_level() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_All() : - AssertSql( - @"SELECT IIf( - NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] <> 'ALFKI') OR [o].[CustomerID] IS NULL), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bitwise_and() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (IIf( - [c].[CustomerID] = 'ALFKI', - True, - False -) BAND IIf( - [c].[CustomerID] = 'ANATR', - True, - False -)) = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_hour_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('h', [o].[OrderDate]) = 14"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_shadow() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToInt16() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_via_query_cache_nullable_type_reverse() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Filter_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE IIf(IsNull([c].[CompanyName]), [c].[ContactName], [c].[CompanyName]) = 'The Big Cheese'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_not_in_optimization4() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] NOT IN ('London', 'Berlin', 'Seattle', 'Lisboa')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Last() : - AssertSql( - @"SELECT TOP 1 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToDecimal() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0.0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_All() : - AssertSql( - @"@__p_0='4' - -SELECT IIf( - NOT EXISTS ( - SELECT 1 - FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] - ) AS [t] - WHERE NOT ([t].[CustomerID] LIKE 'A' + '%')), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_closure_via_query_cache() : - AssertSql( - @"@__customerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] = @__customerID_0) AND ([o].[CustomerID] = [c].[CustomerID]))", - // - @"@__customerID_0='ANATR' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] = @__customerID_0) AND ([o].[CustomerID] = [c].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_projection() : - AssertSql( - @"SELECT [c].[ContactName], [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_projection2() : - AssertSql( - @"SELECT [e1].[City], [e2].[Country], [e3].[FirstName] -FROM [Employees] AS [e1] -, [Employees] AS [e2] -, [Employees] AS [e3]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Let_any_subquery_anonymous() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Orders] AS [o0] - WHERE [o0].[CustomerID] = @_outer_CustomerID), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Orders] AS [o0] - WHERE [o0].[CustomerID] = @_outer_CustomerID), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Orders] AS [o0] - WHERE [o0].[CustomerID] = @_outer_CustomerID), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Orders] AS [o0] - WHERE [o0].[CustomerID] = @_outer_CustomerID), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_multi_level4() : - AssertSql( - @"SELECT IIf(IsNull(( - SELECT TOP 1 ( - SELECT COUNT(*) - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] > 10) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -)), 0, ( - SELECT TOP 1 ( - SELECT COUNT(*) - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] > 10) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -)) AS [Order] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_Skip() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[ContactName] -) AS [t] -ORDER BY [t].[ContactName] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Multiple_joins_Where_Order_Any() : - AssertSql( - @"SELECT IIf( - EXISTS ( - SELECT 1 - FROM (([Customers] AS [c] - INNER JOIN [Orders] AS [or] ON [c].[CustomerID] = [or].[CustomerID]) - INNER JOIN [Order Details] AS [od] ON [or].[OrderID] = [od].[OrderID]) - WHERE [c].[City] = 'London'), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_null_coalesce_operator() : - AssertSql( - @"@__p_0='5' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[CompanyName], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [Region] -FROM [Customers] AS [c] -ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_ThenBy_Any() : - AssertSql( - @"SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Customers] AS [c]), - True, - False -) -FROM (SELECT COUNT(*) FROM MSysAccessStorage)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_in_optimization_multiple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE ([c].[City] IN ('London', 'Berlin') OR ([c].[CustomerID] = 'ALFKI')) OR ([c].[CustomerID] = 'ABCDE')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_orderby_select_many() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_constant_is_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_SelectMany_subquery_with_filter_orderby() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_same_collection_multiple() : - AssertSql( - @"SELECT [c3].[CustomerID], [c3].[Address], [c3].[City], [c3].[CompanyName], [c3].[ContactName], [c3].[ContactTitle], [c3].[Country], [c3].[Fax], [c3].[Phone], [c3].[PostalCode], [c3].[Region] -FROM (([Customers] AS [o] -INNER JOIN [Customers] AS [c2] ON [o].[CustomerID] = [c2].[CustomerID]) -INNER JOIN [Customers] AS [c3] ON [o].[CustomerID] = [c3].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_log() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE (([od].[OrderID] = 11077) AND ([od].[Discount] > 0)) AND (LOG([od].[Discount]) < 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.DTO_complex_orderby() : - AssertSql( - @"SELECT [c].[CustomerID] + [c].[City] AS [Property] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] + [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Skip_no_orderby() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a' - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_parameter() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_concat_string_int_comparison3() : - AssertSql( - @"@__i_0='10' -@__j_1='21' - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE ((((@__i_0 + 20&"""") + [c].[CustomerID]) + (@__j_1&"""")) + (42&"""")) = [c].[CompanyName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple_ordering() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_with_single() : - AssertSql( - @"@__p_0='1' - -SELECT TOP 2 [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_correlated_subquery_projection() : - AssertSql( - @"@__p_0='3' - -SELECT TOP @__p_0 [cc].[CustomerID] -FROM [Customers] AS [cc] -ORDER BY [cc].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.IsNullOrEmpty_in_projection() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id], IIf( - [c].[Region] IS NULL OR ([c].[Region] = ''), - True, - False -) AS [Value] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Compare_two_collection_navigations_with_different_property_chains() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id1], [o].[OrderID] AS [Id2] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE ([c].[CustomerID] = 'ALFKI') AND ([c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID], [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_non_matching_value_types_from_anonymous_type_introduces_explicit_cast() : - AssertSql( - @"SELECT CLng(IIf(IsNull([o].[OrderID]),0,[o].[OrderID])) AS [LongOrder], CInt(IIf(IsNull([o].[OrderID]),0,[o].[OrderID])) AS [ShortOrder], [o].[OrderID] AS [Order] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_orderBy_take_long_count() : - AssertSql( - @"@__p_0='7' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[Country] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_long_count() : - AssertSql( - @"@__p_0='7' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_tuple_item_closure() : - AssertSql( - @"@__predicateTuple_Item2_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__predicateTuple_Item2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='BSBEV' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='CONSH' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='EASTC' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='NORTS' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='SEVES' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_equals_constant() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_entities_using_Equals() : - AssertSql( - @"SELECT [c1].[CustomerID] AS [Id1], [c2].[CustomerID] AS [Id2] -FROM [Customers] AS [c1] -, [Customers] AS [c2] -WHERE [c1].[CustomerID] LIKE 'ALFKI' + '%' AND ([c1].[CustomerID] = [c2].[CustomerID]) -ORDER BY [c1].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Union_with_custom_projection() : - AssertSql( - @"SELECT [c1].[CustomerID], [c1].[Address], [c1].[City], [c1].[CompanyName], [c1].[ContactName], [c1].[ContactTitle], [c1].[Country], [c1].[Fax], [c1].[Phone], [c1].[PostalCode], [c1].[Region] -FROM [Customers] AS [c1] -WHERE [c1].[CompanyName] LIKE 'A' + '%'", - // - @"SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE [c2].[CompanyName] LIKE 'B' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_different_outer_elements_with_same_key_with_predicate() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID]) -WHERE [o].[OrderID] > 11500"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_customers_orders_count() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_log_new_base() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE (([od].[OrderID] = 11077) AND ([od].[Discount] > 0)) AND ((Log([od].[Discount]) / Log(7)) < 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_correlated_subquery_filtered() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0", - // - @"@__city_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Exists_Constant() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE False = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_Where_Distinct_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT DISTINCT [t].* - FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - WHERE [o].[CustomerID] = 'FRANK' - ) AS [t] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_to_fixed_string_parameter() : - AssertSql( - @"@__prefix_0='A' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE @__prefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_true() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_sqrt() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Sqr([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_with_subquery_predicate_with_take() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[ContactName], [t].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT TOP @__p_0 [o2].* - FROM [Orders] AS [o2] - WHERE [o2].[OrderID] > 0 - ORDER BY [o2].[OrderID] -) AS [t] ON [c].[CustomerID] = [t].[CustomerID]) -WHERE [t].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Queryable_simple_anonymous_projection_subquery() : - AssertSql( - @"@__p_0='91' - -SELECT TOP @__p_0 [c].[City] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_Distinct() : - AssertSql( - @"@__p_0='5' - -SELECT DISTINCT [t].* -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_de_morgan_or_optimizated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) AND ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_sum() : - AssertSql( - @"@__p_0='10' - -SELECT SUM([t].[OrderID]) -FROM ( - SELECT TOP @__p_0 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Local_array() : - AssertSql( - @"@__get_Item_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + [c].[ContactName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_navigation_contains() : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]", - // - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_binary_expression() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID] * 2),0,[o].[OrderID] * 2))) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_indexof() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_join_orderby_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM (([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -INNER JOIN [Order Details] AS [od] ON [o].[OrderID] = [od].[OrderID]) -WHERE [c].[CustomerID] <> 'ALFKI' -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_truncate() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE Int([od].[UnitPrice]) > 10.0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE [c].[ContactName] + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_anonymous_constant_in_expression() : - AssertSql( - @"SELECT [c].[CustomerID], CInt(IIf(IsNull(Len([c].[CustomerID])),0,Len([c].[CustomerID]))) + 5 AS [Expression] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_skip_take() : - AssertSql( - @"@__p_1='8' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactTitle], [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0", - // - @"@__city_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_navigations_using_Equals() : - AssertSql( - @"SELECT [o1].[OrderID] AS [Id1], [o2].[OrderID] AS [Id2] -FROM [Orders] AS [o1] -, [Orders] AS [o2] -WHERE [o1].[CustomerID] LIKE 'A' + '%' AND (([o1].[CustomerID] = [o2].[CustomerID]) OR ([o1].[CustomerID] IS NULL AND [o2].[CustomerID] IS NULL)) -ORDER BY [o1].[OrderID], [o2].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_cartesian_product_with_ordering() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[City] AS [City0] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE ([c].[City] = [e].[City]) OR ([c].[City] IS NULL AND [e].[City] IS NULL) -ORDER BY [e].[City], [c].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_ternary_boolean_condition_with_another_condition() : - AssertSql( - @"@__productId_0='15' -@__flag_1='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[ProductID] < @__productId_0) AND (((@__flag_1 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_1 <> True) AND ([p].[UnitsInStock] < 20)))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_constant() : - AssertSql( - @"SELECT Mid([c].[ContactName], 2, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_second_component() : - AssertSql( - @"SELECT DatePart('s', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_MethodCall() : - AssertSql( - @"@__LocalMethod2_0='m' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + @__LocalMethod2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_substring() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Mid([c].[City], 2, 2) = 'ea'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_entity_equality_no_elements_SingleOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = 42", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = 42", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = 42"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Query_expression_with_to_string_and_contains() : - AssertSql( - @"SELECT [o].[CustomerID] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL AND (Instr(1, IIf(IsNull([o].[EmployeeID]), NULL, CStr([o].[EmployeeID])), '10', 0) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_LongCount() : - AssertSql( - @"SELECT COUNT(*) -FROM [Customers] AS [c] -, [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_SelectMany_subquery_with_filter_and_DefaultIfEmpty() : - AssertSql( - @"SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate], [c].[ContactName] -FROM ([Customers] AS [c] -LEFT JOIN ( - SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - WHERE [o].[OrderID] > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_complex_negated_expression_optimized() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[Discontinued] = False) AND ([p].[ProductID] < 60)) AND ([p].[ProductID] > 30)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Skip_Take() : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.TrimStart_without_arguments_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE LTrim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_replace() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Replace([c].[City], 'Sea', 'Rea') = 'Reattle'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_concat_with_navigation1() : - AssertSql( - @"SELECT ([o].[CustomerID] + ' ') + [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_OrderBy_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Streaming_chained_sync_query() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"SELECT [y#Customer].[CustomerID], [y#Customer].[Address], [y#Customer].[City], [y#Customer].[CompanyName], [y#Customer].[ContactName], [y#Customer].[ContactTitle], [y#Customer].[Country], [y#Customer].[Fax], [y#Customer].[Phone], [y#Customer].[PostalCode], [y#Customer].[Region] -FROM [Customers] AS [y#Customer]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_dictionary_key_access_closure() : - AssertSql( - @"@__get_Item_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_Subquery_Single() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [od].[OrderID] -FROM [Order Details] AS [od] -ORDER BY [od].[ProductID], [od].[OrderID]", - // - @"@_outer_OrderID='10285' - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_OrderID = [o].[OrderID] -ORDER BY [o].[OrderID]", - // - @"@_outer_OrderID='10294' - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_OrderID = [o].[OrderID] -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_to_upper() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE UCase([c].[CustomerID]) = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_long_to_string() : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderID]), NULL, CStr([o].[OrderID])) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_ternary_boolean_condition_false() : - AssertSql( - @"@__flag_0='False' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ((@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)) OR ((@__flag_0 <> True) AND ([p].[UnitsInStock] < 20))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_with_subquery_anonymous_property_method_with_take() : - AssertSql( - @"@__p_0='5' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT TOP @__p_0 [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] - FROM [Orders] AS [o2] - ORDER BY [o2].[OrderID] -) AS [t]", - // - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_other_to_string() : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderDate]), NULL, CStr([o].[OrderDate])) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many_or_with_parameter() : - AssertSql( - @"@__london_0='London' (Nullable = false) (Size = 6) -@__lisboa_1='Lisboa' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN (@__london_0, 'Berlin', 'Seattle', @__lisboa_1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition4() : - AssertSql( - @"@__p_0='2' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t]", - // - @"SELECT 1 -FROM [Customers] AS [c0] -ORDER BY [c0].[CustomerID]", - // - @"SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2]", - // - @"SELECT 1 -FROM [Customers] AS [c0] -ORDER BY [c0].[CustomerID]", - // - @"SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_navigations_using_static_Equals() : - AssertSql( - @"SELECT [o1].[OrderID] AS [Id1], [o2].[OrderID] AS [Id2] -FROM [Orders] AS [o1] -, [Orders] AS [o2] -WHERE [o1].[CustomerID] LIKE 'A' + '%' AND (([o1].[CustomerID] = [o2].[CustomerID]) OR ([o1].[CustomerID] IS NULL AND [o2].[CustomerID] IS NULL)) -ORDER BY [o1].[OrderID], [o2].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_non_matching_entities_using_Equals() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id1], [o].[OrderID] AS [Id2] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_cos() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (COS([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_hour_component() : - AssertSql( - @"SELECT DatePart('h', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_entities() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_nested_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0", - // - @"@__city_Nested_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_comparison_to_nullable_bool() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE '%' + 'KI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_orderby_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] <> 'ALFKI' -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Compare_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_with_single_select_many() : - AssertSql( - @"@__p_0='1' - -SELECT TOP 2 [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID] AS [CustomerID0], [o].[EmployeeID], [o].[OrderDate] - FROM [Customers] AS [c] - , [Orders] AS [o] - ORDER BY [c].[CustomerID], [o].[OrderID] -) AS [t] -ORDER BY [t].[CustomerID], [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Let_entity_equality_to_null() : - AssertSql( - @"SELECT [c].[CustomerID], ( - SELECT TOP 1 [e0].[OrderDate] - FROM [Orders] AS [e0] - WHERE [c].[CustomerID] = [e0].[CustomerID] - ORDER BY [e0].[OrderDate] -) AS [OrderDate] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_sign() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Sgn([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_parameter() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE @__prm_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Projection_when_arithmetic_mixed_subqueries() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]", - // - @"SELECT TOP 2 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 2 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 2 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Lifting_when_subquery_nested_order_by_simple() : - AssertSql( - @"@__p_0='2' - -SELECT [t0].[CustomerID] -FROM ( - SELECT DISTINCT [t].[CustomerID] - FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] - ) AS [t] - , [Customers] AS [c2] -) AS [t0]", - // - @"SELECT [c1_Orders].[OrderID], [c1_Orders].[CustomerID], [c1_Orders].[EmployeeID], [c1_Orders].[OrderDate] -FROM [Orders] AS [c1_Orders]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_distinct_long_count() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].* - FROM [Customers] AS [c] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_minute_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('n', [o].[OrderDate]) = 23"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_Where_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_entity_to_null_using_Equals() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND [c].[CustomerID] IS NOT NULL -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_min() : - AssertSql( - @"@__p_0='10' - -SELECT MIN([t].[OrderID]) -FROM ( - SELECT TOP @__p_0 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToDouble() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Compare_two_collection_navigations_with_different_property_chains() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id1], [o].[OrderID] AS [Id2] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE ([c].[CustomerID] = 'ALFKI') AND ([c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID], [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToInt64() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CLng(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_month_component() : - AssertSql( - @"SELECT DatePart('m', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Parameter_extraction_short_circuits_1() : - AssertSql( - @"@__dateFilter_Value_Month_0='7' -@__dateFilter_Value_Year_1='1996' - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10400) AND (([o].[OrderDate] IS NOT NULL AND (DatePart('m', [o].[OrderDate]) = @__dateFilter_Value_Month_0)) AND (DatePart('yyyy', [o].[OrderDate]) = @__dateFilter_Value_Year_1))", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10400"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_different_outer_elements_with_same_key() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_scalar_primitive_after_take() : - AssertSql( - @"@__p_0='9' - -SELECT TOP @__p_0 [e].[EmployeeID] -FROM [Employees] AS [e]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple3() : - AssertSql( - @"SELECT [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_multiple_contains_in_subquery_with_and() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[ProductID] IN ( - SELECT TOP 20 [p].[ProductID] - FROM [Products] AS [p] - ORDER BY [p].[ProductID] -) AND [od].[OrderID] IN ( - SELECT TOP 10 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_ternary_boolean_condition_with_false_as_result_false() : - AssertSql( - @"@__flag_0='False' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (@__flag_0 = True) AND ([p].[UnitsInStock] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Sum_on_float_column() : - AssertSql( - @"SELECT CSng(IIf(IsNull(SUM([od].[Discount])),0,SUM([od].[Discount]))) -FROM [Order Details] AS [od] -WHERE [od].[ProductID] = 1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_average() : - AssertSql( - @"@__p_0='10' - -SELECT AVG(CDbl(IIf(IsNull([t].[OrderID]),0,[t].[OrderID]))) -FROM ( - SELECT TOP @__p_0 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_static_field_access_closure_via_query_cache() : - AssertSql( - @"@__StaticFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0", - // - @"@__StaticFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_null_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[CompanyName], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [Region] -FROM [Customers] AS [c] -ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_is_not_null() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_orderBy_take_long_count() : - AssertSql( - @"@__p_0='7' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[Country] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_long_count() : - AssertSql( - @"@__p_0='7' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_tuple_item_closure() : - AssertSql( - @"@__predicateTuple_Item2_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__predicateTuple_Item2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[City] = 'London' -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='BSBEV' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='CONSH' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='EASTC' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='NORTS' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='SEVES' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = @_outer_CustomerID) AND (DatePart('yyyy', [o].[OrderDate]) = 1997) -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_equals_constant() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_entities_using_Equals() : - AssertSql( - @"SELECT [c1].[CustomerID] AS [Id1], [c2].[CustomerID] AS [Id2] -FROM [Customers] AS [c1] -, [Customers] AS [c2] -WHERE [c1].[CustomerID] LIKE 'ALFKI' + '%' AND ([c1].[CustomerID] = [c2].[CustomerID]) -ORDER BY [c1].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Union_with_custom_projection() : - AssertSql( - @"SELECT [c1].[CustomerID], [c1].[Address], [c1].[City], [c1].[CompanyName], [c1].[ContactName], [c1].[ContactTitle], [c1].[Country], [c1].[Fax], [c1].[Phone], [c1].[PostalCode], [c1].[Region] -FROM [Customers] AS [c1] -WHERE [c1].[CompanyName] LIKE 'A' + '%'", - // - @"SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE [c2].[CompanyName] LIKE 'B' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_different_outer_elements_with_same_key_with_predicate() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID]) -WHERE [o].[OrderID] > 11500"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_customers_orders_count() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_correlated_subquery_filtered() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0", - // - @"@__city_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Exists_Constant() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE False = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_Where_Distinct_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT DISTINCT [t].* - FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - WHERE [o].[CustomerID] = 'FRANK' - ) AS [t] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_to_fixed_string_parameter() : - AssertSql( - @"@__prefix_0='A' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE @__prefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_true() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_sqrt() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Sqr([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_with_subquery_predicate_with_take() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[ContactName], [t].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT TOP @__p_0 [o2].* - FROM [Orders] AS [o2] - WHERE [o2].[OrderID] > 0 - ORDER BY [o2].[OrderID] -) AS [t] ON [c].[CustomerID] = [t].[CustomerID]) -WHERE [t].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Queryable_simple_anonymous_projection_subquery() : - AssertSql( - @"@__p_0='91' - -SELECT TOP @__p_0 [c].[City] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_Distinct() : - AssertSql( - @"@__p_0='5' - -SELECT DISTINCT [t].* -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_de_morgan_or_optimizated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) AND ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_sum() : - AssertSql( - @"@__p_0='10' - -SELECT SUM([t].[OrderID]) -FROM ( - SELECT TOP @__p_0 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Local_array() : - AssertSql( - @"@__get_Item_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + [c].[ContactName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_navigation_contains() : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]", - // - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_indexof() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_join_orderby_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM (([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -INNER JOIN [Order Details] AS [od] ON [o].[OrderID] = [od].[OrderID]) -WHERE [c].[CustomerID] <> 'ALFKI' -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_truncate() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE Int([od].[UnitPrice]) > 10.0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE [c].[ContactName] + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_skip_take() : - AssertSql( - @"@__p_1='8' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactTitle], [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0", - // - @"@__city_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_navigations_using_Equals() : - AssertSql( - @"SELECT [o1].[OrderID] AS [Id1], [o2].[OrderID] AS [Id2] -FROM [Orders] AS [o1] -, [Orders] AS [o2] -WHERE [o1].[CustomerID] LIKE 'A' + '%' AND (([o1].[CustomerID] = [o2].[CustomerID]) OR ([o1].[CustomerID] IS NULL AND [o2].[CustomerID] IS NULL)) -ORDER BY [o1].[OrderID], [o2].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_cartesian_product_with_ordering() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[City] AS [City0] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE ([c].[City] = [e].[City]) OR ([c].[City] IS NULL AND [e].[City] IS NULL) -ORDER BY [e].[City], [c].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_constant() : - AssertSql( - @"SELECT Mid([c].[ContactName], 2, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_second_component() : - AssertSql( - @"SELECT DatePart('s', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_MethodCall() : - AssertSql( - @"@__LocalMethod2_0='m' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + @__LocalMethod2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_substring() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Mid([c].[City], 2, 2) = 'ea'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_entity_equality_no_elements_SingleOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = 42", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = 42", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = 42"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Query_expression_with_to_string_and_contains() : - AssertSql( - @"SELECT [o].[CustomerID] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL AND (Instr(1, IIf(IsNull([o].[EmployeeID]), NULL, CStr([o].[EmployeeID])), '10', 0) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_LongCount() : - AssertSql( - @"SELECT COUNT(*) -FROM [Customers] AS [c] -, [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_SelectMany_subquery_with_filter_and_DefaultIfEmpty() : - AssertSql( - @"SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate], [c].[ContactName] -FROM ([Customers] AS [c] -LEFT JOIN ( - SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - WHERE [o].[OrderID] > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_complex_negated_expression_optimized() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[Discontinued] = False) AND ([p].[ProductID] < 60)) AND ([p].[ProductID] > 30)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Skip_Take() : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.TrimStart_without_arguments_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE LTrim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_replace() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Replace([c].[City], 'Sea', 'Rea') = 'Reattle'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_concat_with_navigation1() : - AssertSql( - @"SELECT ([o].[CustomerID] + ' ') + [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_OrderBy_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Streaming_chained_sync_query() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"SELECT [y#Customer].[CustomerID], [y#Customer].[Address], [y#Customer].[City], [y#Customer].[CompanyName], [y#Customer].[ContactName], [y#Customer].[ContactTitle], [y#Customer].[Country], [y#Customer].[Fax], [y#Customer].[Phone], [y#Customer].[PostalCode], [y#Customer].[Region] -FROM [Customers] AS [y#Customer]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_dictionary_key_access_closure() : - AssertSql( - @"@__get_Item_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_Subquery_Single() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [od].[OrderID] -FROM [Order Details] AS [od] -ORDER BY [od].[ProductID], [od].[OrderID]", - // - @"@_outer_OrderID='10285' - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_OrderID = [o].[OrderID] -ORDER BY [o].[OrderID]", - // - @"@_outer_OrderID='10294' - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_OrderID = [o].[OrderID] -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_to_upper() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE UCase([c].[CustomerID]) = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_long_to_string() : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderID]), NULL, CStr([o].[OrderID])) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_with_subquery_anonymous_property_method_with_take() : - AssertSql( - @"@__p_0='5' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT TOP @__p_0 [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] - FROM [Orders] AS [o2] - ORDER BY [o2].[OrderID] -) AS [t]", - // - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_other_to_string() : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderDate]), NULL, CStr([o].[OrderDate])) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many_or_with_parameter() : - AssertSql( - @"@__london_0='London' (Nullable = false) (Size = 6) -@__lisboa_1='Lisboa' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN (@__london_0, 'Berlin', 'Seattle', @__lisboa_1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition4() : - AssertSql( - @"@__p_0='2' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t]", - // - @"SELECT 1 -FROM [Customers] AS [c0] -ORDER BY [c0].[CustomerID]", - // - @"SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2]", - // - @"SELECT 1 -FROM [Customers] AS [c0] -ORDER BY [c0].[CustomerID]", - // - @"SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_navigations_using_static_Equals() : - AssertSql( - @"SELECT [o1].[OrderID] AS [Id1], [o2].[OrderID] AS [Id2] -FROM [Orders] AS [o1] -, [Orders] AS [o2] -WHERE [o1].[CustomerID] LIKE 'A' + '%' AND (([o1].[CustomerID] = [o2].[CustomerID]) OR ([o1].[CustomerID] IS NULL AND [o2].[CustomerID] IS NULL)) -ORDER BY [o1].[OrderID], [o2].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_non_matching_entities_using_Equals() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id1], [o].[OrderID] AS [Id2] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_cos() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (COS([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_hour_component() : - AssertSql( - @"SELECT DatePart('h', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_entities() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_nested_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0", - // - @"@__city_Nested_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_comparison_to_nullable_bool() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE '%' + 'KI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_orderby_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] <> 'ALFKI' -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Compare_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_with_single_select_many() : - AssertSql( - @"@__p_0='1' - -SELECT TOP 2 [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID] AS [CustomerID0], [o].[EmployeeID], [o].[OrderDate] - FROM [Customers] AS [c] - , [Orders] AS [o] - ORDER BY [c].[CustomerID], [o].[OrderID] -) AS [t] -ORDER BY [t].[CustomerID], [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Let_entity_equality_to_null() : - AssertSql( - @"SELECT [c].[CustomerID], ( - SELECT TOP 1 [e0].[OrderDate] - FROM [Orders] AS [e0] - WHERE [c].[CustomerID] = [e0].[CustomerID] - ORDER BY [e0].[OrderDate] -) AS [OrderDate] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_sign() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Sgn([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_parameter() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE @__prm_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Projection_when_arithmetic_mixed_subqueries() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]", - // - @"SELECT TOP 2 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 2 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 2 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Lifting_when_subquery_nested_order_by_simple() : - AssertSql( - @"@__p_0='2' - -SELECT [t0].[CustomerID] -FROM ( - SELECT DISTINCT [t].[CustomerID] - FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] - ) AS [t] - , [Customers] AS [c2] -) AS [t0]", - // - @"SELECT [c1_Orders].[OrderID], [c1_Orders].[CustomerID], [c1_Orders].[EmployeeID], [c1_Orders].[OrderDate] -FROM [Orders] AS [c1_Orders]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_distinct_long_count() : - AssertSql( - @"SELECT COUNT(*) -FROM ( - SELECT DISTINCT [c].* - FROM [Customers] AS [c] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_minute_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('n', [o].[OrderDate]) = 23"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_Where_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_entity_to_null_using_Equals() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND [c].[CustomerID] IS NOT NULL -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_min() : - AssertSql( - @"@__p_0='10' - -SELECT MIN([t].[OrderID]) -FROM ( - SELECT TOP @__p_0 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToDouble() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Compare_two_collection_navigations_with_different_property_chains() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id1], [o].[OrderID] AS [Id2] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE ([c].[CustomerID] = 'ALFKI') AND ([c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID], [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_month_component() : - AssertSql( - @"SELECT DatePart('m', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Parameter_extraction_short_circuits_1() : - AssertSql( - @"@__dateFilter_Value_Month_0='7' -@__dateFilter_Value_Year_1='1996' - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10400) AND (([o].[OrderDate] IS NOT NULL AND (DatePart('m', [o].[OrderDate]) = @__dateFilter_Value_Month_0)) AND (DatePart('yyyy', [o].[OrderDate]) = @__dateFilter_Value_Year_1))", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10400"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_different_outer_elements_with_same_key() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_scalar_primitive_after_take() : - AssertSql( - @"@__p_0='9' - -SELECT TOP @__p_0 [e].[EmployeeID] -FROM [Employees] AS [e]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple3() : - AssertSql( - @"SELECT [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_multiple_contains_in_subquery_with_and() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[ProductID] IN ( - SELECT TOP 20 [p].[ProductID] - FROM [Products] AS [p] - ORDER BY [p].[ProductID] -) AND [od].[OrderID] IN ( - SELECT TOP 10 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_static_field_access_closure_via_query_cache() : - AssertSql( - @"@__StaticFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0", - // - @"@__StaticFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_null_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[CompanyName], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [Region] -FROM [Customers] AS [c] -ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_is_not_null() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_non_matching_collection_navigations_using_Equals() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id1], [o].[OrderID] AS [Id2] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Static_equals_int_compared_to_long() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_division_on_decimal() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull([od].[Quantity] / 2.09),0,[od].[Quantity] / 2.09))) -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + [c].[ContactName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_array_index() : - AssertSql( - @"@__p_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_Customers_Orders_Projection_With_String_Concat_Skip_Take() : - AssertSql( - @"@__p_1='5' -@__p_0='10' - -SELECT TOP @__p_1+@__p_0 ([c].[ContactName] + ' ') + [c].[ContactTitle] AS [Contact], [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [o].[OrderID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_primitive() : - AssertSql( - @"@__p_0='9' - -SELECT [t].[EmployeeID] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID] - FROM [Employees] AS [e] -) AS [t] -WHERE [t].[EmployeeID] = 5"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_equals_on_mismatched_types_nullable_int_long() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_DateTime_Date() : - AssertSql( - @"SELECT [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE IIf(IsNull([e].[OrderDate]), NULL, DateValue([e].[OrderDate])) IN (#07/04/1996 00:00:00#, #07/16/1996 00:00:00#)", - // - @"SELECT [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE IIf(IsNull([e].[OrderDate]), NULL, DateValue([e].[OrderDate])) IN (#07/04/1996 00:00:00#)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_tracking_groups() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE [c].[ContactName] + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition2_FirstOrDefault_with_anonymous() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetimeoffset_now_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_Dto_projection_skip_take() : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID] AS [Id] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Any() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[OrderDate] = #10/24/2008 00:00:00#) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_customers_orders_count_preserves_ordering() : - AssertSql( - @"@__p_0='5' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM (( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - WHERE [c].[CustomerID] NOT IN ('VAFFE', 'DRACD') - ORDER BY [c].[City] -) AS [t] -LEFT JOIN [Orders] AS [o] ON [t].[CustomerID] = [o].[CustomerID]) -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_day_of_year_component() : - AssertSql( - @"SELECT DatePart('y', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Parameter_extraction_short_circuits_3() : - AssertSql( - @"@__dateFilter_Value_Month_0='7' -@__dateFilter_Value_Year_1='1996' - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10400) OR (([o].[OrderDate] IS NOT NULL AND (DatePart('m', [o].[OrderDate]) = @__dateFilter_Value_Month_0)) AND (DatePart('yyyy', [o].[OrderDate]) = @__dateFilter_Value_Year_1))", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_via_query_cache_nullable_type() : - AssertSql( - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_Where_OrderBy() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE ([o].[CustomerID] = 'ALFKI') OR ([c].[CustomerID] = 'ANATR') -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Projection_null_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[CompanyName], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToByte() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_false() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_client_Take() : - AssertSql( - @"@__p_1='10' - -SELECT TOP @__p_1 [o].[EmployeeID], [o].[City], [o].[Country], [o].[FirstName], [o].[ReportsTo], [o].[Title] -FROM [Employees] AS [o] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Compare_collection_navigation_with_itself() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND ([c].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_subquery_projection() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[City] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_sin() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (SIN([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_MethodCall() : - AssertSql( - @"@__LocalMethod1_0='M' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE @__LocalMethod1_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_method_call_nullable_type_reverse_closure_via_query_cache() : - AssertSql( - @"@__city_NullableInt_0='1' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0", - // - @"@__city_NullableInt_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_Take_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Distinct_Take() : - AssertSql( - @"@__p_0='5' - -SELECT TOP @__p_0 [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT DISTINCT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] -) AS [t] -ORDER BY [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_with_subquery_with_take() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[ContactName], [t].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT TOP @__p_0 [o2].* - FROM [Orders] AS [o2] - ORDER BY [o2].[OrderID] -) AS [t] ON [c].[CustomerID] = [t].[CustomerID]) -WHERE [t].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.No_orderby_added_for_fully_translated_manually_constructed_LOJ() : - AssertSql( - @"SELECT [e1].[City] AS [City1], [e2].[City] AS [City2] -FROM ([Employees] AS [e1] -LEFT JOIN [Employees] AS [e2] ON [e1].[EmployeeID] = [e2].[ReportsTo])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE 'M' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_list_inline_closure_mix() : line_closure_mix() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\Query\SimpleQueryJetTest.ResultOperators.cs:riga 803 - AssertSql( - @"@__id_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', @__id_0)", - // - @"@__id_0='ANATR' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] IN ('ABCDE', @__id_0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_coalesce_take_distinct() : - AssertSql( - @"@__p_0='15' - -SELECT DISTINCT [t].* -FROM ( - SELECT TOP @__p_0 [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] - FROM [Products] AS [p] - ORDER BY IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice]) -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Min_with_coalesce() : - AssertSql( - @"SELECT MIN(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_named_tuple_item_closure() : - AssertSql( - @"@__predicateTuple_Item2_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__predicateTuple_Item2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_simple_parameterized() : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Max_with_coalesce() : - AssertSql( - @"SELECT MAX(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_false() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_skip_null_coalesce_operator() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[CompanyName], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [Region] - FROM [Customers] AS [c] - ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) -) AS [t] -ORDER BY [t].[Region] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_equals_on_matched_nullable_int_types() : - AssertSql( - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE @__nullableIntPrm_0 = [e].[ReportsTo]", - // - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__nullableIntPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.First_inside_subquery_gets_client_evaluated() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE ([o0].[CustomerID] = 'ALFKI') AND (@_outer_CustomerID = [o0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_concat_with_navigation2() : - AssertSql( - @"SELECT ([o#Customer].[City] + ' ') + [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_client_side_negated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_static_property_access_closure_via_query_cache() : - AssertSql( - @"@__StaticPropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0", - // - @"@__StaticPropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_via_query_cache() : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0", - // - @"@__city_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_to_lower() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE LCase([c].[CustomerID]) = 'alfki'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_simple() : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Contains_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr(1, [c].[ContactName], [c].[ContactName], 0) > 0) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_zero_length() : - AssertSql( - @"SELECT Mid([c].[ContactName], 3, 0) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_Where_Subquery_Equality() : - AssertSql( - @"@__p_0='1' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] -) AS [t] -ORDER BY [t].[OrderID]", - // - @"SELECT [t1].[OrderID] -FROM ( - SELECT TOP 2 [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice] - FROM [Order Details] AS [od0] - ORDER BY [od0].[OrderID] -) AS [t1]", - // - @"@_outer_CustomerID2='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 1 [c3].[Country] -FROM [Customers] AS [c3] -WHERE [c3].[CustomerID] = @_outer_CustomerID2 -ORDER BY [c3].[CustomerID]", - // - @"@_outer_OrderID1='10248' - -SELECT TOP 1 [c4].[Country] -FROM ([Orders] AS [o20] -INNER JOIN [Customers] AS [c4] ON [o20].[CustomerID] = [c4].[CustomerID]) -WHERE [o20].[OrderID] = @_outer_OrderID1 -ORDER BY [o20].[OrderID], [c4].[CustomerID]", - // - @"@_outer_CustomerID2='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 1 [c3].[Country] -FROM [Customers] AS [c3] -WHERE [c3].[CustomerID] = @_outer_CustomerID2 -ORDER BY [c3].[CustomerID]", - // - @"@_outer_OrderID1='10248' - -SELECT TOP 1 [c4].[Country] -FROM ([Orders] AS [o20] -INNER JOIN [Customers] AS [c4] ON [o20].[CustomerID] = [c4].[CustomerID]) -WHERE [o20].[OrderID] = @_outer_OrderID1 -ORDER BY [o20].[OrderID], [c4].[CustomerID]", - // - @"@_outer_CustomerID2='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 1 [c3].[Country] -FROM [Customers] AS [c3] -WHERE [c3].[CustomerID] = @_outer_CustomerID2 -ORDER BY [c3].[CustomerID]", - // - @"@_outer_OrderID1='10248' - -SELECT TOP 1 [c4].[Country] -FROM ([Orders] AS [o20] -INNER JOIN [Customers] AS [c4] ON [o20].[CustomerID] = [c4].[CustomerID]) -WHERE [o20].[OrderID] = @_outer_OrderID1 -ORDER BY [o20].[OrderID], [c4].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_closure() : - AssertSql( - @"@__start_0='2' - -SELECT Mid([c].[ContactName], @__start_0 + 1, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_same_collection_force_alias_uniquefication() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM ([Orders] AS [o] -INNER JOIN [Orders] AS [o0] ON [o].[CustomerID] = [o0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_max() : - AssertSql( - @"@__p_0='10' - -SELECT MAX([t].[OrderID]) -FROM ( - SELECT TOP @__p_0 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OfType_Select_OfType_Select() : - AssertSql( - @"SELECT TOP 1 [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_skip_null_coalesce_operator3() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [c] - FROM [Customers] AS [c] - ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) -) AS [t] -ORDER BY [t].[c] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_select() : - AssertSql( - @"SELECT [c].[ContactName], [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty_multiple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o1].[OrderID], [o1].[CustomerID], [o1].[EmployeeID], [o1].[OrderDate], [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM (([Customers] AS [c] -LEFT JOIN [Orders] AS [o1] ON [c].[CustomerID] = [o1].[CustomerID]) -LEFT JOIN [Orders] AS [o2] ON [c].[CustomerID] = [o2].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_chain() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'QUICK') AND ([o].[OrderDate] > #01/01/1998 00:00:00#)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_power() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[Discount]^2 > 0.05000000074505806"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_compare_to_with_parameter() : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_mixed() : - AssertSql( - @"@__p_0='2' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure() : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_zero_startindex() : - AssertSql( - @"SELECT Mid([c].[ContactName], 1, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Projection_when_arithmetic_mixed() : - AssertSql( - @"@__p_0='10' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate], [t0].[EmployeeID], [t0].[City], [t0].[Country], [t0].[FirstName], [t0].[ReportsTo], [t0].[Title] -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] -, ( - SELECT TOP 5 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_nested_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0", - // - @"@__city_Nested_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_collection_empty_closure() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_Take_Last_gives_correct_result() : - AssertSql( - @"@__p_0='20' - -SELECT TOP 1 [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -ORDER BY [t].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty_Project() : - AssertSql( - @"SELECT [o].[OrderID] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition2() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 1 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_count() : - AssertSql( - @"@__p_0='7' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Compare_to_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_take_count_works() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [o].* - FROM ([Orders] AS [o] - INNER JOIN ( - SELECT [c].* - FROM [Customers] AS [c] - WHERE [c].[CustomerID] = 'ALFKI' - ) AS [t] ON [o].[CustomerID] = [t].[CustomerID]) - WHERE ([o].[OrderID] > 690) AND ([o].[OrderID] < 710) -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_date_add_year_constant_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('yyyy', IIf(IsNull([o].[OrderDate]), NULL, DateAdd('yyyy', -1, [o].[OrderDate]))) = 1997"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_in_complex_predicate() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[ProductID] > 100) AND ([p].[Discontinued] = True)) OR ([p].[Discontinued] = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_collection_navigation_to_null_complex() : - AssertSql( - @"SELECT [od].[ProductID], [od].[OrderID] -FROM ([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -WHERE ([od].[OrderID] < 10250) AND [od#Order].[CustomerID] IS NOT NULL -ORDER BY [od].[OrderID], [od].[ProductID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Parameter_extraction_short_circuits_2() : - AssertSql( - @"@__dateFilter_Value_Month_0='7' -@__dateFilter_Value_Year_1='1996' - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10400) AND (([o].[OrderDate] IS NOT NULL AND (DatePart('m', [o].[OrderDate]) = @__dateFilter_Value_Month_0)) AND (DatePart('yyyy', [o].[OrderDate]) = @__dateFilter_Value_Year_1))", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Distinct_Skip_Take() : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT DISTINCT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] -) AS [t] -ORDER BY [t].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Orderby_added_for_client_side_GroupJoin_principal_to_dependent_LOJ() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City] AS [City1], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title], [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM ([Employees] AS [e1] -LEFT JOIN [Employees] AS [e2] ON [e1].[EmployeeID] = [e2].[ReportsTo]) -ORDER BY [e1].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_exp() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (EXP([od].[Discount]) > 1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_guid_newguid() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE NewGuid() <> '00000000-0000-0000-0000-000000000000'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_equals_on_mismatched_types_nullable_long_nullable_int() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_skip_null_coalesce_operator2() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[CompanyName], [c].[Region], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [c] - FROM [Customers] AS [c] - ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) -) AS [t] -ORDER BY [t].[c] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Projection_when_client_evald_subquery() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [t].[CustomerID], [c#Orders].[CustomerID] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Queryable_simple_anonymous_subquery() : - AssertSql( - @"@__p_0='91' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_utcnow() : - AssertSql( - @"@__myDatetime_0='2015-04-10T00:00:00' (DbType = DateTime) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Now() <> @__myDatetime_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_day_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('d', [o].[OrderDate]) = 4"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.QueryType_with_nav_defining_query() : - AssertSql( - @"@__ef_filter___searchTerm_0='A' (Nullable = false) (Size = 1) -@__ef_filter___searchTerm_1='A' (Nullable = false) (Size = 1) - -SELECT [t].[CompanyName], [t].[OrderCount], [t].[SearchTerm] -FROM ( - SELECT [c].[CompanyName], ( - SELECT COUNT(*) - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ) AS [OrderCount], @__ef_filter___searchTerm_0 AS [SearchTerm] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[CompanyName] LIKE @__ef_filter___searchTerm_1 + '%' AND ([t].[OrderCount] > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_integer() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Selected_column_can_coalesce() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_multi_level5() : - AssertSql( - @"SELECT IIf(IsNull(( - SELECT TOP 1 ( - SELECT TOP 1 [od].[ProductID] - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] <> ( - SELECT COUNT(*) - FROM [Orders] AS [o0] - WHERE [c].[CustomerID] = [o0].[CustomerID] - )) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -)), 0, ( - SELECT TOP 1 ( - SELECT TOP 1 [od].[ProductID] - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] <> ( - SELECT COUNT(*) - FROM [Orders] AS [o0] - WHERE [c].[CustomerID] = [o0].[CustomerID] - )) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -)) AS [Order] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Single_Predicate() : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [o].[OrderID] IS NOT NULL AND ([o].[CustomerID] = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_constant() : - AssertSql( - @"@__predicate_0='True' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE @__predicate_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_tan() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (TAN([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_de_morgan_and_optimizated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) OR ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition2_FirstOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t] -WHERE [t].[FirstName] = ( - SELECT TOP 1 [e0].[FirstName] - FROM [Employees] AS [e0] - ORDER BY [e0].[EmployeeID] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_select_many() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -, [Employees] AS [e]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_references_are_updated_correctly_with_subquery() : - AssertSql( - @"@__nextYear_0='2017' - -SELECT [t].[c] -FROM ( - SELECT DISTINCT DatePart('yyyy', [o].[OrderDate]) AS [c] - FROM [Orders] AS [o] - WHERE [o].[OrderDate] IS NOT NULL -) AS [t] -WHERE [t].[c] < @__nextYear_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_OrderBy_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty3() : - AssertSql( - @"@__p_0='1' - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM (( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -LEFT JOIN [Orders] AS [o] ON [t].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Complex_nested_query_doesnt_try_binding_to_grandparent_when_parent_returns_complex_result() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"@_outer_CustomerID1='ALFKI' (Nullable = false) (Size = 5) -@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) -@_outer_CustomerID2='ALFKI' (Nullable = false) (Size = 5) - -SELECT ( - SELECT COUNT(*) - FROM [Orders] AS [o0] - WHERE @_outer_CustomerID1 = [o0].[CustomerID] -) AS [InnerOrder], @_outer_CustomerID2 AS [Id] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Project_single_element_from_collection_with_OrderBy_over_navigation_Take_and_FirstOrDefault_2() : - AssertSql( - @"SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10250", - // - @"@_outer_OrderID='10248' - -SELECT TOP 1 [t].* -FROM ( - SELECT TOP 1 [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice], [od#Product].[ProductName] - FROM ([Order Details] AS [od] - INNER JOIN [Products] AS [od#Product] ON [od].[ProductID] = [od#Product].[ProductID]) - WHERE @_outer_OrderID = [od].[OrderID] - ORDER BY [od#Product].[ProductName] -) AS [t] -ORDER BY [t].[ProductName]", - // - @"@_outer_OrderID='10249' - -SELECT TOP 1 [t].* -FROM ( - SELECT TOP 1 [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice], [od#Product].[ProductName] - FROM ([Order Details] AS [od] - INNER JOIN [Products] AS [od#Product] ON [od].[ProductID] = [od#Product].[ProductID]) - WHERE @_outer_OrderID = [od].[OrderID] - ORDER BY [od#Product].[ProductName] -) AS [t] -ORDER BY [t].[ProductName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_now() : - AssertSql( - @"@__myDatetime_0='2015-04-10T00:00:00' (DbType = DateTime) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Now() <> @__myDatetime_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_SelectMany() : - AssertSql( - @"SELECT [c].[ContactName], [t].[OrderID] -FROM [Customers] AS [c] -, ( - SELECT TOP 3 [o].* - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] -WHERE [c].[CustomerID] = [t].[CustomerID] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple_subquery() : - AssertSql( - @"@__p_0='4' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty2() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Employees] AS [e] -LEFT JOIN [Orders] AS [o] ON [e].[EmployeeID] = [o].[EmployeeID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_correlated_client_eval() : - AssertSql( - @"@__p_0='5' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] -) AS [t] -ORDER BY [t].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID = [c2].[CustomerID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID = [c2].[CustomerID]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID = [c2].[CustomerID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID = [c2].[CustomerID]", - // - @"@_outer_CustomerID='BERGS' (Nullable = false) (Size = 5) - -SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID = [c2].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_equals_using_object_overload_on_mismatched_types() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_simple_projection() : - AssertSql( - @"@__p_0='10' - -SELECT TOP @__p_0 [c].[City] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Replace_with_emptystring() : - AssertSql( - @"SELECT Replace([c].[ContactName], 'ari', '') -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_date_add_year() : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderDate]), NULL, DateAdd('yyyy', 1, [o].[OrderDate])) AS [OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Distinct_Take_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT DISTINCT TOP @__p_0 [o].* - FROM [Orders] AS [o] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_false_shadow() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Skip() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_year_component() : - AssertSql( - @"SELECT DatePart('yyyy', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_order_by_key_descending2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] LIKE 'A' + '%' -ORDER BY [c].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_compare_with_parameter() : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Subquery_member_pushdown_does_not_change_original_subquery_model() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[CustomerID], [t].[OrderID] -FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]", - // - @"@_outer_CustomerID='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c0].[City] -FROM [Customers] AS [c0] -WHERE [c0].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='TOMSP' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c0].[City] -FROM [Customers] AS [c0] -WHERE [c0].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='HANAR' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c0].[City] -FROM [Customers] AS [c0] -WHERE [c0].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID1='TOMSP' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE [c2].[CustomerID] = @_outer_CustomerID1", - // - @"@_outer_CustomerID1='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE [c2].[CustomerID] = @_outer_CustomerID1", - // - @"@_outer_CustomerID1='HANAR' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE [c2].[CustomerID] = @_outer_CustomerID1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Let_entity_equality_to_other_entity() : - AssertSql( - @"SELECT [c].[CustomerID], ( - SELECT TOP 1 [e2].[OrderDate] - FROM [Orders] AS [e2] - WHERE [c].[CustomerID] = [e2].[CustomerID] - ORDER BY [e2].[OrderDate] -) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID1='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e1].[OrderID], [e1].[CustomerID], [e1].[EmployeeID], [e1].[OrderDate] -FROM [Orders] AS [e1] -WHERE @_outer_CustomerID1 = [e1].[CustomerID] -ORDER BY [e1].[OrderDate]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID1='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e1].[OrderID], [e1].[CustomerID], [e1].[EmployeeID], [e1].[OrderDate] -FROM [Orders] AS [e1] -WHERE @_outer_CustomerID1 = [e1].[CustomerID] -ORDER BY [e1].[OrderDate]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID1='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e1].[OrderID], [e1].[CustomerID], [e1].[EmployeeID], [e1].[OrderDate] -FROM [Orders] AS [e1] -WHERE @_outer_CustomerID1 = [e1].[CustomerID] -ORDER BY [e1].[OrderDate]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE @_outer_CustomerID = [e].[CustomerID] -ORDER BY [e].[OrderDate]", - // - @"@_outer_CustomerID1='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 1 [e1].[OrderID], [e1].[CustomerID], [e1].[EmployeeID], [e1].[OrderDate] -FROM [Orders] AS [e1] -WHERE @_outer_CustomerID1 = [e1].[CustomerID] -ORDER BY [e1].[OrderDate]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.TrimEnd_without_arguments_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE RTrim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Exists_Inequality() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE (([o].[OrderDate] <> #10/24/2008 00:00:00#) OR [o].[OrderDate] IS NULL) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToInt32() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_month_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('m', [o].[OrderDate]) = 4"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Exists() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[OrderDate] = #10/24/2008 00:00:00#) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_is_null() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_correlated_subquery_ordered() : - AssertSql( - @"@__p_0='3' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_Where_Subquery_Deep_Single() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[OrderID] = 10344", - // - @"@_outer_OrderID='10344' - -SELECT TOP 2 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE @_outer_OrderID = [o0].[OrderID]", - // - @"@_outer_CustomerID1='WHITC' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID1 = [c2].[CustomerID]", - // - @"@_outer_OrderID='10344' - -SELECT TOP 2 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE @_outer_OrderID = [o0].[OrderID]", - // - @"@_outer_CustomerID1='WHITC' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID1 = [c2].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_GroupJoin_DefaultIfEmpty_Where() : - AssertSql( - @"SELECT [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM (([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -LEFT JOIN [Orders] AS [o2] ON [c].[CustomerID] = [o2].[CustomerID]) -WHERE [o2].[OrderID] IS NOT NULL AND ([o2].[CustomerID] = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_Where_Subquery_Deep_First() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ( - SELECT TOP 1 ( - SELECT TOP 1 [c].[City] - FROM [Customers] AS [c] - WHERE [o].[CustomerID] = [c].[CustomerID] - ) - FROM [Orders] AS [o] - WHERE [od].[OrderID] = [o].[OrderID] -) = 'Seattle'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_null_is_not_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_coalesce() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])),0,IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])))) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_negated_twice() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Distinct_Skip() : - AssertSql( - @"@__p_0='5' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT DISTINCT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] -) AS [t] -ORDER BY [t].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_order_by_key_descending1() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] LIKE 'A' + '%' -ORDER BY [c].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_minute_component() : - AssertSql( - @"SELECT DatePart('n', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_null_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_atan() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Atn([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_entity_equality_one_element_SingleOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.No_orderby_added_for_client_side_GroupJoin_dependent_to_principal_LOJ() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID] AS [Id1], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_asin() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Atn([od].[Discount] / Sqr(-[od].[Discount] * [od].[Discount] + 1)) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_method_call_closure_via_query_cache() : - AssertSql( - @"@__GetCity_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0", - // - @"@__GetCity_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Project_single_element_from_collection_with_OrderBy_Take_and_SingleOrDefault() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 2 [t0].[CustomerID] -FROM ( - SELECT TOP 1 [o0].[CustomerID], [o0].[OrderID] - FROM [Orders] AS [o0] - WHERE @_outer_CustomerID = [o0].[CustomerID] - ORDER BY [o0].[OrderID] -) AS [t0] -ORDER BY [t0].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_year_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('yyyy', [o].[OrderDate]) = 1998"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + 'b'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_SelectMany_subquery_with_filter() : - AssertSql( - @"SELECT [c].[ContactName], [t].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT [o].* - FROM [Orders] AS [o] - WHERE [o].[OrderID] > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_composite_key() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON ([c].[CustomerID] = [o].[CustomerID]) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Lifting_when_subquery_nested_order_by_anonymous() : - AssertSql( - @"@__p_0='2' - -SELECT [c1_Orders].[OrderID], [c1_Orders].[CustomerID], [c1_Orders].[EmployeeID], [c1_Orders].[OrderDate], [t0].[CustomerID] -FROM ([Orders] AS [c1_Orders] -INNER JOIN ( - SELECT DISTINCT [t].[CustomerID] - FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] - ) AS [t] - , [Customers] AS [c2] -) AS [t0] ON [c1_Orders].[CustomerID] = [t0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_different_entity_types_using_Equals() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OfType_Select() : - AssertSql( - @"SELECT TOP 1 [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_Customers_Orders_Skip_Take() : - AssertSql( - @"@__p_1='5' -@__p_0='10' - -SELECT TOP @__p_1+@__p_0 [c].[ContactName], [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [o].[OrderID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Trim_without_argument_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Trim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_dayOfYear_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('y', [o].[OrderDate]) = 68"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_second_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('s', [o].[OrderDate]) = 44"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_simple_subquery() : - AssertSql( - @"@__p_0='9' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t] -, [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_indexer_closure() : - AssertSql( - @"@__p_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_different_outer_elements_with_same_key_projected_from_another_entity() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM (([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -LEFT JOIN [Customers] AS [c] ON [od#Order].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Not_Exists() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE False = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Contains_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr(1, [c].[ContactName], [c].[ContactName], 0) > 0) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_new_instance_field_access_closure_via_query_cache() : - AssertSql( - @"@__InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0", - // - @"@__InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_orderBy_take_count() : - AssertSql( - @"@__p_0='7' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[Country] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_int_to_string() : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderID]), NULL, CStr([o].[OrderID])) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_subquery_involving_join_binds_to_correct_table() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] > 11000) AND [o].[OrderID] IN ( - SELECT [od].[OrderID] - FROM ([Order Details] AS [od] - INNER JOIN [Products] AS [od#Product] ON [od].[ProductID] = [od#Product].[ProductID]) - WHERE [od#Product].[ProductName] = 'Chai' -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Projection_in_a_subquery_should_be_liftable() : - AssertSql( - @"@__p_0='1' - -SELECT [e].[EmployeeID] -FROM [Employees] AS [e] -ORDER BY [e].[EmployeeID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_division_on_decimal_no_significant_digits() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull([od].[Quantity] / 2.0),0,[od].[Quantity] / 2.0))) -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_today() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_Customers_Orders_Orders_Skip_Take_Same_Properties() : - AssertSql( - @"@__p_1='5' -@__p_0='10' - -SELECT TOP @__p_1+@__p_0 [o].[OrderID], [ca].[CustomerID] AS [CustomerIDA], [cb].[CustomerID] AS [CustomerIDB], [ca].[ContactName] AS [ContactNameA], [cb].[ContactName] AS [ContactNameB] -FROM (([Orders] AS [o] -INNER JOIN [Customers] AS [ca] ON [o].[CustomerID] = [ca].[CustomerID]) -INNER JOIN [Customers] AS [cb] ON [o].[CustomerID] = [cb].[CustomerID]) -ORDER BY [o].[OrderID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_acos() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND ((1.5707963267948966 + Atn(-[od].[Discount] / Sqr(-[od].[Discount] * [od].[Discount] + 1))) > 1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Environment_newline_is_funcletized() : line_is_funcletized() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\Query\SimpleQueryJetTest.cs:riga 2703 - AssertSql( - @"@__NewLine_0=' -' (Nullable = false) (Size = 2) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr(1, [c].[CustomerID], @__NewLine_0, 0) > 0) OR (@__NewLine_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Anonymous_complex_orderby() : - AssertSql( - @"SELECT [c].[CustomerID] + [c].[City] AS [A] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] + [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Sum_with_coalesce() : - AssertSql( - @"SELECT SUM(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_day_component() : - AssertSql( - @"SELECT DatePart('d', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToString() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) <> '10')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_SelectMany_subquery_with_filter_orderby_and_DefaultIfEmpty() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_Distinct_Count() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT DISTINCT [t].* - FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - ) AS [t] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_multi_level() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_hour_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('h', [o].[OrderDate]) = 14"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_shadow() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToInt16() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_via_query_cache_nullable_type_reverse() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Filter_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE IIf(IsNull([c].[CompanyName]), [c].[ContactName], [c].[CompanyName]) = 'The Big Cheese'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToDecimal() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0.0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_subquery_closure_via_query_cache() : - AssertSql( - @"@__customerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] = @__customerID_0) AND ([o].[CustomerID] = [c].[CustomerID]))", - // - @"@__customerID_0='ANATR' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[CustomerID] = @__customerID_0) AND ([o].[CustomerID] = [c].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_projection() : - AssertSql( - @"SELECT [c].[ContactName], [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_multi_level4() : - AssertSql( - @"SELECT IIf(IsNull(( - SELECT TOP 1 ( - SELECT COUNT(*) - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] > 10) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -)), 0, ( - SELECT TOP 1 ( - SELECT COUNT(*) - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] > 10) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -)) AS [Order] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_Skip() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[ContactName] -) AS [t] -ORDER BY [t].[ContactName] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_null_coalesce_operator() : - AssertSql( - @"@__p_0='5' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[CompanyName], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [Region] -FROM [Customers] AS [c] -ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_constant_is_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_SelectMany_subquery_with_filter_orderby() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_same_collection_multiple() : - AssertSql( - @"SELECT [c3].[CustomerID], [c3].[Address], [c3].[City], [c3].[CompanyName], [c3].[ContactName], [c3].[ContactTitle], [c3].[Country], [c3].[Fax], [c3].[Phone], [c3].[PostalCode], [c3].[Region] -FROM (([Customers] AS [o] -INNER JOIN [Customers] AS [c2] ON [o].[CustomerID] = [c2].[CustomerID]) -INNER JOIN [Customers] AS [c3] ON [o].[CustomerID] = [c3].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.DTO_complex_orderby() : - AssertSql( - @"SELECT [c].[CustomerID] + [c].[City] AS [Property] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] + [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Skip_no_orderby() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a' - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_parameter() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple_ordering() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_with_single() : - AssertSql( - @"@__p_0='1' - -SELECT TOP 2 [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_correlated_subquery_projection() : - AssertSql( - @"@__p_0='3' - -SELECT TOP @__p_0 [cc].[CustomerID] -FROM [Customers] AS [cc] -ORDER BY [cc].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_correlated_subquery_filtered() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_day_of_year_component() : - AssertSql( - @"SELECT DatePart('y', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_correlated_subquery_ordered() : - AssertSql( - @"@__p_0='3' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_correlated_subquery_projection() : - AssertSql( - @"@__p_0='3' - -SELECT TOP @__p_0 [cc].[CustomerID] -FROM [Customers] AS [cc] -ORDER BY [cc].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_correlated_subquery_ordered() : - AssertSql( - @"@__p_0='3' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_correlated_subquery_projection() : - AssertSql( - @"@__p_0='3' - -SELECT TOP @__p_0 [cc].[CustomerID] -FROM [Customers] AS [cc] -ORDER BY [cc].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_tuple_item_closure() : - AssertSql( - @"@__predicateTuple_Item2_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__predicateTuple_Item2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_equals_constant() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_entities_using_Equals() : - AssertSql( - @"SELECT [c1].[CustomerID] AS [Id1], [c2].[CustomerID] AS [Id2] -FROM [Customers] AS [c1] -, [Customers] AS [c2] -WHERE [c1].[CustomerID] LIKE 'ALFKI' + '%' AND ([c1].[CustomerID] = [c2].[CustomerID]) -ORDER BY [c1].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Union_with_custom_projection() : - AssertSql( - @"SELECT [c1].[CustomerID], [c1].[Address], [c1].[City], [c1].[CompanyName], [c1].[ContactName], [c1].[ContactTitle], [c1].[Country], [c1].[Fax], [c1].[Phone], [c1].[PostalCode], [c1].[Region] -FROM [Customers] AS [c1] -WHERE [c1].[CompanyName] LIKE 'A' + '%'", - // - @"SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE [c2].[CompanyName] LIKE 'B' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_different_outer_elements_with_same_key_with_predicate() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID]) -WHERE [o].[OrderID] > 11500"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_customers_orders_count() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0", - // - @"@__city_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Exists_Constant() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE False = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_to_fixed_string_parameter() : - AssertSql( - @"@__prefix_0='A' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE @__prefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_true() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_sqrt() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Sqr([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_with_subquery_predicate_with_take() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[ContactName], [t].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT TOP @__p_0 [o2].* - FROM [Orders] AS [o2] - WHERE [o2].[OrderID] > 0 - ORDER BY [o2].[OrderID] -) AS [t] ON [c].[CustomerID] = [t].[CustomerID]) -WHERE [t].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_de_morgan_or_optimizated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) AND ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Local_array() : - AssertSql( - @"@__get_Item_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + [c].[ContactName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_navigation_contains() : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI' -ORDER BY [c].[CustomerID]", - // - @"SELECT [c#Orders].[OrderID], [c#Orders].[CustomerID], [c#Orders].[EmployeeID], [c#Orders].[OrderDate] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT TOP 1 [c0].[CustomerID] - FROM [Customers] AS [c0] - WHERE [c0].[CustomerID] = 'ALFKI' - ORDER BY [c0].[CustomerID] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]", - // - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_indexof() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_join_orderby_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM (([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -INNER JOIN [Order Details] AS [od] ON [o].[OrderID] = [od].[OrderID]) -WHERE [c].[CustomerID] <> 'ALFKI' -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_truncate() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE Int([od].[UnitPrice]) > 10.0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE [c].[ContactName] + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_skip_take() : - AssertSql( - @"@__p_1='8' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactTitle], [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0", - // - @"@__city_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_navigations_using_Equals() : - AssertSql( - @"SELECT [o1].[OrderID] AS [Id1], [o2].[OrderID] AS [Id2] -FROM [Orders] AS [o1] -, [Orders] AS [o2] -WHERE [o1].[CustomerID] LIKE 'A' + '%' AND (([o1].[CustomerID] = [o2].[CustomerID]) OR ([o1].[CustomerID] IS NULL AND [o2].[CustomerID] IS NULL)) -ORDER BY [o1].[OrderID], [o2].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_cartesian_product_with_ordering() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[City] AS [City0] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE ([c].[City] = [e].[City]) OR ([c].[City] IS NULL AND [e].[City] IS NULL) -ORDER BY [e].[City], [c].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_constant() : - AssertSql( - @"SELECT Mid([c].[ContactName], 2, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_MethodCall() : - AssertSql( - @"@__LocalMethod2_0='m' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + @__LocalMethod2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_substring() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Mid([c].[City], 2, 2) = 'ea'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_entity_equality_no_elements_SingleOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = 42", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = 42", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = 42"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Query_expression_with_to_string_and_contains() : - AssertSql( - @"SELECT [o].[CustomerID] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL AND (Instr(1, IIf(IsNull([o].[EmployeeID]), NULL, CStr([o].[EmployeeID])), '10', 0) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_SelectMany_subquery_with_filter_and_DefaultIfEmpty() : - AssertSql( - @"SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate], [c].[ContactName] -FROM ([Customers] AS [c] -LEFT JOIN ( - SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - WHERE [o].[OrderID] > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_complex_negated_expression_optimized() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[Discontinued] = False) AND ([p].[ProductID] < 60)) AND ([p].[ProductID] > 30)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Skip_Take() : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.TrimStart_without_arguments_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE LTrim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_replace() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Replace([c].[City], 'Sea', 'Rea') = 'Reattle'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_concat_with_navigation1() : - AssertSql( - @"SELECT ([o].[CustomerID] + ' ') + [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_OrderBy_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Streaming_chained_sync_query() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"SELECT [y#Customer].[CustomerID], [y#Customer].[Address], [y#Customer].[City], [y#Customer].[CompanyName], [y#Customer].[ContactName], [y#Customer].[ContactTitle], [y#Customer].[Country], [y#Customer].[Fax], [y#Customer].[Phone], [y#Customer].[PostalCode], [y#Customer].[Region] -FROM [Customers] AS [y#Customer]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_dictionary_key_access_closure() : - AssertSql( - @"@__get_Item_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_to_upper() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE UCase([c].[CustomerID]) = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_long_to_string() : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderID]), NULL, CStr([o].[OrderID])) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_other_to_string() : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderDate]), NULL, CStr([o].[OrderDate])) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many_or_with_parameter() : - AssertSql( - @"@__london_0='London' (Nullable = false) (Size = 6) -@__lisboa_1='Lisboa' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN (@__london_0, 'Berlin', 'Seattle', @__lisboa_1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_navigations_using_static_Equals() : - AssertSql( - @"SELECT [o1].[OrderID] AS [Id1], [o2].[OrderID] AS [Id2] -FROM [Orders] AS [o1] -, [Orders] AS [o2] -WHERE [o1].[CustomerID] LIKE 'A' + '%' AND (([o1].[CustomerID] = [o2].[CustomerID]) OR ([o1].[CustomerID] IS NULL AND [o2].[CustomerID] IS NULL)) -ORDER BY [o1].[OrderID], [o2].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_non_matching_entities_using_Equals() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id1], [o].[OrderID] AS [Id2] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_cos() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (COS([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_entities() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_nested_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0", - // - @"@__city_Nested_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_comparison_to_nullable_bool() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE '%' + 'KI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_orderby_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] <> 'ALFKI' -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Compare_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_with_single_select_many() : - AssertSql( - @"@__p_0='1' - -SELECT TOP 2 [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID] AS [CustomerID0], [o].[EmployeeID], [o].[OrderDate] - FROM [Customers] AS [c] - , [Orders] AS [o] - ORDER BY [c].[CustomerID], [o].[OrderID] -) AS [t] -ORDER BY [t].[CustomerID], [t].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_sign() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Sgn([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_parameter() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE @__prm_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Projection_when_arithmetic_mixed_subqueries() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]", - // - @"SELECT TOP 2 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 2 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]", - // - @"SELECT TOP 2 [e0].[EmployeeID], [e0].[City], [e0].[Country], [e0].[FirstName], [e0].[ReportsTo], [e0].[Title] -FROM [Employees] AS [e0] -ORDER BY [e0].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_Where_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_entity_to_null_using_Equals() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND [c].[CustomerID] IS NOT NULL -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToDouble() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CDbl(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Compare_two_collection_navigations_with_different_property_chains() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id1], [o].[OrderID] AS [Id2] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE ([c].[CustomerID] = 'ALFKI') AND ([c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID], [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_different_outer_elements_with_same_key() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple3() : - AssertSql( - @"SELECT [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_multiple_contains_in_subquery_with_and() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[ProductID] IN ( - SELECT TOP 20 [p].[ProductID] - FROM [Products] AS [p] - ORDER BY [p].[ProductID] -) AND [od].[OrderID] IN ( - SELECT TOP 10 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_static_field_access_closure_via_query_cache() : - AssertSql( - @"@__StaticFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0", - // - @"@__StaticFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_null_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[CompanyName], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [Region] -FROM [Customers] AS [c] -ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_is_not_null() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_non_matching_collection_navigations_using_Equals() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id1], [o].[OrderID] AS [Id2] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Static_equals_int_compared_to_long() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_division_on_decimal() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull([od].[Quantity] / 2.09),0,[od].[Quantity] / 2.09))) -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + [c].[ContactName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_Customers_Orders_Projection_With_String_Concat_Skip_Take() : - AssertSql( - @"@__p_1='5' -@__p_0='10' - -SELECT TOP @__p_1+@__p_0 ([c].[ContactName] + ' ') + [c].[ContactTitle] AS [Contact], [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [o].[OrderID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_equals_on_mismatched_types_nullable_int_long() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_DateTime_Date() : - AssertSql( - @"SELECT [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE IIf(IsNull([e].[OrderDate]), NULL, DateValue([e].[OrderDate])) IN (#07/04/1996 00:00:00#, #07/16/1996 00:00:00#)", - // - @"SELECT [e].[OrderID], [e].[CustomerID], [e].[EmployeeID], [e].[OrderDate] -FROM [Orders] AS [e] -WHERE IIf(IsNull([e].[OrderDate]), NULL, DateValue([e].[OrderDate])) IN (#07/04/1996 00:00:00#)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_tracking_groups() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE [c].[ContactName] + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetimeoffset_now_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_Dto_projection_skip_take() : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID] AS [Id] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Any() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[OrderDate] = #10/24/2008 00:00:00#) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_customers_orders_count_preserves_ordering() : - AssertSql( - @"@__p_0='5' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM (( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - WHERE [c].[CustomerID] NOT IN ('VAFFE', 'DRACD') - ORDER BY [c].[City] -) AS [t] -LEFT JOIN [Orders] AS [o] ON [t].[CustomerID] = [o].[CustomerID]) -ORDER BY [t].[City], [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_day_of_year_component() : - AssertSql( - @"SELECT DatePart('y', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_via_query_cache_nullable_type() : - AssertSql( - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_Where_OrderBy() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE ([o].[CustomerID] = 'ALFKI') OR ([c].[CustomerID] = 'ANATR') -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Projection_null_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[CompanyName], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToByte() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CByte(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_false() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_client_Take() : - AssertSql( - @"@__p_1='10' - -SELECT TOP @__p_1 [o].[EmployeeID], [o].[City], [o].[Country], [o].[FirstName], [o].[ReportsTo], [o].[Title] -FROM [Employees] AS [o] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Compare_collection_navigation_with_itself() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND ([c].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_sin() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (SIN([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_MethodCall() : - AssertSql( - @"@__LocalMethod1_0='M' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE @__LocalMethod1_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_method_call_nullable_type_reverse_closure_via_query_cache() : - AssertSql( - @"@__city_NullableInt_0='1' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0", - // - @"@__city_NullableInt_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_with_subquery_with_take() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[ContactName], [t].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT TOP @__p_0 [o2].* - FROM [Orders] AS [o2] - ORDER BY [o2].[OrderID] -) AS [t] ON [c].[CustomerID] = [t].[CustomerID]) -WHERE [t].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.No_orderby_added_for_fully_translated_manually_constructed_LOJ() : - AssertSql( - @"SELECT [e1].[City] AS [City1], [e2].[City] AS [City2] -FROM ([Employees] AS [e1] -LEFT JOIN [Employees] AS [e2] ON [e1].[EmployeeID] = [e2].[ReportsTo])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE 'M' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_coalesce_take_distinct() : - AssertSql( - @"@__p_0='15' - -SELECT DISTINCT [t].* -FROM ( - SELECT TOP @__p_0 [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] - FROM [Products] AS [p] - ORDER BY IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice]) -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Min_with_coalesce() : - AssertSql( - @"SELECT MIN(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_named_tuple_item_closure() : - AssertSql( - @"@__predicateTuple_Item2_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__predicateTuple_Item2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Max_with_coalesce() : - AssertSql( - @"SELECT MAX(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_false() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_skip_null_coalesce_operator() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[CompanyName], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [Region] - FROM [Customers] AS [c] - ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) -) AS [t] -ORDER BY [t].[Region] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_equals_on_matched_nullable_int_types() : - AssertSql( - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE @__nullableIntPrm_0 = [e].[ReportsTo]", - // - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__nullableIntPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_concat_with_navigation2() : - AssertSql( - @"SELECT ([o#Customer].[City] + ' ') + [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_client_side_negated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_static_property_access_closure_via_query_cache() : - AssertSql( - @"@__StaticPropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0", - // - @"@__StaticPropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_via_query_cache() : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0", - // - @"@__city_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_to_lower() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE LCase([c].[CustomerID]) = 'alfki'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Contains_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr(1, [c].[ContactName], [c].[ContactName], 0) > 0) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_zero_length() : - AssertSql( - @"SELECT Mid([c].[ContactName], 3, 0) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_Where_Subquery_Equality() : - AssertSql( - @"@__p_0='1' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] -) AS [t] -ORDER BY [t].[OrderID]", - // - @"SELECT [t1].[OrderID] -FROM ( - SELECT TOP 2 [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice] - FROM [Order Details] AS [od0] - ORDER BY [od0].[OrderID] -) AS [t1]", - // - @"@_outer_CustomerID2='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 1 [c3].[Country] -FROM [Customers] AS [c3] -WHERE [c3].[CustomerID] = @_outer_CustomerID2 -ORDER BY [c3].[CustomerID]", - // - @"@_outer_OrderID1='10248' - -SELECT TOP 1 [c4].[Country] -FROM ([Orders] AS [o20] -INNER JOIN [Customers] AS [c4] ON [o20].[CustomerID] = [c4].[CustomerID]) -WHERE [o20].[OrderID] = @_outer_OrderID1 -ORDER BY [o20].[OrderID], [c4].[CustomerID]", - // - @"@_outer_CustomerID2='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 1 [c3].[Country] -FROM [Customers] AS [c3] -WHERE [c3].[CustomerID] = @_outer_CustomerID2 -ORDER BY [c3].[CustomerID]", - // - @"@_outer_OrderID1='10248' - -SELECT TOP 1 [c4].[Country] -FROM ([Orders] AS [o20] -INNER JOIN [Customers] AS [c4] ON [o20].[CustomerID] = [c4].[CustomerID]) -WHERE [o20].[OrderID] = @_outer_OrderID1 -ORDER BY [o20].[OrderID], [c4].[CustomerID]", - // - @"@_outer_CustomerID2='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 1 [c3].[Country] -FROM [Customers] AS [c3] -WHERE [c3].[CustomerID] = @_outer_CustomerID2 -ORDER BY [c3].[CustomerID]", - // - @"@_outer_OrderID1='10248' - -SELECT TOP 1 [c4].[Country] -FROM ([Orders] AS [o20] -INNER JOIN [Customers] AS [c4] ON [o20].[CustomerID] = [c4].[CustomerID]) -WHERE [o20].[OrderID] = @_outer_OrderID1 -ORDER BY [o20].[OrderID], [c4].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_closure() : - AssertSql( - @"@__start_0='2' - -SELECT Mid([c].[ContactName], @__start_0 + 1, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_same_collection_force_alias_uniquefication() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM ([Orders] AS [o] -INNER JOIN [Orders] AS [o0] ON [o].[CustomerID] = [o0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OfType_Select_OfType_Select() : - AssertSql( - @"SELECT TOP 1 [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_skip_null_coalesce_operator3() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [c] - FROM [Customers] AS [c] - ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) -) AS [t] -ORDER BY [t].[c] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_select() : - AssertSql( - @"SELECT [c].[ContactName], [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty_multiple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o1].[OrderID], [o1].[CustomerID], [o1].[EmployeeID], [o1].[OrderDate], [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM (([Customers] AS [c] -LEFT JOIN [Orders] AS [o1] ON [c].[CustomerID] = [o1].[CustomerID]) -LEFT JOIN [Orders] AS [o2] ON [c].[CustomerID] = [o2].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_chain() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'QUICK') AND ([o].[OrderDate] > #01/01/1998 00:00:00#)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_power() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[Discount]^2 > 0.05000000074505806"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_compare_to_with_parameter() : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.SelectMany_mixed() : - AssertSql( - @"@__p_0='2' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]", - // - @"SELECT [t0].[CustomerID], [t0].[Address], [t0].[City], [t0].[CompanyName], [t0].[ContactName], [t0].[ContactTitle], [t0].[Country], [t0].[Fax], [t0].[Phone], [t0].[PostalCode], [t0].[Region] -FROM ( - SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure() : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_zero_startindex() : - AssertSql( - @"SELECT Mid([c].[ContactName], 1, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Projection_when_arithmetic_mixed() : - AssertSql( - @"@__p_0='10' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate], [t0].[EmployeeID], [t0].[City], [t0].[Country], [t0].[FirstName], [t0].[ReportsTo], [t0].[Title] -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] -, ( - SELECT TOP 5 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_nested_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0", - // - @"@__city_Nested_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_local_collection_empty_closure() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty_Project() : - AssertSql( - @"SELECT [o].[OrderID] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Compare_to_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_take_count_works() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [o].* - FROM ([Orders] AS [o] - INNER JOIN ( - SELECT [c].* - FROM [Customers] AS [c] - WHERE [c].[CustomerID] = 'ALFKI' - ) AS [t] ON [o].[CustomerID] = [t].[CustomerID]) - WHERE ([o].[OrderID] > 690) AND ([o].[OrderID] < 710) -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_date_add_year_constant_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('yyyy', IIf(IsNull([o].[OrderDate]), NULL, DateAdd('yyyy', -1, [o].[OrderDate]))) = 1997"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_in_complex_predicate() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[ProductID] > 100) AND ([p].[Discontinued] = True)) OR ([p].[Discontinued] = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_collection_navigation_to_null_complex() : - AssertSql( - @"SELECT [od].[ProductID], [od].[OrderID] -FROM ([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -WHERE ([od].[OrderID] < 10250) AND [od#Order].[CustomerID] IS NOT NULL -ORDER BY [od].[OrderID], [od].[ProductID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Parameter_extraction_short_circuits_2() : - AssertSql( - @"@__dateFilter_Value_Month_0='7' -@__dateFilter_Value_Year_1='1996' - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10400) AND (([o].[OrderDate] IS NOT NULL AND (DatePart('m', [o].[OrderDate]) = @__dateFilter_Value_Month_0)) AND (DatePart('yyyy', [o].[OrderDate]) = @__dateFilter_Value_Year_1))", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Distinct_Skip_Take() : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT DISTINCT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] -) AS [t] -ORDER BY [t].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Orderby_added_for_client_side_GroupJoin_principal_to_dependent_LOJ() : - AssertSql( - @"SELECT [e1].[EmployeeID], [e1].[City] AS [City1], [e1].[Country], [e1].[FirstName], [e1].[ReportsTo], [e1].[Title], [e2].[EmployeeID], [e2].[City], [e2].[Country], [e2].[FirstName], [e2].[ReportsTo], [e2].[Title] -FROM ([Employees] AS [e1] -LEFT JOIN [Employees] AS [e2] ON [e1].[EmployeeID] = [e2].[ReportsTo]) -ORDER BY [e1].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_exp() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (EXP([od].[Discount]) > 1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_guid_newguid() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE NewGuid() <> '00000000-0000-0000-0000-000000000000'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_equals_on_mismatched_types_nullable_long_nullable_int() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_skip_null_coalesce_operator2() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[CompanyName], [c].[Region], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [c] - FROM [Customers] AS [c] - ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) -) AS [t] -ORDER BY [t].[c] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Projection_when_client_evald_subquery() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [t].[CustomerID], [c#Orders].[CustomerID] -FROM ([Orders] AS [c#Orders] -INNER JOIN ( - SELECT [c0].[CustomerID] - FROM [Customers] AS [c0] -) AS [t] ON [c#Orders].[CustomerID] = [t].[CustomerID]) -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_utcnow() : - AssertSql( - @"@__myDatetime_0='2015-04-10T00:00:00' (DbType = DateTime) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Now() <> @__myDatetime_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.QueryType_with_nav_defining_query() : - AssertSql( - @"@__ef_filter___searchTerm_0='A' (Nullable = false) (Size = 1) -@__ef_filter___searchTerm_1='A' (Nullable = false) (Size = 1) - -SELECT [t].[CompanyName], [t].[OrderCount], [t].[SearchTerm] -FROM ( - SELECT [c].[CompanyName], ( - SELECT COUNT(*) - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ) AS [OrderCount], @__ef_filter___searchTerm_0 AS [SearchTerm] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[CompanyName] LIKE @__ef_filter___searchTerm_1 + '%' AND ([t].[OrderCount] > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_integer() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Selected_column_can_coalesce() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_multi_level5() : - AssertSql( - @"SELECT IIf(IsNull(( - SELECT TOP 1 ( - SELECT TOP 1 [od].[ProductID] - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] <> ( - SELECT COUNT(*) - FROM [Orders] AS [o0] - WHERE [c].[CustomerID] = [o0].[CustomerID] - )) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -)), 0, ( - SELECT TOP 1 ( - SELECT TOP 1 [od].[ProductID] - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] <> ( - SELECT COUNT(*) - FROM [Orders] AS [o0] - WHERE [c].[CustomerID] = [o0].[CustomerID] - )) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -)) AS [Order] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Single_Predicate() : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [o].[OrderID] IS NOT NULL AND ([o].[CustomerID] = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_constant() : - AssertSql( - @"@__predicate_0='True' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE @__predicate_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_tan() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (TAN([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_de_morgan_and_optimizated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) OR ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_select_many() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -, [Employees] AS [e]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty3() : - AssertSql( - @"@__p_0='1' - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM (( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -LEFT JOIN [Orders] AS [o] ON [t].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Complex_nested_query_doesnt_try_binding_to_grandparent_when_parent_returns_complex_result() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"@_outer_CustomerID1='ALFKI' (Nullable = false) (Size = 5) -@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) -@_outer_CustomerID2='ALFKI' (Nullable = false) (Size = 5) - -SELECT ( - SELECT COUNT(*) - FROM [Orders] AS [o0] - WHERE @_outer_CustomerID1 = [o0].[CustomerID] -) AS [InnerOrder], @_outer_CustomerID2 AS [Id] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Project_single_element_from_collection_with_OrderBy_over_navigation_Take_and_FirstOrDefault_2() : - AssertSql( - @"SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10250", - // - @"@_outer_OrderID='10248' - -SELECT TOP 1 [t].* -FROM ( - SELECT TOP 1 [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice], [od#Product].[ProductName] - FROM ([Order Details] AS [od] - INNER JOIN [Products] AS [od#Product] ON [od].[ProductID] = [od#Product].[ProductID]) - WHERE @_outer_OrderID = [od].[OrderID] - ORDER BY [od#Product].[ProductName] -) AS [t] -ORDER BY [t].[ProductName]", - // - @"@_outer_OrderID='10249' - -SELECT TOP 1 [t].* -FROM ( - SELECT TOP 1 [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice], [od#Product].[ProductName] - FROM ([Order Details] AS [od] - INNER JOIN [Products] AS [od#Product] ON [od].[ProductID] = [od#Product].[ProductID]) - WHERE @_outer_OrderID = [od].[OrderID] - ORDER BY [od#Product].[ProductName] -) AS [t] -ORDER BY [t].[ProductName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_now() : - AssertSql( - @"@__myDatetime_0='2015-04-10T00:00:00' (DbType = DateTime) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Now() <> @__myDatetime_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_SelectMany() : - AssertSql( - @"SELECT [c].[ContactName], [t].[OrderID] -FROM [Customers] AS [c] -, ( - SELECT TOP 3 [o].* - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] -WHERE [c].[CustomerID] = [t].[CustomerID] -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple_subquery() : - AssertSql( - @"@__p_0='4' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty2() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Employees] AS [e] -LEFT JOIN [Orders] AS [o] ON [e].[EmployeeID] = [o].[EmployeeID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_equals_using_object_overload_on_mismatched_types() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Replace_with_emptystring() : - AssertSql( - @"SELECT Replace([c].[ContactName], 'ari', '') -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_date_add_year() : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderDate]), NULL, DateAdd('yyyy', 1, [o].[OrderDate])) AS [OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_false_shadow() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Skip() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_order_by_key_descending2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] LIKE 'A' + '%' -ORDER BY [c].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_compare_with_parameter() : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Subquery_member_pushdown_does_not_change_original_subquery_model() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[CustomerID], [t].[OrderID] -FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t]", - // - @"@_outer_CustomerID='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c0].[City] -FROM [Customers] AS [c0] -WHERE [c0].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='TOMSP' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c0].[City] -FROM [Customers] AS [c0] -WHERE [c0].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='HANAR' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c0].[City] -FROM [Customers] AS [c0] -WHERE [c0].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID1='TOMSP' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE [c2].[CustomerID] = @_outer_CustomerID1", - // - @"@_outer_CustomerID1='VINET' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE [c2].[CustomerID] = @_outer_CustomerID1", - // - @"@_outer_CustomerID1='HANAR' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE [c2].[CustomerID] = @_outer_CustomerID1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.TrimEnd_without_arguments_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE RTrim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Exists_Inequality() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE (([o].[OrderDate] <> #10/24/2008 00:00:00#) OR [o].[OrderDate] IS NULL) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToInt32() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Exists() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[OrderDate] = #10/24/2008 00:00:00#) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_is_null() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_Where_Subquery_Deep_Single() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[OrderID] = 10344", - // - @"@_outer_OrderID='10344' - -SELECT TOP 2 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE @_outer_OrderID = [o0].[OrderID]", - // - @"@_outer_CustomerID1='WHITC' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID1 = [c2].[CustomerID]", - // - @"@_outer_OrderID='10344' - -SELECT TOP 2 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE @_outer_OrderID = [o0].[OrderID]", - // - @"@_outer_CustomerID1='WHITC' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID1 = [c2].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_GroupJoin_DefaultIfEmpty_Where() : - AssertSql( - @"SELECT [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM (([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -LEFT JOIN [Orders] AS [o2] ON [c].[CustomerID] = [o2].[CustomerID]) -WHERE [o2].[OrderID] IS NOT NULL AND ([o2].[CustomerID] = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_null_is_not_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_coalesce() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])),0,IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])))) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_negated_twice() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Distinct_Skip() : - AssertSql( - @"@__p_0='5' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT DISTINCT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] -) AS [t] -ORDER BY [t].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_order_by_key_descending1() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] LIKE 'A' + '%' -ORDER BY [c].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_null_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_atan() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Atn([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_entity_equality_one_element_SingleOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.No_orderby_added_for_client_side_GroupJoin_dependent_to_principal_LOJ() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID] AS [Id1], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_asin() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Atn([od].[Discount] / Sqr(-[od].[Discount] * [od].[Discount] + 1)) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_method_call_closure_via_query_cache() : - AssertSql( - @"@__GetCity_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0", - // - @"@__GetCity_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Project_single_element_from_collection_with_OrderBy_Take_and_SingleOrDefault() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 2 [t0].[CustomerID] -FROM ( - SELECT TOP 1 [o0].[CustomerID], [o0].[OrderID] - FROM [Orders] AS [o0] - WHERE @_outer_CustomerID = [o0].[CustomerID] - ORDER BY [o0].[OrderID] -) AS [t0] -ORDER BY [t0].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + 'b'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_SelectMany_subquery_with_filter() : - AssertSql( - @"SELECT [c].[ContactName], [t].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT [o].* - FROM [Orders] AS [o] - WHERE [o].[OrderID] > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_composite_key() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON ([c].[CustomerID] = [o].[CustomerID]) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Lifting_when_subquery_nested_order_by_anonymous() : - AssertSql( - @"@__p_0='2' - -SELECT [c1_Orders].[OrderID], [c1_Orders].[CustomerID], [c1_Orders].[EmployeeID], [c1_Orders].[OrderDate], [t0].[CustomerID] -FROM ([Orders] AS [c1_Orders] -INNER JOIN ( - SELECT DISTINCT [t].[CustomerID] - FROM ( - SELECT TOP @__p_0 [c].* - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] - ) AS [t] - , [Customers] AS [c2] -) AS [t0] ON [c1_Orders].[CustomerID] = [t0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_different_entity_types_using_Equals() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OfType_Select() : - AssertSql( - @"SELECT TOP 1 [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_Customers_Orders_Skip_Take() : - AssertSql( - @"@__p_1='5' -@__p_0='10' - -SELECT TOP @__p_1+@__p_0 [c].[ContactName], [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [o].[OrderID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Trim_without_argument_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Trim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_dayOfYear_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('y', [o].[OrderDate]) = 68"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_indexer_closure() : - AssertSql( - @"@__p_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_different_outer_elements_with_same_key_projected_from_another_entity() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM (([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -LEFT JOIN [Customers] AS [c] ON [od#Order].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Not_Exists() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE False = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Contains_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr(1, [c].[ContactName], [c].[ContactName], 0) > 0) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_new_instance_field_access_closure_via_query_cache() : - AssertSql( - @"@__InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0", - // - @"@__InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_int_to_string() : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderID]), NULL, CStr([o].[OrderID])) AS [ShipName] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_subquery_involving_join_binds_to_correct_table() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] > 11000) AND [o].[OrderID] IN ( - SELECT [od].[OrderID] - FROM ([Order Details] AS [od] - INNER JOIN [Products] AS [od#Product] ON [od].[ProductID] = [od#Product].[ProductID]) - WHERE [od#Product].[ProductName] = 'Chai' -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Projection_in_a_subquery_should_be_liftable() : - AssertSql( - @"@__p_0='1' - -SELECT [e].[EmployeeID] -FROM [Employees] AS [e] -ORDER BY [e].[EmployeeID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_division_on_decimal_no_significant_digits() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull([od].[Quantity] / 2.0),0,[od].[Quantity] / 2.0))) -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_today() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_Customers_Orders_Orders_Skip_Take_Same_Properties() : - AssertSql( - @"@__p_1='5' -@__p_0='10' - -SELECT TOP @__p_1+@__p_0 [o].[OrderID], [ca].[CustomerID] AS [CustomerIDA], [cb].[CustomerID] AS [CustomerIDB], [ca].[ContactName] AS [ContactNameA], [cb].[ContactName] AS [ContactNameB] -FROM (([Orders] AS [o] -INNER JOIN [Customers] AS [ca] ON [o].[CustomerID] = [ca].[CustomerID]) -INNER JOIN [Customers] AS [cb] ON [o].[CustomerID] = [cb].[CustomerID]) -ORDER BY [o].[OrderID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_acos() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND ((1.5707963267948966 + Atn(-[od].[Discount] / Sqr(-[od].[Discount] * [od].[Discount] + 1))) > 1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Environment_newline_is_funcletized() : line_is_funcletized() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\Query\SimpleQueryJetTest.cs:riga 2703 - AssertSql( - @"@__NewLine_0=' -' (Nullable = false) (Size = 2) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr(1, [c].[CustomerID], @__NewLine_0, 0) > 0) OR (@__NewLine_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Anonymous_complex_orderby() : - AssertSql( - @"SELECT [c].[CustomerID] + [c].[City] AS [A] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] + [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Sum_with_coalesce() : - AssertSql( - @"SELECT SUM(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToString() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) <> '10')", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CStr(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) <> '10')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_SelectMany_subquery_with_filter_orderby_and_DefaultIfEmpty() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_multi_level() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_shadow() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToInt16() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CInt(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_via_query_cache_nullable_type_reverse() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Filter_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE IIf(IsNull([c].[CompanyName]), [c].[ContactName], [c].[CompanyName]) = 'The Big Cheese'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Convert_ToDecimal() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CByte([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CCur([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CDbl([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CInt([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CLng([o].[OrderID] MOD 1)))) >= 0.0)", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'ALFKI') AND (IIf(IsNull(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1))), NULL, CCur(IIf(IsNull([o].[OrderID] MOD 1), NULL, CStr([o].[OrderID] MOD 1)))) >= 0.0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_projection() : - AssertSql( - @"SELECT [c].[ContactName], [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_multi_level4() : - AssertSql( - @"SELECT IIf(IsNull(( - SELECT TOP 1 ( - SELECT COUNT(*) - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] > 10) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -)), 0, ( - SELECT TOP 1 ( - SELECT COUNT(*) - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] > 10) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -)) AS [Order] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_Skip() : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[ContactName] -) AS [t] -ORDER BY [t].[ContactName] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_take_null_coalesce_operator() : - AssertSql( - @"@__p_0='5' - -SELECT TOP @__p_0 [c].[CustomerID], [c].[CompanyName], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [Region] -FROM [Customers] AS [c] -ORDER BY IIf(IsNull([c].[Region]), 'ZZ', [c].[Region])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_constant_is_null() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_SelectMany_subquery_with_filter_orderby() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_same_collection_multiple() : - AssertSql( - @"SELECT [c3].[CustomerID], [c3].[Address], [c3].[City], [c3].[CompanyName], [c3].[ContactName], [c3].[ContactTitle], [c3].[Country], [c3].[Fax], [c3].[Phone], [c3].[PostalCode], [c3].[Region] -FROM (([Customers] AS [o] -INNER JOIN [Customers] AS [c2] ON [o].[CustomerID] = [c2].[CustomerID]) -INNER JOIN [Customers] AS [c3] ON [o].[CustomerID] = [c3].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.DTO_complex_orderby() : - AssertSql( - @"SELECT [c].[CustomerID] + [c].[City] AS [Property] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] + [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Skip_no_orderby() : - AssertSql( - @"@__p_0='5' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a' - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.OrderBy_parameter() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple_ordering() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Take_with_single() : - AssertSql( - @"@__p_0='1' - -SELECT TOP 2 [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[CustomerID] -) AS [t] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Complex_nested_query_doesnt_try_binding_to_grandparent_when_parent_returns_complex_result() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'", - // - @"@_outer_CustomerID1='ALFKI' (Nullable = false) (Size = 5) -@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) -@_outer_CustomerID2='ALFKI' (Nullable = false) (Size = 5) - -SELECT ( - SELECT COUNT(*) - FROM [Orders] AS [o0] - WHERE @_outer_CustomerID1 = [o0].[CustomerID] -) AS [InnerOrder], @_outer_CustomerID2 AS [Id] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_entities_using_Equals() : - AssertSql( - @"SELECT [c1].[CustomerID] AS [Id1], [c2].[CustomerID] AS [Id2] -FROM [Customers] AS [c1] -, [Customers] AS [c2] -WHERE [c1].[CustomerID] LIKE 'ALFKI' + '%' AND ([c1].[CustomerID] = [c2].[CustomerID]) -ORDER BY [c1].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_to_fixed_string_parameter() : - AssertSql( - @"@__prefix_0='A' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE @__prefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_navigations_using_Equals() : - AssertSql( - @"SELECT [o1].[OrderID] AS [Id1], [o2].[OrderID] AS [Id2] -FROM [Orders] AS [o1] -, [Orders] AS [o2] -WHERE [o1].[CustomerID] LIKE 'A' + '%' AND (([o1].[CustomerID] = [o2].[CustomerID]) OR ([o1].[CustomerID] IS NULL AND [o2].[CustomerID] IS NULL)) -ORDER BY [o1].[OrderID], [o2].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_navigations_using_static_Equals() : - AssertSql( - @"SELECT [o1].[OrderID] AS [Id1], [o2].[OrderID] AS [Id2] -FROM [Orders] AS [o1] -, [Orders] AS [o2] -WHERE [o1].[CustomerID] LIKE 'A' + '%' AND (([o1].[CustomerID] = [o2].[CustomerID]) OR ([o1].[CustomerID] IS NULL AND [o2].[CustomerID] IS NULL)) -ORDER BY [o1].[OrderID], [o2].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_entity_to_null_using_Equals() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND [c].[CustomerID] IS NOT NULL -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_collection_navigation_to_null_complex() : - AssertSql( - @"SELECT [od].[ProductID], [od].[OrderID] -FROM ([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -WHERE ([od].[OrderID] < 10250) AND [od#Order].[CustomerID] IS NOT NULL -ORDER BY [od].[OrderID], [od].[ProductID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_different_entity_types_using_Equals() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE False = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_entities_using_Equals() : - AssertSql( - @"SELECT [c1].[CustomerID] AS [Id1], [c2].[CustomerID] AS [Id2] -FROM [Customers] AS [c1] -, [Customers] AS [c2] -WHERE [c1].[CustomerID] LIKE 'ALFKI' + '%' AND ([c1].[CustomerID] = [c2].[CustomerID]) -ORDER BY [c1].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_navigations_using_Equals() : - AssertSql( - @"SELECT [o1].[OrderID] AS [Id1], [o2].[OrderID] AS [Id2] -FROM [Orders] AS [o1] -, [Orders] AS [o2] -WHERE [o1].[CustomerID] LIKE 'A' + '%' AND (([o1].[CustomerID] = [o2].[CustomerID]) OR ([o1].[CustomerID] IS NULL AND [o2].[CustomerID] IS NULL)) -ORDER BY [o1].[OrderID], [o2].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_navigations_using_static_Equals() : - AssertSql( - @"SELECT [o1].[OrderID] AS [Id1], [o2].[OrderID] AS [Id2] -FROM [Orders] AS [o1] -, [Orders] AS [o2] -WHERE [o1].[CustomerID] LIKE 'A' + '%' AND (([o1].[CustomerID] = [o2].[CustomerID]) OR ([o1].[CustomerID] IS NULL AND [o2].[CustomerID] IS NULL)) -ORDER BY [o1].[OrderID], [o2].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_entity_to_null_using_Equals() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND [c].[CustomerID] IS NOT NULL -ORDER BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_collection_navigation_to_null_complex() : - AssertSql( - @"SELECT [od].[ProductID], [od].[OrderID] -FROM ([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -WHERE ([od].[OrderID] < 10250) AND [od#Order].[CustomerID] IS NOT NULL -ORDER BY [od].[OrderID], [od].[ProductID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_to_fixed_string_parameter() : - AssertSql( - @"@__prefix_0='A' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE @__prefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Comparing_to_fixed_string_parameter() : - AssertSql( - @"@__prefix_0='A' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE @__prefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_tuple_item_closure() : - AssertSql( - @"@__predicateTuple_Item2_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__predicateTuple_Item2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_equals_constant() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Union_with_custom_projection() : - AssertSql( - @"SELECT [c1].[CustomerID], [c1].[Address], [c1].[City], [c1].[CompanyName], [c1].[ContactName], [c1].[ContactTitle], [c1].[Country], [c1].[Fax], [c1].[Phone], [c1].[PostalCode], [c1].[Region] -FROM [Customers] AS [c1] -WHERE [c1].[CompanyName] LIKE 'A' + '%'", - // - @"SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE [c2].[CompanyName] LIKE 'B' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_different_outer_elements_with_same_key_with_predicate() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID]) -WHERE [o].[OrderID] > 11500"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0", - // - @"@__city_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Exists_Constant() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE False = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_sqrt() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Sqr([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_de_morgan_or_optimizated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) AND ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Local_array() : - AssertSql( - @"@__get_Item_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + [c].[ContactName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_indexof() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_truncate() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE Int([od].[UnitPrice]) > 10.0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE [c].[ContactName] + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0", - // - @"@__city_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_constant() : - AssertSql( - @"SELECT Mid([c].[ContactName], 2, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_MethodCall() : - AssertSql( - @"@__LocalMethod2_0='m' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + @__LocalMethod2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_substring() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Mid([c].[City], 2, 2) = 'ea'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_entity_equality_no_elements_SingleOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = 42", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = 42", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = 42"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_SelectMany_subquery_with_filter_and_DefaultIfEmpty() : - AssertSql( - @"SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate], [c].[ContactName] -FROM ([Customers] AS [c] -LEFT JOIN ( - SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - WHERE [o].[OrderID] > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_complex_negated_expression_optimized() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[Discontinued] = False) AND ([p].[ProductID] < 60)) AND ([p].[ProductID] > 30)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.TrimStart_without_arguments_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE LTrim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_replace() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Replace([c].[City], 'Sea', 'Rea') = 'Reattle'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_concat_with_navigation1() : - AssertSql( - @"SELECT ([o].[CustomerID] + ' ') + [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_OrderBy_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Streaming_chained_sync_query() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"SELECT [y#Customer].[CustomerID], [y#Customer].[Address], [y#Customer].[City], [y#Customer].[CompanyName], [y#Customer].[ContactName], [y#Customer].[ContactTitle], [y#Customer].[Country], [y#Customer].[Fax], [y#Customer].[Phone], [y#Customer].[PostalCode], [y#Customer].[Region] -FROM [Customers] AS [y#Customer]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_dictionary_key_access_closure() : - AssertSql( - @"@__get_Item_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_to_upper() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE UCase([c].[CustomerID]) = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many_or_with_parameter() : - AssertSql( - @"@__london_0='London' (Nullable = false) (Size = 6) -@__lisboa_1='Lisboa' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN (@__london_0, 'Berlin', 'Seattle', @__lisboa_1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_cos() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (COS([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_entities() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_nested_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0", - // - @"@__city_Nested_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_comparison_to_nullable_bool() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE '%' + 'KI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Compare_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_sign() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Sgn([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_parameter() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE @__prm_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_Where_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_different_outer_elements_with_same_key() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple3() : - AssertSql( - @"SELECT [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_static_field_access_closure_via_query_cache() : - AssertSql( - @"@__StaticFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0", - // - @"@__StaticFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_division_on_decimal() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull([od].[Quantity] / 2.09),0,[od].[Quantity] / 2.09))) -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + [c].[ContactName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE [c].[ContactName] + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetimeoffset_now_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Any() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[OrderDate] = #10/24/2008 00:00:00#) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_day_of_year_component() : - AssertSql( - @"SELECT DatePart('y', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_via_query_cache_nullable_type() : - AssertSql( - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Projection_null_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[CompanyName], IIf(IsNull([c].[Region]), 'ZZ', [c].[Region]) AS [Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Compare_collection_navigation_with_itself() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND ([c].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_sin() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (SIN([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_MethodCall() : - AssertSql( - @"@__LocalMethod1_0='M' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE @__LocalMethod1_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_method_call_nullable_type_reverse_closure_via_query_cache() : - AssertSql( - @"@__city_NullableInt_0='1' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0", - // - @"@__city_NullableInt_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.No_orderby_added_for_fully_translated_manually_constructed_LOJ() : - AssertSql( - @"SELECT [e1].[City] AS [City1], [e2].[City] AS [City2] -FROM ([Employees] AS [e1] -LEFT JOIN [Employees] AS [e2] ON [e1].[EmployeeID] = [e2].[ReportsTo])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE 'M' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Min_with_coalesce() : - AssertSql( - @"SELECT MIN(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_named_tuple_item_closure() : - AssertSql( - @"@__predicateTuple_Item2_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__predicateTuple_Item2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Max_with_coalesce() : - AssertSql( - @"SELECT MAX(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_false() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_equals_on_matched_nullable_int_types() : - AssertSql( - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE @__nullableIntPrm_0 = [e].[ReportsTo]", - // - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__nullableIntPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_concat_with_navigation2() : - AssertSql( - @"SELECT ([o#Customer].[City] + ' ') + [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_client_side_negated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_static_property_access_closure_via_query_cache() : - AssertSql( - @"@__StaticPropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0", - // - @"@__StaticPropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_via_query_cache() : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0", - // - @"@__city_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_to_lower() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE LCase([c].[CustomerID]) = 'alfki'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Contains_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr(1, [c].[ContactName], [c].[ContactName], 0) > 0) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_zero_length() : - AssertSql( - @"SELECT Mid([c].[ContactName], 3, 0) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_closure() : - AssertSql( - @"@__start_0='2' - -SELECT Mid([c].[ContactName], @__start_0 + 1, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_same_collection_force_alias_uniquefication() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM ([Orders] AS [o] -INNER JOIN [Orders] AS [o0] ON [o].[CustomerID] = [o0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_select() : - AssertSql( - @"SELECT [c].[ContactName], [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty_multiple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o1].[OrderID], [o1].[CustomerID], [o1].[EmployeeID], [o1].[OrderDate], [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM (([Customers] AS [c] -LEFT JOIN [Orders] AS [o1] ON [c].[CustomerID] = [o1].[CustomerID]) -LEFT JOIN [Orders] AS [o2] ON [c].[CustomerID] = [o2].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_chain() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'QUICK') AND ([o].[OrderDate] > #01/01/1998 00:00:00#)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_power() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[Discount]^2 > 0.05000000074505806"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_compare_to_with_parameter() : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure() : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_zero_startindex() : - AssertSql( - @"SELECT Mid([c].[ContactName], 1, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_nested_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0", - // - @"@__city_Nested_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty_Project() : - AssertSql( - @"SELECT [o].[OrderID] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Compare_to_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_take_count_works() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [o].* - FROM ([Orders] AS [o] - INNER JOIN ( - SELECT [c].* - FROM [Customers] AS [c] - WHERE [c].[CustomerID] = 'ALFKI' - ) AS [t] ON [o].[CustomerID] = [t].[CustomerID]) - WHERE ([o].[OrderID] > 690) AND ([o].[OrderID] < 710) -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_date_add_year_constant_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('yyyy', IIf(IsNull([o].[OrderDate]), NULL, DateAdd('yyyy', -1, [o].[OrderDate]))) = 1997"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_in_complex_predicate() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[ProductID] > 100) AND ([p].[Discontinued] = True)) OR ([p].[Discontinued] = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_exp() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (EXP([od].[Discount]) > 1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_guid_newguid() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE NewGuid() <> '00000000-0000-0000-0000-000000000000'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_utcnow() : - AssertSql( - @"@__myDatetime_0='2015-04-10T00:00:00' (DbType = DateTime) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Now() <> @__myDatetime_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.QueryType_with_nav_defining_query() : - AssertSql( - @"@__ef_filter___searchTerm_0='A' (Nullable = false) (Size = 1) -@__ef_filter___searchTerm_1='A' (Nullable = false) (Size = 1) - -SELECT [t].[CompanyName], [t].[OrderCount], [t].[SearchTerm] -FROM ( - SELECT [c].[CompanyName], ( - SELECT COUNT(*) - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ) AS [OrderCount], @__ef_filter___searchTerm_0 AS [SearchTerm] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[CompanyName] LIKE @__ef_filter___searchTerm_1 + '%' AND ([t].[OrderCount] > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_multi_level5() : - AssertSql( - @"SELECT IIf(IsNull(( - SELECT TOP 1 ( - SELECT TOP 1 [od].[ProductID] - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] <> ( - SELECT COUNT(*) - FROM [Orders] AS [o0] - WHERE [c].[CustomerID] = [o0].[CustomerID] - )) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -)), 0, ( - SELECT TOP 1 ( - SELECT TOP 1 [od].[ProductID] - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] <> ( - SELECT COUNT(*) - FROM [Orders] AS [o0] - WHERE [c].[CustomerID] = [o0].[CustomerID] - )) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -)) AS [Order] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Single_Predicate() : - AssertSql( - @"SELECT TOP 2 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [o].[OrderID] IS NOT NULL AND ([o].[CustomerID] = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_constant() : - AssertSql( - @"@__predicate_0='True' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE @__predicate_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_tan() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (TAN([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_de_morgan_and_optimizated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) OR ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_select_many() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -, [Employees] AS [e]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_now() : - AssertSql( - @"@__myDatetime_0='2015-04-10T00:00:00' (DbType = DateTime) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Now() <> @__myDatetime_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty2() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Employees] AS [e] -LEFT JOIN [Orders] AS [o] ON [e].[EmployeeID] = [o].[EmployeeID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Replace_with_emptystring() : - AssertSql( - @"SELECT Replace([c].[ContactName], 'ari', '') -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_date_add_year() : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderDate]), NULL, DateAdd('yyyy', 1, [o].[OrderDate])) AS [OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_false_shadow() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_compare_with_parameter() : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.TrimEnd_without_arguments_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE RTrim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Exists_Inequality() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE (([o].[OrderDate] <> #10/24/2008 00:00:00#) OR [o].[OrderDate] IS NULL) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Exists() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[OrderDate] = #10/24/2008 00:00:00#) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_Where_Subquery_Deep_Single() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[OrderID] = 10344", - // - @"@_outer_OrderID='10344' - -SELECT TOP 2 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE @_outer_OrderID = [o0].[OrderID]", - // - @"@_outer_CustomerID1='WHITC' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID1 = [c2].[CustomerID]", - // - @"@_outer_OrderID='10344' - -SELECT TOP 2 [o0].[CustomerID] -FROM [Orders] AS [o0] -WHERE @_outer_OrderID = [o0].[OrderID]", - // - @"@_outer_CustomerID1='WHITC' (Nullable = false) (Size = 5) - -SELECT TOP 2 [c2].[City] -FROM [Customers] AS [c2] -WHERE @_outer_CustomerID1 = [c2].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_GroupJoin_DefaultIfEmpty_Where() : - AssertSql( - @"SELECT [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM (([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -LEFT JOIN [Orders] AS [o2] ON [c].[CustomerID] = [o2].[CustomerID]) -WHERE [o2].[OrderID] IS NOT NULL AND ([o2].[CustomerID] = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_coalesce() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])),0,IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])))) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_negated_twice() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_atan() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Atn([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_entity_equality_one_element_SingleOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.No_orderby_added_for_client_side_GroupJoin_dependent_to_principal_LOJ() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID] AS [Id1], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_asin() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Atn([od].[Discount] / Sqr(-[od].[Discount] * [od].[Discount] + 1)) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_method_call_closure_via_query_cache() : - AssertSql( - @"@__GetCity_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0", - // - @"@__GetCity_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + 'b'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_SelectMany_subquery_with_filter() : - AssertSql( - @"SELECT [c].[ContactName], [t].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT [o].* - FROM [Orders] AS [o] - WHERE [o].[OrderID] > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_composite_key() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON ([c].[CustomerID] = [o].[CustomerID]) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Trim_without_argument_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Trim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_dayOfYear_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('y', [o].[OrderDate]) = 68"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_indexer_closure() : - AssertSql( - @"@__p_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_different_outer_elements_with_same_key_projected_from_another_entity() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM (([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -LEFT JOIN [Customers] AS [c] ON [od#Order].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Not_Exists() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE False = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Contains_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr(1, [c].[ContactName], [c].[ContactName], 0) > 0) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_new_instance_field_access_closure_via_query_cache() : - AssertSql( - @"@__InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0", - // - @"@__InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_subquery_involving_join_binds_to_correct_table() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] > 11000) AND [o].[OrderID] IN ( - SELECT [od].[OrderID] - FROM ([Order Details] AS [od] - INNER JOIN [Products] AS [od#Product] ON [od].[ProductID] = [od#Product].[ProductID]) - WHERE [od#Product].[ProductName] = 'Chai' -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_division_on_decimal_no_significant_digits() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull([od].[Quantity] / 2.0),0,[od].[Quantity] / 2.0))) -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_acos() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND ((1.5707963267948966 + Atn(-[od].[Discount] / Sqr(-[od].[Discount] * [od].[Discount] + 1))) > 1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Environment_newline_is_funcletized() : line_is_funcletized() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\Query\SimpleQueryJetTest.cs:riga 2703 - AssertSql( - @"@__NewLine_0=' -' (Nullable = false) (Size = 2) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr(1, [c].[CustomerID], @__NewLine_0, 0) > 0) OR (@__NewLine_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Sum_with_coalesce() : - AssertSql( - @"SELECT SUM(IIf(IsNull([p].[UnitPrice]), 0.0, [p].[UnitPrice])) -FROM [Products] AS [p] -WHERE [p].[ProductID] < 40"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_multi_level() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT TOP 3 [o].[OrderDate] AS [Date] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] < 10500) AND (@_outer_CustomerID = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_shadow() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_via_query_cache_nullable_type_reverse() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Filter_coalesce_operator() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE IIf(IsNull([c].[CompanyName]), [c].[ContactName], [c].[CompanyName]) = 'The Big Cheese'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_projection() : - AssertSql( - @"SELECT [c].[ContactName], [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_nested_collection_multi_level4() : - AssertSql( - @"SELECT IIf(IsNull(( - SELECT TOP 1 ( - SELECT COUNT(*) - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] > 10) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -)), 0, ( - SELECT TOP 1 ( - SELECT COUNT(*) - FROM [Order Details] AS [od] - WHERE ([od].[OrderID] > 10) AND ([o].[OrderID] = [od].[OrderID]) - ) - FROM [Orders] AS [o] - WHERE ([o].[OrderID] < 10500) AND ([c].[CustomerID] = [o].[CustomerID]) -)) AS [Order] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_same_collection_multiple() : - AssertSql( - @"SELECT [c3].[CustomerID], [c3].[Address], [c3].[City], [c3].[CompanyName], [c3].[ContactName], [c3].[ContactTitle], [c3].[Country], [c3].[Fax], [c3].[Phone], [c3].[PostalCode], [c3].[Region] -FROM (([Customers] AS [o] -INNER JOIN [Customers] AS [c2] ON [o].[CustomerID] = [c2].[CustomerID]) -INNER JOIN [Customers] AS [c3] ON [o].[CustomerID] = [c3].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Contains_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr(1, [c].[ContactName], [c].[ContactName], 0) > 0) OR ([c].[ContactName] = '')"); - - - -EntityFramework.Jet.FunctionalTests.DbFunctionsJetTest.Like_literal_with_escape() : - AssertSql( - @"SELECT COUNT(*) -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '!%'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_bird_first() : - AssertSql( - @"SELECT TOP 1 [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[CountryId] = 1) -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_bird_with_projection() : - AssertSql( - @"SELECT [a].[EagleId] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[CountryId] = 1)"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.Can_use_of_type_kiwi() : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE ([a].[Discriminator] = 'Kiwi') AND ([a].[CountryId] = 1)"); - - - -EntityFramework.Jet.FunctionalTests.NullSemanticsQueryJetTest.Where_equal_with_and_and_contains() : - AssertSql( - @"SELECT [e].[Id] -FROM [Entities1] AS [e] -WHERE ((Instr(1, [e].[NullableStringA], [e].[NullableStringB], 0) > 0) OR ([e].[NullableStringB] = '')) AND ([e].[BoolA] = True)"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Client_eval() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Projection_query_parameter() : - AssertSql( - @"@__ef_filter__TenantPrefix_0='F' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__ef_filter__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Materialized_query_parameter() : - AssertSql( - @"@__ef_filter__TenantPrefix_0='F' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__ef_filter__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Materialized_query_parameter_new_context() : - AssertSql( - @"@__ef_filter__TenantPrefix_0='B' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__ef_filter__TenantPrefix_0 + '%'", - // - @"@__ef_filter__TenantPrefix_0='T' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__ef_filter__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Count_query() : - AssertSql( - @"@__ef_filter__TenantPrefix_0='B' (Nullable = false) (Size = 1) - -SELECT COUNT(*) -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__ef_filter__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Included_one_to_many_query_with_client_eval() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -ORDER BY [p].[ProductID]", - // - @"SELECT [p1].[ProductID], [p1].[Discontinued], [p1].[ProductName], [p1].[SupplierID], [p1].[UnitPrice], [p1].[UnitsInStock] -FROM [Products] AS [p1]", - // - @"@__ef_filter___quantity_0='50' - -SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[Quantity] > @__ef_filter___quantity_0"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Materialized_query() : - AssertSql( - @"@__ef_filter__TenantPrefix_0='B' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__ef_filter__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_MethodCall() : - AssertSql( - @"@__LocalMethod2_0='m' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + @__LocalMethod2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_substring() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Mid([c].[City], 2, 2) = 'ea'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_SelectMany_subquery_with_filter_and_DefaultIfEmpty() : - AssertSql( - @"SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate], [c].[ContactName] -FROM ([Customers] AS [c] -LEFT JOIN ( - SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - WHERE [o].[OrderID] > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_complex_negated_expression_optimized() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[Discontinued] = False) AND ([p].[ProductID] < 60)) AND ([p].[ProductID] > 30)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.TrimStart_without_arguments_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE LTrim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_replace() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Replace([c].[City], 'Sea', 'Rea') = 'Reattle'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_concat_with_navigation1() : - AssertSql( - @"SELECT ([o].[CustomerID] + ' ') + [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_OrderBy_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Streaming_chained_sync_query() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"SELECT [y#Customer].[CustomerID], [y#Customer].[Address], [y#Customer].[City], [y#Customer].[CompanyName], [y#Customer].[ContactName], [y#Customer].[ContactTitle], [y#Customer].[Country], [y#Customer].[Fax], [y#Customer].[Phone], [y#Customer].[PostalCode], [y#Customer].[Region] -FROM [Customers] AS [y#Customer]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_dictionary_key_access_closure() : - AssertSql( - @"@__get_Item_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many_or_with_parameter() : - AssertSql( - @"@__london_0='London' (Nullable = false) (Size = 6) -@__lisboa_1='Lisboa' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN (@__london_0, 'Berlin', 'Seattle', @__lisboa_1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_cos() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (COS([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_entities() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_nested_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0", - // - @"@__city_Nested_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_comparison_to_nullable_bool() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE '%' + 'KI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Compare_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_sign() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Sgn([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_parameter() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE @__prm_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_Where_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_different_outer_elements_with_same_key() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple3() : - AssertSql( - @"SELECT [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_static_field_access_closure_via_query_cache() : - AssertSql( - @"@__StaticFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0", - // - @"@__StaticFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_division_on_decimal() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull([od].[Quantity] / 2.09),0,[od].[Quantity] / 2.09))) -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + [c].[ContactName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE [c].[ContactName] + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetimeoffset_now_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Any() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[OrderDate] = #10/24/2008 00:00:00#) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_day_of_year_component() : - AssertSql( - @"SELECT DatePart('y', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_via_query_cache_nullable_type() : - AssertSql( - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Compare_collection_navigation_with_itself() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND ([c].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_sin() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (SIN([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_MethodCall() : - AssertSql( - @"@__LocalMethod1_0='M' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE @__LocalMethod1_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_method_call_nullable_type_reverse_closure_via_query_cache() : - AssertSql( - @"@__city_NullableInt_0='1' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0", - // - @"@__city_NullableInt_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.No_orderby_added_for_fully_translated_manually_constructed_LOJ() : - AssertSql( - @"SELECT [e1].[City] AS [City1], [e2].[City] AS [City2] -FROM ([Employees] AS [e1] -LEFT JOIN [Employees] AS [e2] ON [e1].[EmployeeID] = [e2].[ReportsTo])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE 'M' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_named_tuple_item_closure() : - AssertSql( - @"@__predicateTuple_Item2_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__predicateTuple_Item2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_false() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_equals_on_matched_nullable_int_types() : - AssertSql( - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE @__nullableIntPrm_0 = [e].[ReportsTo]", - // - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__nullableIntPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_concat_with_navigation2() : - AssertSql( - @"SELECT ([o#Customer].[City] + ' ') + [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_client_side_negated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_static_property_access_closure_via_query_cache() : - AssertSql( - @"@__StaticPropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0", - // - @"@__StaticPropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_via_query_cache() : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0", - // - @"@__city_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_to_lower() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE LCase([c].[CustomerID]) = 'alfki'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_zero_length() : - AssertSql( - @"SELECT Mid([c].[ContactName], 3, 0) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_closure() : - AssertSql( - @"@__start_0='2' - -SELECT Mid([c].[ContactName], @__start_0 + 1, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_same_collection_force_alias_uniquefication() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM ([Orders] AS [o] -INNER JOIN [Orders] AS [o0] ON [o].[CustomerID] = [o0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_select() : - AssertSql( - @"SELECT [c].[ContactName], [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty_multiple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o1].[OrderID], [o1].[CustomerID], [o1].[EmployeeID], [o1].[OrderDate], [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM (([Customers] AS [c] -LEFT JOIN [Orders] AS [o1] ON [c].[CustomerID] = [o1].[CustomerID]) -LEFT JOIN [Orders] AS [o2] ON [c].[CustomerID] = [o2].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_chain() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'QUICK') AND ([o].[OrderDate] > #01/01/1998 00:00:00#)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_power() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[Discount]^2 > 0.05000000074505806"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_compare_to_with_parameter() : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure() : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_zero_startindex() : - AssertSql( - @"SELECT Mid([c].[ContactName], 1, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_nested_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0", - // - @"@__city_Nested_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty_Project() : - AssertSql( - @"SELECT [o].[OrderID] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Compare_to_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_take_count_works() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [o].* - FROM ([Orders] AS [o] - INNER JOIN ( - SELECT [c].* - FROM [Customers] AS [c] - WHERE [c].[CustomerID] = 'ALFKI' - ) AS [t] ON [o].[CustomerID] = [t].[CustomerID]) - WHERE ([o].[OrderID] > 690) AND ([o].[OrderID] < 710) -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_date_add_year_constant_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('yyyy', IIf(IsNull([o].[OrderDate]), NULL, DateAdd('yyyy', -1, [o].[OrderDate]))) = 1997"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_in_complex_predicate() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[ProductID] > 100) AND ([p].[Discontinued] = True)) OR ([p].[Discontinued] = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_exp() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (EXP([od].[Discount]) > 1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_guid_newguid() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE NewGuid() <> '00000000-0000-0000-0000-000000000000'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_utcnow() : - AssertSql( - @"@__myDatetime_0='2015-04-10T00:00:00' (DbType = DateTime) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Now() <> @__myDatetime_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.QueryType_with_nav_defining_query() : - AssertSql( - @"@__ef_filter___searchTerm_0='A' (Nullable = false) (Size = 1) -@__ef_filter___searchTerm_1='A' (Nullable = false) (Size = 1) - -SELECT [t].[CompanyName], [t].[OrderCount], [t].[SearchTerm] -FROM ( - SELECT [c].[CompanyName], ( - SELECT COUNT(*) - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ) AS [OrderCount], @__ef_filter___searchTerm_0 AS [SearchTerm] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[CompanyName] LIKE @__ef_filter___searchTerm_1 + '%' AND ([t].[OrderCount] > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [o].[OrderID] IS NOT NULL AND ([o].[CustomerID] = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_constant() : - AssertSql( - @"@__predicate_0='True' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE @__predicate_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_tan() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (TAN([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_de_morgan_and_optimizated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) OR ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_select_many() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -, [Employees] AS [e]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_now() : - AssertSql( - @"@__myDatetime_0='2015-04-10T00:00:00' (DbType = DateTime) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Now() <> @__myDatetime_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty2() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Employees] AS [e] -LEFT JOIN [Orders] AS [o] ON [e].[EmployeeID] = [o].[EmployeeID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Replace_with_emptystring() : - AssertSql( - @"SELECT Replace([c].[ContactName], 'ari', '') -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_date_add_year() : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderDate]), NULL, DateAdd('yyyy', 1, [o].[OrderDate])) AS [OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_false_shadow() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_compare_with_parameter() : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.TrimEnd_without_arguments_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE RTrim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Exists_Inequality() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE (([o].[OrderDate] <> #10/24/2008 00:00:00#) OR [o].[OrderDate] IS NULL) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Exists() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[OrderDate] = #10/24/2008 00:00:00#) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_GroupJoin_DefaultIfEmpty_Where() : - AssertSql( - @"SELECT [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM (([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -LEFT JOIN [Orders] AS [o2] ON [c].[CustomerID] = [o2].[CustomerID]) -WHERE [o2].[OrderID] IS NOT NULL AND ([o2].[CustomerID] = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_negated_twice() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_atan() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Atn([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_entity_equality_one_element_SingleOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.No_orderby_added_for_client_side_GroupJoin_dependent_to_principal_LOJ() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID] AS [Id1], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_asin() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Atn([od].[Discount] / Sqr(-[od].[Discount] * [od].[Discount] + 1)) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_method_call_closure_via_query_cache() : - AssertSql( - @"@__GetCity_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0", - // - @"@__GetCity_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + 'b'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_SelectMany_subquery_with_filter() : - AssertSql( - @"SELECT [c].[ContactName], [t].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT [o].* - FROM [Orders] AS [o] - WHERE [o].[OrderID] > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_composite_key() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON ([c].[CustomerID] = [o].[CustomerID]) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Trim_without_argument_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Trim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_dayOfYear_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('y', [o].[OrderDate]) = 68"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_indexer_closure() : - AssertSql( - @"@__p_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_different_outer_elements_with_same_key_projected_from_another_entity() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM (([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -LEFT JOIN [Customers] AS [c] ON [od#Order].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Not_Exists() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE False = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_new_instance_field_access_closure_via_query_cache() : - AssertSql( - @"@__InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0", - // - @"@__InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_subquery_involving_join_binds_to_correct_table() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] > 11000) AND [o].[OrderID] IN ( - SELECT [od].[OrderID] - FROM ([Order Details] AS [od] - INNER JOIN [Products] AS [od#Product] ON [od].[ProductID] = [od#Product].[ProductID]) - WHERE [od#Product].[ProductName] = 'Chai' -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_division_on_decimal_no_significant_digits() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull([od].[Quantity] / 2.0),0,[od].[Quantity] / 2.0))) -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_acos() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND ((1.5707963267948966 + Atn(-[od].[Discount] / Sqr(-[od].[Discount] * [od].[Discount] + 1))) > 1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Environment_newline_is_funcletized() : line_is_funcletized() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\Query\SimpleQueryJetTest.cs:riga 2703 - AssertSql( - @"@__NewLine_0=' -' (Nullable = false) (Size = 2) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr(1, [c].[CustomerID], @__NewLine_0, 0) > 0) OR (@__NewLine_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_shadow() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_via_query_cache_nullable_type_reverse() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_projection() : - AssertSql( - @"SELECT [c].[ContactName], [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_same_collection_multiple() : - AssertSql( - @"SELECT [c3].[CustomerID], [c3].[Address], [c3].[City], [c3].[CompanyName], [c3].[ContactName], [c3].[ContactTitle], [c3].[Country], [c3].[Fax], [c3].[Phone], [c3].[PostalCode], [c3].[Region] -FROM (([Customers] AS [o] -INNER JOIN [Customers] AS [c2] ON [o].[CustomerID] = [c2].[CustomerID]) -INNER JOIN [Customers] AS [c3] ON [o].[CustomerID] = [c3].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Projection_query() : - AssertSql( - @"@__ef_filter__TenantPrefix_0='B' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__ef_filter__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Client_eval() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Projection_query_parameter() : - AssertSql( - @"@__ef_filter__TenantPrefix_0='F' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__ef_filter__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Materialized_query_parameter() : - AssertSql( - @"@__ef_filter__TenantPrefix_0='F' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__ef_filter__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Materialized_query_parameter_new_context() : - AssertSql( - @"@__ef_filter__TenantPrefix_0='B' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__ef_filter__TenantPrefix_0 + '%'", - // - @"@__ef_filter__TenantPrefix_0='T' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__ef_filter__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Count_query() : - AssertSql( - @"@__ef_filter__TenantPrefix_0='B' (Nullable = false) (Size = 1) - -SELECT COUNT(*) -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__ef_filter__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Included_one_to_many_query_with_client_eval() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -ORDER BY [p].[ProductID]", - // - @"SELECT [p1].[ProductID], [p1].[Discontinued], [p1].[ProductName], [p1].[SupplierID], [p1].[UnitPrice], [p1].[UnitsInStock] -FROM [Products] AS [p1]", - // - @"@__ef_filter___quantity_0='50' - -SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[Quantity] > @__ef_filter___quantity_0"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Materialized_query() : - AssertSql( - @"@__ef_filter__TenantPrefix_0='B' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__ef_filter__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_truncate() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE Int([od].[UnitPrice]) > 10.0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE [c].[ContactName] + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0", - // - @"@__city_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_constant() : - AssertSql( - @"SELECT Mid([c].[ContactName], 2, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_MethodCall() : - AssertSql( - @"@__LocalMethod2_0='m' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + @__LocalMethod2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_substring() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Mid([c].[City], 2, 2) = 'ea'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_SelectMany_subquery_with_filter_and_DefaultIfEmpty() : - AssertSql( - @"SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate], [c].[ContactName] -FROM ([Customers] AS [c] -LEFT JOIN ( - SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - WHERE [o].[OrderID] > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_complex_negated_expression_optimized() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[Discontinued] = False) AND ([p].[ProductID] < 60)) AND ([p].[ProductID] > 30)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.TrimStart_without_arguments_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE LTrim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_replace() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Replace([c].[City], 'Sea', 'Rea') = 'Reattle'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_concat_with_navigation1() : - AssertSql( - @"SELECT ([o].[CustomerID] + ' ') + [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_OrderBy_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Streaming_chained_sync_query() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"SELECT [y#Customer].[CustomerID], [y#Customer].[Address], [y#Customer].[City], [y#Customer].[CompanyName], [y#Customer].[ContactName], [y#Customer].[ContactTitle], [y#Customer].[Country], [y#Customer].[Fax], [y#Customer].[Phone], [y#Customer].[PostalCode], [y#Customer].[Region] -FROM [Customers] AS [y#Customer]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_dictionary_key_access_closure() : - AssertSql( - @"@__get_Item_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many_or_with_parameter() : - AssertSql( - @"@__london_0='London' (Nullable = false) (Size = 6) -@__lisboa_1='Lisboa' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN (@__london_0, 'Berlin', 'Seattle', @__lisboa_1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_cos() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (COS([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_entities() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_nested_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0", - // - @"@__city_Nested_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_comparison_to_nullable_bool() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE '%' + 'KI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Compare_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_sign() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Sgn([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_parameter() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE @__prm_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_Where_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_different_outer_elements_with_same_key() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple3() : - AssertSql( - @"SELECT [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_static_field_access_closure_via_query_cache() : - AssertSql( - @"@__StaticFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0", - // - @"@__StaticFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_division_on_decimal() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull([od].[Quantity] / 2.09),0,[od].[Quantity] / 2.09))) -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + [c].[ContactName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE [c].[ContactName] + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetimeoffset_now_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Any() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[OrderDate] = #10/24/2008 00:00:00#) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_day_of_year_component() : - AssertSql( - @"SELECT DatePart('y', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_via_query_cache_nullable_type() : - AssertSql( - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Compare_collection_navigation_with_itself() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND ([c].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_sin() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (SIN([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_MethodCall() : - AssertSql( - @"@__LocalMethod1_0='M' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE @__LocalMethod1_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_method_call_nullable_type_reverse_closure_via_query_cache() : - AssertSql( - @"@__city_NullableInt_0='1' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0", - // - @"@__city_NullableInt_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.No_orderby_added_for_fully_translated_manually_constructed_LOJ() : - AssertSql( - @"SELECT [e1].[City] AS [City1], [e2].[City] AS [City2] -FROM ([Employees] AS [e1] -LEFT JOIN [Employees] AS [e2] ON [e1].[EmployeeID] = [e2].[ReportsTo])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE 'M' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_named_tuple_item_closure() : - AssertSql( - @"@__predicateTuple_Item2_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__predicateTuple_Item2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_false() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_equals_on_matched_nullable_int_types() : - AssertSql( - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE @__nullableIntPrm_0 = [e].[ReportsTo]", - // - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__nullableIntPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_concat_with_navigation2() : - AssertSql( - @"SELECT ([o#Customer].[City] + ' ') + [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_client_side_negated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_static_property_access_closure_via_query_cache() : - AssertSql( - @"@__StaticPropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0", - // - @"@__StaticPropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_via_query_cache() : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0", - // - @"@__city_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_to_lower() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE LCase([c].[CustomerID]) = 'alfki'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_zero_length() : - AssertSql( - @"SELECT Mid([c].[ContactName], 3, 0) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_closure() : - AssertSql( - @"@__start_0='2' - -SELECT Mid([c].[ContactName], @__start_0 + 1, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_same_collection_force_alias_uniquefication() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM ([Orders] AS [o] -INNER JOIN [Orders] AS [o0] ON [o].[CustomerID] = [o0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_select() : - AssertSql( - @"SELECT [c].[ContactName], [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty_multiple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o1].[OrderID], [o1].[CustomerID], [o1].[EmployeeID], [o1].[OrderDate], [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM (([Customers] AS [c] -LEFT JOIN [Orders] AS [o1] ON [c].[CustomerID] = [o1].[CustomerID]) -LEFT JOIN [Orders] AS [o2] ON [c].[CustomerID] = [o2].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_chain() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'QUICK') AND ([o].[OrderDate] > #01/01/1998 00:00:00#)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_power() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[Discount]^2 > 0.05000000074505806"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_compare_to_with_parameter() : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure() : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_zero_startindex() : - AssertSql( - @"SELECT Mid([c].[ContactName], 1, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_nested_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0", - // - @"@__city_Nested_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty_Project() : - AssertSql( - @"SELECT [o].[OrderID] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Compare_to_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_take_count_works() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [o].* - FROM ([Orders] AS [o] - INNER JOIN ( - SELECT [c].* - FROM [Customers] AS [c] - WHERE [c].[CustomerID] = 'ALFKI' - ) AS [t] ON [o].[CustomerID] = [t].[CustomerID]) - WHERE ([o].[OrderID] > 690) AND ([o].[OrderID] < 710) -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_date_add_year_constant_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('yyyy', IIf(IsNull([o].[OrderDate]), NULL, DateAdd('yyyy', -1, [o].[OrderDate]))) = 1997"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_in_complex_predicate() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[ProductID] > 100) AND ([p].[Discontinued] = True)) OR ([p].[Discontinued] = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_exp() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (EXP([od].[Discount]) > 1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_guid_newguid() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE NewGuid() <> '00000000-0000-0000-0000-000000000000'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_utcnow() : - AssertSql( - @"@__myDatetime_0='2015-04-10T00:00:00' (DbType = DateTime) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Now() <> @__myDatetime_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.QueryType_with_nav_defining_query() : - AssertSql( - @"@__ef_filter___searchTerm_0='A' (Nullable = false) (Size = 1) -@__ef_filter___searchTerm_1='A' (Nullable = false) (Size = 1) - -SELECT [t].[CompanyName], [t].[OrderCount], [t].[SearchTerm] -FROM ( - SELECT [c].[CompanyName], ( - SELECT COUNT(*) - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ) AS [OrderCount], @__ef_filter___searchTerm_0 AS [SearchTerm] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[CompanyName] LIKE @__ef_filter___searchTerm_1 + '%' AND ([t].[OrderCount] > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [o].[OrderID] IS NOT NULL AND ([o].[CustomerID] = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_constant() : - AssertSql( - @"@__predicate_0='True' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE @__predicate_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_tan() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (TAN([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_de_morgan_and_optimizated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) OR ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_select_many() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -, [Employees] AS [e]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_now() : - AssertSql( - @"@__myDatetime_0='2015-04-10T00:00:00' (DbType = DateTime) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Now() <> @__myDatetime_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty2() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Employees] AS [e] -LEFT JOIN [Orders] AS [o] ON [e].[EmployeeID] = [o].[EmployeeID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Replace_with_emptystring() : - AssertSql( - @"SELECT Replace([c].[ContactName], 'ari', '') -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_date_add_year() : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderDate]), NULL, DateAdd('yyyy', 1, [o].[OrderDate])) AS [OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_false_shadow() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_compare_with_parameter() : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.TrimEnd_without_arguments_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE RTrim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Exists_Inequality() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE (([o].[OrderDate] <> #10/24/2008 00:00:00#) OR [o].[OrderDate] IS NULL) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Exists() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[OrderDate] = #10/24/2008 00:00:00#) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_GroupJoin_DefaultIfEmpty_Where() : - AssertSql( - @"SELECT [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM (([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -LEFT JOIN [Orders] AS [o2] ON [c].[CustomerID] = [o2].[CustomerID]) -WHERE [o2].[OrderID] IS NOT NULL AND ([o2].[CustomerID] = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_negated_twice() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_atan() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Atn([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_entity_equality_one_element_SingleOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.No_orderby_added_for_client_side_GroupJoin_dependent_to_principal_LOJ() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID] AS [Id1], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_asin() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Atn([od].[Discount] / Sqr(-[od].[Discount] * [od].[Discount] + 1)) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_method_call_closure_via_query_cache() : - AssertSql( - @"@__GetCity_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0", - // - @"@__GetCity_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + 'b'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_SelectMany_subquery_with_filter() : - AssertSql( - @"SELECT [c].[ContactName], [t].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT [o].* - FROM [Orders] AS [o] - WHERE [o].[OrderID] > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_composite_key() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON ([c].[CustomerID] = [o].[CustomerID]) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Trim_without_argument_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Trim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_dayOfYear_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('y', [o].[OrderDate]) = 68"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_indexer_closure() : - AssertSql( - @"@__p_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_different_outer_elements_with_same_key_projected_from_another_entity() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM (([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -LEFT JOIN [Customers] AS [c] ON [od#Order].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Not_Exists() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE False = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_new_instance_field_access_closure_via_query_cache() : - AssertSql( - @"@__InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0", - // - @"@__InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_subquery_involving_join_binds_to_correct_table() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] > 11000) AND [o].[OrderID] IN ( - SELECT [od].[OrderID] - FROM ([Order Details] AS [od] - INNER JOIN [Products] AS [od#Product] ON [od].[ProductID] = [od#Product].[ProductID]) - WHERE [od#Product].[ProductName] = 'Chai' -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_division_on_decimal_no_significant_digits() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull([od].[Quantity] / 2.0),0,[od].[Quantity] / 2.0))) -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_acos() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND ((1.5707963267948966 + Atn(-[od].[Discount] / Sqr(-[od].[Discount] * [od].[Discount] + 1))) > 1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Environment_newline_is_funcletized() : line_is_funcletized() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\Query\SimpleQueryJetTest.cs:riga 2703 - AssertSql( - @"@__NewLine_0=' -' (Nullable = false) (Size = 2) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr(1, [c].[CustomerID], @__NewLine_0, 0) > 0) OR (@__NewLine_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_shadow() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_via_query_cache_nullable_type_reverse() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_projection() : - AssertSql( - @"SELECT [c].[ContactName], [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_same_collection_multiple() : - AssertSql( - @"SELECT [c3].[CustomerID], [c3].[Address], [c3].[City], [c3].[CompanyName], [c3].[ContactName], [c3].[ContactTitle], [c3].[Country], [c3].[Fax], [c3].[Phone], [c3].[PostalCode], [c3].[Region] -FROM (([Customers] AS [o] -INNER JOIN [Customers] AS [c2] ON [o].[CustomerID] = [c2].[CustomerID]) -INNER JOIN [Customers] AS [c3] ON [o].[CustomerID] = [c3].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Projection_query() : - AssertSql( - @"@__ef_filter__TenantPrefix_0='B' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__ef_filter__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Client_eval() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.Projection_query_parameter() : - AssertSql( - @"@__ef_filter__TenantPrefix_0='F' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__ef_filter__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.DbFunctionsJetTest.Like_literal_with_escape() : - AssertSql( - @"SELECT COUNT(*) -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '!%'"); - - - -EntityFramework.Jet.FunctionalTests.DbFunctionsJetTest.Like_literal() : - AssertSql( - @"SELECT COUNT(*) -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%M%'"); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.SelectMany_navigation_comparison1() : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.Correlated_nested_two_levels_up_subquery_doesnt_project_unnecessary_columns_in_top_level() : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.Key_equality_using_property_method_and_member_expression3() : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.Take_Select_Navigation() : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_tuple_item_closure() : - AssertSql( - @"@__predicateTuple_Item2_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__predicateTuple_Item2_0"); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.Correlated_subquery_doesnt_project_unnecessary_columns_in_top_level() : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Exists_Constant() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE False = True)"); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.Project_collection_navigation_composed() : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_Identity() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + [c].[ContactName]"); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.Navigations_compared_to_each_other3() : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.Key_equality_using_property_method_required2() : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_MethodCall() : - AssertSql( - @"@__LocalMethod2_0='m' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + @__LocalMethod2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_join_select() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_substring() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Mid([c].[City], 2, 2) = 'ea'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_SelectMany_subquery_with_filter_and_DefaultIfEmpty() : - AssertSql( - @"SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate], [c].[ContactName] -FROM ([Customers] AS [c] -LEFT JOIN ( - SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - WHERE [o].[OrderID] > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_complex_negated_expression_optimized() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[Discontinued] = False) AND ([p].[ProductID] < 60)) AND ([p].[ProductID] > 30)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.TrimStart_without_arguments_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE LTrim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_replace() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Replace([c].[City], 'Sea', 'Rea') = 'Reattle'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_concat_with_navigation1() : - AssertSql( - @"SELECT ([o].[CustomerID] + ' ') + [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_OrderBy_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Streaming_chained_sync_query() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"SELECT [y#Customer].[CustomerID], [y#Customer].[Address], [y#Customer].[City], [y#Customer].[CompanyName], [y#Customer].[ContactName], [y#Customer].[ContactTitle], [y#Customer].[Country], [y#Customer].[Fax], [y#Customer].[Phone], [y#Customer].[PostalCode], [y#Customer].[Region] -FROM [Customers] AS [y#Customer]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_dictionary_key_access_closure() : - AssertSql( - @"@__get_Item_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_select_many_or_with_parameter() : - AssertSql( - @"@__london_0='London' (Nullable = false) (Size = 6) -@__lisboa_1='Lisboa' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN (@__london_0, 'Berlin', 'Seattle', @__lisboa_1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_cos() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (COS([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_entities() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_nested_property_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0", - // - @"@__city_Nested_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_comparison_to_nullable_bool() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE '%' + 'KI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Compare_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_sign() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Sgn([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_parameter() : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE @__prm_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_Where_Count() : - AssertSql( - @"SELECT COUNT(*) -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_different_outer_elements_with_same_key() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple3() : - AssertSql( - @"SELECT [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_static_field_access_closure_via_query_cache() : - AssertSql( - @"@__StaticFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0", - // - @"@__StaticFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_division_on_decimal() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull([od].[Quantity] / 2.09),0,[od].[Quantity] / 2.09))) -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + [c].[ContactName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_Column() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE [c].[ContactName] + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetimeoffset_now_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Any() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[OrderDate] = #10/24/2008 00:00:00#) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_datetime_day_of_year_component() : - AssertSql( - @"SELECT DatePart('y', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_via_query_cache_nullable_type() : - AssertSql( - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Compare_collection_navigation_with_itself() : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND ([c].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_sin() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (SIN([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_MethodCall() : - AssertSql( - @"@__LocalMethod1_0='M' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE @__LocalMethod1_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_method_call_nullable_type_reverse_closure_via_query_cache() : - AssertSql( - @"@__city_NullableInt_0='1' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0", - // - @"@__city_NullableInt_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.No_orderby_added_for_fully_translated_manually_constructed_LOJ() : - AssertSql( - @"SELECT [e1].[City] AS [City1], [e2].[City] AS [City2] -FROM ([Employees] AS [e1] -LEFT JOIN [Employees] AS [e2] ON [e1].[EmployeeID] = [e2].[ReportsTo])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_StartsWith_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE 'M' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_named_tuple_item_closure() : - AssertSql( - @"@__predicateTuple_Item2_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__predicateTuple_Item2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_false() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_equals_on_matched_nullable_int_types() : - AssertSql( - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE @__nullableIntPrm_0 = [e].[ReportsTo]", - // - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__nullableIntPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_concat_with_navigation2() : - AssertSql( - @"SELECT ([o#Customer].[City] + ' ') + [o#Customer].[City] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple2() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_client_side_negated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_static_property_access_closure_via_query_cache() : - AssertSql( - @"@__StaticPropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0", - // - @"@__StaticPropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_via_query_cache() : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0", - // - @"@__city_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_string_to_lower() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE LCase([c].[CustomerID]) = 'alfki'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_zero_length() : - AssertSql( - @"SELECT Mid([c].[ContactName], 3, 0) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_closure() : - AssertSql( - @"@__start_0='2' - -SELECT Mid([c].[ContactName], @__start_0 + 1, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_same_collection_force_alias_uniquefication() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM ([Orders] AS [o] -INNER JOIN [Orders] AS [o0] ON [o].[CustomerID] = [o0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_select() : - AssertSql( - @"SELECT [c].[ContactName], [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty_multiple() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o1].[OrderID], [o1].[CustomerID], [o1].[EmployeeID], [o1].[OrderDate], [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM (([Customers] AS [c] -LEFT JOIN [Orders] AS [o1] ON [c].[CustomerID] = [o1].[CustomerID]) -LEFT JOIN [Orders] AS [o2] ON [c].[CustomerID] = [o2].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_chain() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'QUICK') AND ([o].[OrderDate] > #01/01/1998 00:00:00#)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_power() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[Discount]^2 > 0.05000000074505806"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_compare_to_with_parameter() : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure() : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Substring_with_zero_startindex() : - AssertSql( - @"SELECT Mid([c].[ContactName], 1, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_nested_field_access_closure_via_query_cache() : - AssertSql( - @"@__city_Nested_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0", - // - @"@__city_Nested_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty_Project() : - AssertSql( - @"SELECT [o].[OrderID] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_Compare_to_nested() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_take_count_works() : - AssertSql( - @"@__p_0='5' - -SELECT COUNT(*) -FROM ( - SELECT TOP @__p_0 [o].* - FROM ([Orders] AS [o] - INNER JOIN ( - SELECT [c].* - FROM [Customers] AS [c] - WHERE [c].[CustomerID] = 'ALFKI' - ) AS [t] ON [o].[CustomerID] = [t].[CustomerID]) - WHERE ([o].[OrderID] > 690) AND ([o].[OrderID] < 710) -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_date_add_year_constant_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('yyyy', IIf(IsNull([o].[OrderDate]), NULL, DateAdd('yyyy', -1, [o].[OrderDate]))) = 1997"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_in_complex_predicate() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[ProductID] > 100) AND ([p].[Discontinued] = True)) OR ([p].[Discontinued] = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_simple() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_exp() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (EXP([od].[Discount]) > 1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_guid_newguid() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE NewGuid() <> '00000000-0000-0000-0000-000000000000'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_utcnow() : - AssertSql( - @"@__myDatetime_0='2015-04-10T00:00:00' (DbType = DateTime) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Now() <> @__myDatetime_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.QueryType_with_nav_defining_query() : - AssertSql( - @"@__ef_filter___searchTerm_0='A' (Nullable = false) (Size = 1) -@__ef_filter___searchTerm_1='A' (Nullable = false) (Size = 1) - -SELECT [t].[CompanyName], [t].[OrderCount], [t].[SearchTerm] -FROM ( - SELECT [c].[CompanyName], ( - SELECT COUNT(*) - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ) AS [OrderCount], @__ef_filter___searchTerm_0 AS [SearchTerm] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[CompanyName] LIKE @__ef_filter___searchTerm_1 + '%' AND ([t].[OrderCount] > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [o].[OrderID] IS NOT NULL AND ([o].[CustomerID] = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_constant() : - AssertSql( - @"@__predicate_0='True' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE @__predicate_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_tan() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (TAN([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_de_morgan_and_optimizated() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) OR ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_select_many() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -, [Employees] AS [e]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_now() : - AssertSql( - @"@__myDatetime_0='2015-04-10T00:00:00' (DbType = DateTime) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Now() <> @__myDatetime_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_DefaultIfEmpty2() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Employees] AS [e] -LEFT JOIN [Orders] AS [o] ON [e].[EmployeeID] = [o].[EmployeeID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Replace_with_emptystring() : - AssertSql( - @"SELECT Replace([c].[ContactName], 'ari', '') -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Select_expression_date_add_year() : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderDate]), NULL, DateAdd('yyyy', 1, [o].[OrderDate])) AS [OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_false_shadow() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_compare_with_parameter() : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.TrimEnd_without_arguments_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE RTrim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Exists_Inequality() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE (([o].[OrderDate] <> #10/24/2008 00:00:00#) OR [o].[OrderDate] IS NULL) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Exists() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[OrderDate] = #10/24/2008 00:00:00#) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_GroupJoin_DefaultIfEmpty_Where() : - AssertSql( - @"SELECT [o2].[OrderID], [o2].[CustomerID], [o2].[EmployeeID], [o2].[OrderDate] -FROM (([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -LEFT JOIN [Orders] AS [o2] ON [c].[CustomerID] = [o2].[CustomerID]) -WHERE [o2].[OrderID] IS NOT NULL AND ([o2].[CustomerID] = 'ALFKI')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_negated_twice() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_atan() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Atn([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_query_composition_entity_equality_one_element_SingleOrDefault() : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.No_orderby_added_for_client_side_GroupJoin_dependent_to_principal_LOJ() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID] AS [Id1], [o].[EmployeeID], [o].[OrderDate], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_asin() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Atn([od].[Discount] / Sqr(-[od].[Discount] * [od].[Discount] + 1)) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_method_call_closure_via_query_cache() : - AssertSql( - @"@__GetCity_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0", - // - @"@__GetCity_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.String_EndsWith_Literal() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + 'b'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_SelectMany_subquery_with_filter() : - AssertSql( - @"SELECT [c].[ContactName], [t].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT [o].* - FROM [Orders] AS [o] - WHERE [o].[OrderID] > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_composite_key() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON ([c].[CustomerID] = [o].[CustomerID]) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Trim_without_argument_in_predicate() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Trim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_datetime_dayOfYear_component() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('y', [o].[OrderDate]) = 68"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_indexer_closure() : - AssertSql( - @"@__p_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_with_different_outer_elements_with_same_key_projected_from_another_entity() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice], [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM (([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -LEFT JOIN [Customers] AS [c] ON [od#Order].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_Join_Not_Exists() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE False = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_new_instance_field_access_closure_via_query_cache() : - AssertSql( - @"@__InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0", - // - @"@__InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Contains_with_subquery_involving_join_binds_to_correct_table() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[OrderID] > 11000) AND [o].[OrderID] IN ( - SELECT [od].[OrderID] - FROM ([Order Details] AS [od] - INNER JOIN [Products] AS [od#Product] ON [od].[ProductID] = [od#Product].[ProductID]) - WHERE [od#Product].[ProductName] = 'Chai' -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Average_with_division_on_decimal_no_significant_digits() : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull([od].[Quantity] / 2.0),0,[od].[Quantity] / 2.0))) -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_math_acos() : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND ((1.5707963267948966 + Atn(-[od].[Discount] / Sqr(-[od].[Discount] * [od].[Discount] + 1))) > 1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Environment_newline_is_funcletized() : line_is_funcletized() in C:\Develop\ForPlanning\EntityFrameworkCore.Jet\test\EFCore.Jet.FunctionalTests\Query\SimpleQueryJetTest.cs:riga 2703 - AssertSql( - @"@__NewLine_0=' -' (Nullable = false) (Size = 2) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr(1, [c].[CustomerID], @__NewLine_0, 0) > 0) OR (@__NewLine_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_bool_member_shadow() : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Where_simple_closure_via_query_cache_nullable_type_reverse() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_customers_orders_projection() : - AssertSql( - @"SELECT [c].[ContactName], [o].[OrderID] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.Join_same_collection_multiple() : - AssertSql( - @"SELECT [c3].[CustomerID], [c3].[Address], [c3].[City], [c3].[CompanyName], [c3].[ContactName], [c3].[ContactTitle], [c3].[Country], [c3].[Fax], [c3].[Phone], [c3].[PostalCode], [c3].[Region] -FROM (([Customers] AS [o] -INNER JOIN [Customers] AS [c2] ON [o].[CustomerID] = [c2].[CustomerID]) -INNER JOIN [Customers] AS [c3] ON [o].[CustomerID] = [c3].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.GroupJoin_Where() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_empty_key_Aggregate() : - AssertSql( - @"SELECT SUM([t].[OrderID]) -FROM ( - SELECT [o].*, 1 AS [Key] - FROM [Orders] AS [o] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_with_aggregate_through_navigation_property() : - AssertSql( - @"SELECT [c].[OrderID], [c].[CustomerID], [c].[EmployeeID], [c].[OrderDate] -FROM [Orders] AS [c] -ORDER BY [c].[EmployeeID]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_Shadow() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE ([e].[Title] = 'Sales Representative') AND ([e].[EmployeeID] = 1) -ORDER BY [e].[Title]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_join_anonymous() : - AssertSql( - @"SELECT [order0].[OrderID], [order0].[CustomerID], [order0].[EmployeeID], [order0].[OrderDate], [orderDetail0].[OrderID], [orderDetail0].[ProductID], [orderDetail0].[Discount], [orderDetail0].[Quantity], [orderDetail0].[UnitPrice] -FROM ([Orders] AS [order0] -LEFT JOIN [Order Details] AS [orderDetail0] ON [order0].[OrderID] = [orderDetail0].[OrderID]) -ORDER BY [order0].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_join_default_if_empty_anonymous() : - AssertSql( - @"SELECT [order0].[OrderID], [order0].[CustomerID], [order0].[EmployeeID], [order0].[OrderDate], [orderDetail0].[OrderID], [orderDetail0].[ProductID], [orderDetail0].[Discount], [orderDetail0].[Quantity], [orderDetail0].[UnitPrice] -FROM ([Orders] AS [order0] -LEFT JOIN [Order Details] AS [orderDetail0] ON [order0].[OrderID] = [orderDetail0].[OrderID]) -ORDER BY [order0].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.OrderBy_Take_GroupBy() : - AssertSql( - @"@__p_0='50' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderDate] -) AS [t] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.Select_nested_collection_with_groupby() : - AssertSql( - @"SELECT ( - SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Orders] AS [o0] - WHERE [c].[CustomerID] = [o0].[CustomerID]), - True, - False - ) - FROM (SELECT COUNT(*) FROM MSysAccessStorage) -), [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o1].[OrderID] -FROM [Orders] AS [o1] -WHERE @_outer_CustomerID = [o1].[CustomerID] -ORDER BY [o1].[OrderID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o1].[OrderID] -FROM [Orders] AS [o1] -WHERE @_outer_CustomerID = [o1].[CustomerID] -ORDER BY [o1].[OrderID]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o1].[OrderID] -FROM [Orders] AS [o1] -WHERE @_outer_CustomerID = [o1].[CustomerID] -ORDER BY [o1].[OrderID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [o1].[OrderID] -FROM [Orders] AS [o1] -WHERE @_outer_CustomerID = [o1].[CustomerID] -ORDER BY [o1].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_DateTimeOffset_Property() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL -ORDER BY DatePart('m', [o].[OrderDate])"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_empty_key_Aggregate_Key() : - AssertSql( - @"SELECT SUM([t].[OrderID]) AS [Sum] -FROM ( - SELECT [o].*, 1 AS [Key] - FROM [Orders] AS [o] -) AS [t]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_Shadow2() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE ([e].[Title] = 'Sales Representative') AND ([e].[EmployeeID] = 1) -ORDER BY [e].[Title]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_first() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_anonymous_with_where() : - AssertSql( - @"SELECT [c].[City], [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[Country] IN ('Argentina', 'Austria', 'Brazil', 'France', 'Germany', 'USA') -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.Join_GroupBy_entity_ToList() : - AssertSql( - @"@__p_0='5' -@__p_1='50' - -SELECT [t1].[CustomerID], [t1].[Address], [t1].[City], [t1].[CompanyName], [t1].[ContactName], [t1].[ContactTitle], [t1].[Country], [t1].[Fax], [t1].[Phone], [t1].[PostalCode], [t1].[Region], [t2].[OrderID], [t2].[CustomerID], [t2].[EmployeeID], [t2].[OrderDate] -FROM (( - SELECT TOP @__p_0 [c0].[CustomerID], [c0].[Address], [c0].[City], [c0].[CompanyName], [c0].[ContactName], [c0].[ContactTitle], [c0].[Country], [c0].[Fax], [c0].[Phone], [c0].[PostalCode], [c0].[Region] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] -) AS [t1] -INNER JOIN ( - SELECT TOP @__p_1 [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] - FROM [Orders] AS [o0] - ORDER BY [o0].[OrderID] -) AS [t2] ON [t1].[CustomerID] = [t2].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupJoin_GroupBy_Aggregate_3() : - AssertSql( - @"SELECT [o].[CustomerID] AS [Key], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Average] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID]) -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.Join_GroupBy_Aggregate_on_key() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [t].[Key], [t].[LastOrderID] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT [o].[CustomerID] AS [Key], MAX([o].[OrderID]) AS [LastOrderID] - FROM [Orders] AS [o] - GROUP BY [o].[CustomerID] - HAVING COUNT(*) > 5 -) AS [t] ON [c].[CustomerID] = [t].[Key])"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_filter_count_OrderBy_count_Select_sum() : - AssertSql( - @"SELECT [o].[CustomerID] AS [Key], COUNT(*) AS [Count], SUM([o].[OrderID]) AS [Sum] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID] -HAVING COUNT(*) > 4 -ORDER BY COUNT(*), [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_aggregate_Pushdown() : - AssertSql( - @"@__p_0='20' -@__p_1='4' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [e].[CustomerID] AS [c] - FROM [Orders] AS [e] - GROUP BY [e].[CustomerID] - HAVING COUNT(*) > 10 - ORDER BY [e].[CustomerID] -) AS [t] -ORDER BY [t].[c] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_with_aggregate_through_navigation_property() : - AssertSql( - @"SELECT [c].[OrderID], [c].[CustomerID], [c].[EmployeeID], [c].[OrderDate] -FROM [Orders] AS [c] -ORDER BY [c].[EmployeeID]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupJoin_GroupBy_Aggregate_4() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Value], MAX([c].[City]) AS [Max] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -GROUP BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupJoin_GroupBy_Aggregate() : - AssertSql( - @"SELECT [o].[CustomerID] AS [Key], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Average] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -WHERE [o].[OrderID] IS NOT NULL -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.Join_GroupBy_Aggregate_in_subquery() : - AssertSql( - @"SELECT [c0].[CustomerID], [c0].[Address], [c0].[City], [c0].[CompanyName], [c0].[ContactName], [c0].[ContactTitle], [c0].[Country], [c0].[Fax], [c0].[Phone], [c0].[PostalCode], [c0].[Region], [t0].[CustomerID], [t0].[LastOrderID] -FROM ([Customers] AS [c0] -INNER JOIN ( - SELECT [o1].[CustomerID], MAX([o1].[OrderID]) AS [LastOrderID] - FROM [Orders] AS [o1] - GROUP BY [o1].[CustomerID] - HAVING COUNT(*) > 5 -) AS [t0] ON [c0].[CustomerID] = [t0].[CustomerID])", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10400"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.SelectMany_GroupBy_Aggregate() : - AssertSql( - @"SELECT [c#Orders].[EmployeeID] AS [Key], COUNT(*) AS [c] -FROM ([Customers] AS [c] -INNER JOIN [Orders] AS [c#Orders] ON [c].[CustomerID] = [c#Orders].[CustomerID]) -GROUP BY [c#Orders].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_anonymous_Select_Sum_Min_Max_Avg() : - AssertSql( - @"SELECT SUM([o].[OrderID]) AS [Sum], MIN([o].[OrderID]) AS [Min], MAX([o].[OrderID]) AS [Max], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Avg] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_OrderBy_count() : - AssertSql( - @"SELECT [o].[CustomerID] AS [Key], COUNT(*) AS [Count] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID] -ORDER BY COUNT(*), [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_Composite_Select_LongCount() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID], [o].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.Select_anonymous_GroupBy_Aggregate() : - AssertSql( - @"SELECT MIN([o].[OrderDate]) AS [Min], MAX([o].[OrderDate]) AS [Max], SUM([o].[OrderID]) AS [Sum], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Avg] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10300 -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_Composite_Select_Key_Sum_Min_Max_Avg() : - AssertSql( - @"SELECT [o].[CustomerID], [o].[EmployeeID], SUM([o].[OrderID]) AS [Sum], MIN([o].[OrderID]) AS [Min], MAX([o].[OrderID]) AS [Max], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Avg] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID], [o].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_Constant_Select_Sum_Min_Key_Max_Avg() : - AssertSql( - @"SELECT SUM([t].[OrderID]) AS [Sum], MIN([t].[OrderID]) AS [Min], [t].[Key], MAX([t].[OrderID]) AS [Max], AVG(CDbl(IIf(IsNull([t].[OrderID]),0,[t].[OrderID]))) AS [Avg] -FROM ( - SELECT [o].*, 2 AS [Key] - FROM [Orders] AS [o] -) AS [t] -GROUP BY [t].[Key]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_anonymous_Select_Average() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_Shadow() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE ([e].[Title] = 'Sales Representative') AND ([e].[EmployeeID] = 1) -ORDER BY [e].[Title]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.OrderBy_Take_GroupBy_Aggregate() : - AssertSql( - @"@__p_0='500' - -SELECT MIN([t].[OrderID]) -FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] -GROUP BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.Self_join_GroupBy_Aggregate() : - AssertSql( - @"SELECT [o].[CustomerID] AS [Key], AVG(CDbl(IIf(IsNull([o2].[OrderID]),0,[o2].[OrderID]))) AS [Count] -FROM ([Orders] AS [o] -INNER JOIN [Orders] AS [o2] ON [o].[OrderID] = [o2].[OrderID]) -WHERE [o].[OrderID] < 10400 -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_Property_Select_Average() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_anonymous_Select_LongCount() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupJoin_GroupBy_Aggregate_2() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Key], MAX([c].[City]) AS [Max] -FROM ([Customers] AS [c] -LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]) -GROUP BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_Property_Select_LongCount() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_Composite_Select_Sum_Min_part_Key_flattened_Max_Avg() : - AssertSql( - @"SELECT SUM([o].[OrderID]) AS [Sum], MIN([o].[OrderID]) AS [Min], [o].[CustomerID], MAX([o].[OrderID]) AS [Max], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Avg] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID], [o].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_optional_navigation_member_Aggregate() : - AssertSql( - @"SELECT [o#Customer].[Country], COUNT(*) AS [Count] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [o#Customer] ON [o].[CustomerID] = [o#Customer].[CustomerID]) -GROUP BY [o#Customer].[Country]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_join_anonymous() : - AssertSql( - @"SELECT [order0].[OrderID], [order0].[CustomerID], [order0].[EmployeeID], [order0].[OrderDate], [orderDetail0].[OrderID], [orderDetail0].[ProductID], [orderDetail0].[Discount], [orderDetail0].[Quantity], [orderDetail0].[UnitPrice] -FROM ([Orders] AS [order0] -LEFT JOIN [Order Details] AS [orderDetail0] ON [order0].[OrderID] = [orderDetail0].[OrderID]) -ORDER BY [order0].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_Sum_constant_cast() : - AssertSql( - @"SELECT SUM(1) -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_Property_Select_Sum_Min_Key_Max_Avg() : - AssertSql( - @"SELECT SUM([o].[OrderID]) AS [Sum], MIN([o].[OrderID]) AS [Min], [o].[CustomerID] AS [Key], MAX([o].[OrderID]) AS [Max], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Avg] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_required_navigation_member_Aggregate() : - AssertSql( - @"SELECT [od#Order].[CustomerID] AS [CustomerId], COUNT(*) AS [Count] -FROM ([Order Details] AS [od] -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -GROUP BY [od#Order].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_Property_anonymous_element_selector_LongCount() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_Composite_Select_Sum_Min_Key_Max_Avg() : - AssertSql( - @"SELECT SUM([o].[OrderID]) AS [Sum], MIN([o].[OrderID]) AS [Min], [o].[CustomerID], [o].[EmployeeID], MAX([o].[OrderID]) AS [Max], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Avg] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID], [o].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_Property_Select_Key_Average() : - AssertSql( - @"SELECT [o].[CustomerID] AS [Key], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Average] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_join_default_if_empty_anonymous() : - AssertSql( - @"SELECT [order0].[OrderID], [order0].[CustomerID], [order0].[EmployeeID], [order0].[OrderDate], [orderDetail0].[OrderID], [orderDetail0].[ProductID], [orderDetail0].[Discount], [orderDetail0].[Quantity], [orderDetail0].[UnitPrice] -FROM ([Orders] AS [order0] -LEFT JOIN [Order Details] AS [orderDetail0] ON [order0].[OrderID] = [orderDetail0].[OrderID]) -ORDER BY [order0].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_OrderBy_key() : - AssertSql( - @"SELECT [o].[CustomerID] AS [Key], COUNT(*) AS [c] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID] -ORDER BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_Composite_Select_Average() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID], [o].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_Composite_Select_Dto_Sum_Min_Key_flattened_Max_Avg() : - AssertSql( - @"SELECT SUM([o].[OrderID]) AS [Sum], MIN([o].[OrderID]) AS [Min], [o].[CustomerID], [o].[EmployeeID], MAX([o].[OrderID]) AS [Max], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Avg] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID], [o].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.Join_GroupBy_Aggregate() : - AssertSql( - @"SELECT [c].[CustomerID] AS [Key], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Count] -FROM ([Orders] AS [o] -INNER JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID]) -GROUP BY [c].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_Property_Select_Sum_Min_Max_Avg() : - AssertSql( - @"SELECT SUM([o].[OrderID]) AS [Sum], MIN([o].[OrderID]) AS [Min], MAX([o].[OrderID]) AS [Max], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Avg] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.OrderBy_Take_GroupBy() : - AssertSql( - @"@__p_0='50' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderDate] -) AS [t] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.Join_GroupBy_Aggregate_single_join() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [t].[CustomerID], [t].[LastOrderID] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT [o].[CustomerID], MAX([o].[OrderID]) AS [LastOrderID] - FROM [Orders] AS [o] - GROUP BY [o].[CustomerID] - HAVING COUNT(*) > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_Property_anonymous_element_selector_Average() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_Property_Select_Key_Sum_Min_Max_Avg() : - AssertSql( - @"SELECT [o].[CustomerID] AS [Key], SUM([o].[OrderID]) AS [Sum], MIN([o].[OrderID]) AS [Min], MAX([o].[OrderID]) AS [Max], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Avg] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.Select_nested_collection_with_groupby() : - AssertSql( - @"SELECT ( - SELECT IIf( - EXISTS ( - SELECT 1 - FROM [Orders] AS [o0] - WHERE [c].[CustomerID] = [o0].[CustomerID]), - True, - False - ) - FROM (SELECT COUNT(*) FROM MSysAccessStorage) -), [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%'", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o1].[OrderID] -FROM [Orders] AS [o1] -WHERE @_outer_CustomerID = [o1].[CustomerID] -ORDER BY [o1].[OrderID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o1].[OrderID] -FROM [Orders] AS [o1] -WHERE @_outer_CustomerID = [o1].[CustomerID] -ORDER BY [o1].[OrderID]", - // - @"@_outer_CustomerID='ANTON' (Nullable = false) (Size = 5) - -SELECT [o1].[OrderID] -FROM [Orders] AS [o1] -WHERE @_outer_CustomerID = [o1].[CustomerID] -ORDER BY [o1].[OrderID]", - // - @"@_outer_CustomerID='AROUT' (Nullable = false) (Size = 5) - -SELECT [o1].[OrderID] -FROM [Orders] AS [o1] -WHERE @_outer_CustomerID = [o1].[CustomerID] -ORDER BY [o1].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_Property_scalar_element_selector_Sum_Min_Max_Avg() : - AssertSql( - @"SELECT SUM([o].[OrderID]) AS [Sum], MIN([o].[OrderID]) AS [Min], MAX([o].[OrderID]) AS [Max], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Avg] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_DateTimeOffset_Property() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL -ORDER BY DatePart('m', [o].[OrderDate])"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_OrderBy_count_Select_sum() : - AssertSql( - @"SELECT [o].[CustomerID] AS [Key], SUM([o].[OrderID]) AS [Sum] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID] -ORDER BY COUNT(*), [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_filter_key() : - AssertSql( - @"SELECT [o].[CustomerID] AS [Key], COUNT(*) AS [c] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID] -HAVING [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_Property_scalar_element_selector_LongCount() : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupJoin_GroupBy_Aggregate_5() : - AssertSql( - @"SELECT [o].[OrderID] AS [Value], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Average] -FROM ([Orders] AS [o] -LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID]) -GROUP BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.Join_GroupBy_Aggregate_with_another_join() : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [t].[CustomerID], [t].[LastOrderID], [o0].[OrderID] -FROM (([Customers] AS [c] -INNER JOIN ( - SELECT [o].[CustomerID], MAX([o].[OrderID]) AS [LastOrderID] - FROM [Orders] AS [o] - GROUP BY [o].[CustomerID] - HAVING COUNT(*) > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID]) -INNER JOIN [Orders] AS [o0] ON [c].[CustomerID] = [o0].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.Distinct_GroupBy_OrderBy_key() : - AssertSql( - @"SELECT [t].[CustomerID] AS [Key], COUNT(*) AS [c] -FROM ( - SELECT DISTINCT [o].* - FROM [Orders] AS [o] -) AS [t] -GROUP BY [t].[CustomerID] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_Shadow2() : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE ([e].[Title] = 'Sales Representative') AND ([e].[EmployeeID] = 1) -ORDER BY [e].[Title]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_Property_Select_Key_LongCount() : - AssertSql( - @"SELECT [o].[CustomerID] AS [Key], COUNT(*) AS [LongCount] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_Composite_Select_Key_Average() : - AssertSql( - @"SELECT [o].[CustomerID], [o].[EmployeeID], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Average] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID], [o].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_Property_anonymous_element_selector_Sum_Min_Max_Avg() : - AssertSql( - @"SELECT SUM([o].[OrderID]) AS [Sum], MIN([o].[EmployeeID]) AS [Min], MAX([o].[EmployeeID]) AS [Max], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Avg] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_with_result_selector() : - AssertSql( - @"SELECT SUM([o].[OrderID]) AS [Sum], MIN([o].[OrderID]) AS [Min], MAX([o].[OrderID]) AS [Max], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Avg] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_Composite_Select_Sum_Min_Key_flattened_Max_Avg() : - AssertSql( - @"SELECT SUM([o].[OrderID]) AS [Sum], MIN([o].[OrderID]) AS [Min], [o].[CustomerID], [o].[EmployeeID], MAX([o].[OrderID]) AS [Max], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Avg] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID], [o].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_after_predicate_Constant_Select_Sum_Min_Key_Max_Avg() : - AssertSql( - @"SELECT SUM([t].[OrderID]) AS [Sum], MIN([t].[OrderID]) AS [Min], [t].[Key] AS [Random], MAX([t].[OrderID]) AS [Max], AVG(CDbl(IIf(IsNull([t].[OrderID]),0,[t].[OrderID]))) AS [Avg] -FROM ( - SELECT [o].*, 2 AS [Key] - FROM [Orders] AS [o] - WHERE [o].[OrderID] > 10500 -) AS [t] -GROUP BY [t].[Key]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_first() : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_multi_navigation_members_Aggregate() : - AssertSql( - @"SELECT [od#Order].[CustomerID], [od#Product].[ProductName], COUNT(*) AS [Count] -FROM (([Order Details] AS [od] -INNER JOIN [Products] AS [od#Product] ON [od].[ProductID] = [od#Product].[ProductID]) -INNER JOIN [Orders] AS [od#Order] ON [od].[OrderID] = [od#Order].[OrderID]) -GROUP BY [od#Order].[CustomerID], [od#Product].[ProductName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_anonymous_with_where() : - AssertSql( - @"SELECT [c].[City], [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[Country] IN ('Argentina', 'Austria', 'Brazil', 'France', 'Germany', 'USA') -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.Join_GroupBy_Aggregate_multijoins() : - AssertSql( - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [t].[CustomerID], [t].[LastOrderID] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT [o].[CustomerID], MAX([o].[OrderID]) AS [LastOrderID] - FROM [Orders] AS [o] - GROUP BY [o].[CustomerID] - HAVING COUNT(*) > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_Property_scalar_element_selector_Average() : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_Composite_Select_Key_LongCount() : - AssertSql( - @"SELECT [o].[CustomerID], [o].[EmployeeID], COUNT(*) AS [LongCount] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID], [o].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.Join_GroupBy_entity_ToList() : - AssertSql( - @"@__p_0='5' -@__p_1='50' - -SELECT [t1].[CustomerID], [t1].[Address], [t1].[City], [t1].[CompanyName], [t1].[ContactName], [t1].[ContactTitle], [t1].[Country], [t1].[Fax], [t1].[Phone], [t1].[PostalCode], [t1].[Region], [t2].[OrderID], [t2].[CustomerID], [t2].[EmployeeID], [t2].[OrderDate] -FROM (( - SELECT TOP @__p_0 [c0].[CustomerID], [c0].[Address], [c0].[City], [c0].[CompanyName], [c0].[ContactName], [c0].[ContactTitle], [c0].[Country], [c0].[Fax], [c0].[Phone], [c0].[PostalCode], [c0].[Region] - FROM [Customers] AS [c0] - ORDER BY [c0].[CustomerID] -) AS [t1] -INNER JOIN ( - SELECT TOP @__p_1 [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] - FROM [Orders] AS [o0] - ORDER BY [o0].[OrderID] -) AS [t2] ON [t1].[CustomerID] = [t2].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.GroupBy_Composite_Select_Sum_Min_Max_Avg() : - AssertSql( - @"SELECT SUM([o].[OrderID]) AS [Sum], MIN([o].[OrderID]) AS [Min], MAX([o].[OrderID]) AS [Max], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Avg] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID], [o].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[CustomerID] AS [Key], COUNT(*) AS [Count], SUM([o].[OrderID]) AS [Sum] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID] -HAVING COUNT(*) > 4 -ORDER BY COUNT(*), [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='20' -@__p_1='4' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [e].[CustomerID] AS [c] - FROM [Orders] AS [e] - GROUP BY [e].[CustomerID] - HAVING COUNT(*) > 10 - ORDER BY [e].[CustomerID] -) AS [t] -ORDER BY [t].[c] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[OrderID], [c].[CustomerID], [c].[EmployeeID], [c].[OrderDate] -FROM [Orders] AS [c] -ORDER BY [c].[EmployeeID]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertContains(String[] expected) : - AssertSql( - @"SELECT [c0].[CustomerID], [c0].[Address], [c0].[City], [c0].[CompanyName], [c0].[ContactName], [c0].[ContactTitle], [c0].[Country], [c0].[Fax], [c0].[Phone], [c0].[PostalCode], [c0].[Region], [t0].[CustomerID], [t0].[LastOrderID] -FROM ([Customers] AS [c0] -INNER JOIN ( - SELECT [o1].[CustomerID], MAX([o1].[OrderID]) AS [LastOrderID] - FROM [Orders] AS [o1] - GROUP BY [o1].[CustomerID] - HAVING COUNT(*) > 5 -) AS [t0] ON [c0].[CustomerID] = [t0].[CustomerID])", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10400"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT SUM([o].[OrderID]) AS [Sum], MIN([o].[OrderID]) AS [Min], MAX([o].[OrderID]) AS [Max], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Avg] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[CustomerID] AS [Key], COUNT(*) AS [Count] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID] -ORDER BY COUNT(*), [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID], [o].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT MIN([o].[OrderDate]) AS [Min], MAX([o].[OrderDate]) AS [Max], SUM([o].[OrderID]) AS [Sum], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Avg] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10300 -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[CustomerID], [o].[EmployeeID], SUM([o].[OrderID]) AS [Sum], MIN([o].[OrderID]) AS [Min], MAX([o].[OrderID]) AS [Max], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Avg] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID], [o].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT SUM([t].[OrderID]) AS [Sum], MIN([t].[OrderID]) AS [Min], [t].[Key], MAX([t].[OrderID]) AS [Max], AVG(CDbl(IIf(IsNull([t].[OrderID]),0,[t].[OrderID]))) AS [Avg] -FROM ( - SELECT [o].*, 2 AS [Key] - FROM [Orders] AS [o] -) AS [t] -GROUP BY [t].[Key]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE ([e].[Title] = 'Sales Representative') AND ([e].[EmployeeID] = 1) -ORDER BY [e].[Title]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='500' - -SELECT MIN([t].[OrderID]) -FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] -GROUP BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT SUM([o].[OrderID]) AS [Sum], MIN([o].[OrderID]) AS [Min], [o].[CustomerID], MAX([o].[OrderID]) AS [Max], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Avg] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID], [o].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT SUM(1) -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT SUM([o].[OrderID]) AS [Sum], MIN([o].[OrderID]) AS [Min], [o].[CustomerID] AS [Key], MAX([o].[OrderID]) AS [Max], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Avg] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT SUM([o].[OrderID]) AS [Sum], MIN([o].[OrderID]) AS [Min], [o].[CustomerID], [o].[EmployeeID], MAX([o].[OrderID]) AS [Max], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Avg] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID], [o].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[CustomerID] AS [Key], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Average] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[CustomerID] AS [Key], COUNT(*) AS [c] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID] -ORDER BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID], [o].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT SUM([o].[OrderID]) AS [Sum], MIN([o].[OrderID]) AS [Min], [o].[CustomerID], [o].[EmployeeID], MAX([o].[OrderID]) AS [Max], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Avg] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID], [o].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT SUM([o].[OrderID]) AS [Sum], MIN([o].[OrderID]) AS [Min], MAX([o].[OrderID]) AS [Max], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Avg] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='50' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderDate] -) AS [t] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[CustomerID] AS [Key], SUM([o].[OrderID]) AS [Sum], MIN([o].[OrderID]) AS [Min], MAX([o].[OrderID]) AS [Max], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Avg] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT SUM([o].[OrderID]) AS [Sum], MIN([o].[OrderID]) AS [Min], MAX([o].[OrderID]) AS [Max], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Avg] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL -ORDER BY DatePart('m', [o].[OrderDate])"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[CustomerID] AS [Key], SUM([o].[OrderID]) AS [Sum] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID] -ORDER BY COUNT(*), [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[CustomerID] AS [Key], COUNT(*) AS [c] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID] -HAVING [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE ([e].[Title] = 'Sales Representative') AND ([e].[EmployeeID] = 1) -ORDER BY [e].[Title]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[CustomerID] AS [Key], COUNT(*) AS [LongCount] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[CustomerID], [o].[EmployeeID], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Average] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID], [o].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT SUM([o].[OrderID]) AS [Sum], MIN([o].[EmployeeID]) AS [Min], MAX([o].[EmployeeID]) AS [Max], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Avg] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT SUM([o].[OrderID]) AS [Sum], MIN([o].[OrderID]) AS [Min], MAX([o].[OrderID]) AS [Max], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Avg] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT SUM([o].[OrderID]) AS [Sum], MIN([o].[OrderID]) AS [Min], [o].[CustomerID], [o].[EmployeeID], MAX([o].[OrderID]) AS [Max], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Avg] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID], [o].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT SUM([t].[OrderID]) AS [Sum], MIN([t].[OrderID]) AS [Min], [t].[Key] AS [Random], MAX([t].[OrderID]) AS [Max], AVG(CDbl(IIf(IsNull([t].[OrderID]),0,[t].[OrderID]))) AS [Avg] -FROM ( - SELECT [o].*, 2 AS [Key] - FROM [Orders] AS [o] - WHERE [o].[OrderID] > 10500 -) AS [t] -GROUP BY [t].[Key]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[City], [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[Country] IN ('Argentina', 'Austria', 'Brazil', 'France', 'Germany', 'USA') -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertContains(String[] expected) : - AssertSql( - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [t].[CustomerID], [t].[LastOrderID] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT [o].[CustomerID], MAX([o].[OrderID]) AS [LastOrderID] - FROM [Orders] AS [o] - GROUP BY [o].[CustomerID] - HAVING COUNT(*) > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[CustomerID], [o].[EmployeeID], COUNT(*) AS [LongCount] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID], [o].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT SUM([o].[OrderID]) AS [Sum], MIN([o].[OrderID]) AS [Min], MAX([o].[OrderID]) AS [Max], AVG(CDbl(IIf(IsNull([o].[OrderID]),0,[o].[OrderID]))) AS [Avg] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID], [o].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__predicateTuple_Item2_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__predicateTuple_Item2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c1].[CustomerID] AS [Id1], [c2].[CustomerID] AS [Id2] -FROM [Customers] AS [c1] -, [Customers] AS [c2] -WHERE [c1].[CustomerID] LIKE 'ALFKI' + '%' AND ([c1].[CustomerID] = [c2].[CustomerID]) -ORDER BY [c1].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c1].[CustomerID], [c1].[Address], [c1].[City], [c1].[CompanyName], [c1].[ContactName], [c1].[ContactTitle], [c1].[Country], [c1].[Fax], [c1].[Phone], [c1].[PostalCode], [c1].[Region] -FROM [Customers] AS [c1] -WHERE [c1].[CompanyName] LIKE 'A' + '%'", - // - @"SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE [c2].[CompanyName] LIKE 'B' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__city_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0", - // - @"@__city_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE False = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Sqr([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) AND ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + [c].[ContactName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE Int([od].[UnitPrice]) > 10.0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE [c].[ContactName] + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_1='8' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactTitle], [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__city_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0", - // - @"@__city_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o1].[OrderID] AS [Id1], [o2].[OrderID] AS [Id2] -FROM [Orders] AS [o1] -, [Orders] AS [o2] -WHERE [o1].[CustomerID] LIKE 'A' + '%' AND (([o1].[CustomerID] = [o2].[CustomerID]) OR ([o1].[CustomerID] IS NULL AND [o2].[CustomerID] IS NULL)) -ORDER BY [o1].[OrderID], [o2].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[City] AS [City0] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE ([c].[City] = [e].[City]) OR ([c].[City] IS NULL AND [e].[City] IS NULL) -ORDER BY [e].[City], [c].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT Mid([c].[ContactName], 2, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__LocalMethod2_0='m' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + @__LocalMethod2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Mid([c].[City], 2, 2) = 'ea'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[Discontinued] = False) AND ([p].[ProductID] < 60)) AND ([p].[ProductID] > 30)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE LTrim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Replace([c].[City], 'Sea', 'Rea') = 'Reattle'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertContains(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"SELECT [y#Customer].[CustomerID], [y#Customer].[Address], [y#Customer].[City], [y#Customer].[CompanyName], [y#Customer].[ContactName], [y#Customer].[ContactTitle], [y#Customer].[Country], [y#Customer].[Fax], [y#Customer].[Phone], [y#Customer].[PostalCode], [y#Customer].[Region] -FROM [Customers] AS [y#Customer]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__get_Item_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__london_0='London' (Nullable = false) (Size = 6) -@__lisboa_1='Lisboa' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN (@__london_0, 'Berlin', 'Seattle', @__lisboa_1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o1].[OrderID] AS [Id1], [o2].[OrderID] AS [Id2] -FROM [Orders] AS [o1] -, [Orders] AS [o2] -WHERE [o1].[CustomerID] LIKE 'A' + '%' AND (([o1].[CustomerID] = [o2].[CustomerID]) OR ([o1].[CustomerID] IS NULL AND [o2].[CustomerID] IS NULL)) -ORDER BY [o1].[OrderID], [o2].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (COS([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__city_Nested_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0", - // - @"@__city_Nested_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE '%' + 'KI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Sgn([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE @__prm_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id1], [o].[OrderID] AS [Id2] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE ([c].[CustomerID] = 'ALFKI') AND ([c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID], [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[ProductID] IN ( - SELECT TOP 20 [p].[ProductID] - FROM [Products] AS [p] - ORDER BY [p].[ProductID] -) AND [od].[OrderID] IN ( - SELECT TOP 10 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__StaticFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0", - // - @"@__StaticFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull([od].[Quantity] / 2.09),0,[od].[Quantity] / 2.09))) -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + [c].[ContactName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE [c].[ContactName] + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID] AS [Id] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[OrderDate] = #10/24/2008 00:00:00#) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT DatePart('y', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_1='10' - -SELECT TOP @__p_1 [o].[EmployeeID], [o].[City], [o].[Country], [o].[FirstName], [o].[ReportsTo], [o].[Title] -FROM [Employees] AS [o] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND ([c].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (SIN([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__LocalMethod1_0='M' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE @__LocalMethod1_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__city_NullableInt_0='1' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0", - // - @"@__city_NullableInt_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[EmployeeID] > @__city_NullableInt_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertContains(String[] expected) : - AssertSql( - @"SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10300", - // - @"@_outer_OrderID='10248' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10249' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10250' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10251' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10252' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10253' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10254' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10255' - -SELECT CSng(IIf(IsNull(AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount])))),0,AVG(CSng(IIf(IsNull([od0].[Discount]),0,[od0].[Discount]))))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE 'M' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__predicateTuple_Item2_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__predicateTuple_Item2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE @__nullableIntPrm_0 = [e].[ReportsTo]", - // - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__nullableIntPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__StaticPropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0", - // - @"@__StaticPropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0", - // - @"@__city_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE LCase([c].[CustomerID]) = 'alfki'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT Mid([c].[ContactName], 3, 0) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__start_0='2' - -SELECT Mid([c].[ContactName], @__start_0 + 1, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'QUICK') AND ([o].[OrderDate] > #01/01/1998 00:00:00#)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[Discount]^2 > 0.05000000074505806"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT Mid([c].[ContactName], 1, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='10' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate], [t0].[EmployeeID], [t0].[City], [t0].[Country], [t0].[FirstName], [t0].[ReportsTo], [t0].[Title] -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] -, ( - SELECT TOP 5 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__city_Nested_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0", - // - @"@__city_Nested_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('yyyy', IIf(IsNull([o].[OrderDate]), NULL, DateAdd('yyyy', -1, [o].[OrderDate]))) = 1997"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[ProductID] > 100) AND ([p].[Discontinued] = True)) OR ([p].[Discontinued] = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT DISTINCT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] -) AS [t] -ORDER BY [t].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (EXP([od].[Discount]) > 1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE NewGuid() <> '00000000-0000-0000-0000-000000000000'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__myDatetime_0='2015-04-10T00:00:00' (DbType = DateTime) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Now() <> @__myDatetime_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__ef_filter___searchTerm_0='A' (Nullable = false) (Size = 1) -@__ef_filter___searchTerm_1='A' (Nullable = false) (Size = 1) - -SELECT [t].[CompanyName], [t].[OrderCount], [t].[SearchTerm] -FROM ( - SELECT [c].[CompanyName], ( - SELECT COUNT(*) - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ) AS [OrderCount], @__ef_filter___searchTerm_0 AS [SearchTerm] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[CompanyName] LIKE @__ef_filter___searchTerm_1 + '%' AND ([t].[OrderCount] > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__predicate_0='True' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE @__predicate_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (TAN([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) OR ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__myDatetime_0='2015-04-10T00:00:00' (DbType = DateTime) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Now() <> @__myDatetime_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT Replace([c].[ContactName], 'ari', '') -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderDate]), NULL, DateAdd('yyyy', 1, [o].[OrderDate])) AS [OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='5' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE RTrim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE (([o].[OrderDate] <> #10/24/2008 00:00:00#) OR [o].[OrderDate] IS NULL) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[OrderDate] = #10/24/2008 00:00:00#) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='5' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT DISTINCT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] -) AS [t] -ORDER BY [t].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Atn([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Atn([od].[Discount] / Sqr(-[od].[Discount] * [od].[Discount] + 1)) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__GetCity_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0", - // - @"@__GetCity_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + 'b'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Trim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('y', [o].[OrderDate]) = 68"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE False = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0", - // - @"@__InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='1' - -SELECT [e].[EmployeeID] -FROM [Employees] AS [e] -ORDER BY [e].[EmployeeID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT AVG(CCur(IIf(IsNull([od].[Quantity] / 2.0),0,[od].[Quantity] / 2.0))) -FROM [Order Details] AS [od]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND ((1.5707963267948966 + Atn(-[od].[Discount] / Sqr(-[od].[Discount] * [od].[Discount] + 1))) > 1)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__NewLine_0=' -' (Nullable = false) (Size = 2) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr(1, [c].[CustomerID], @__NewLine_0, 0) > 0) OR (@__NewLine_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID] + [c].[City] AS [A] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] + [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[ContactName] -) AS [t] -ORDER BY [t].[ContactName] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID] + [c].[City] AS [Property] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] + [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='5' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a' - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[CustomerID] AS [Key], COUNT(*) AS [Count], SUM([o].[OrderID]) AS [Sum] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID] -HAVING COUNT(*) > 4 -ORDER BY COUNT(*), [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='20' -@__p_1='4' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [e].[CustomerID] AS [c] - FROM [Orders] AS [e] - GROUP BY [e].[CustomerID] - HAVING COUNT(*) > 10 - ORDER BY [e].[CustomerID] -) AS [t] -ORDER BY [t].[c] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[OrderID], [c].[CustomerID], [c].[EmployeeID], [c].[OrderDate] -FROM [Orders] AS [c] -ORDER BY [c].[EmployeeID]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertContains(String[] expected) : - AssertSql( - @"SELECT [c0].[CustomerID], [c0].[Address], [c0].[City], [c0].[CompanyName], [c0].[ContactName], [c0].[ContactTitle], [c0].[Country], [c0].[Fax], [c0].[Phone], [c0].[PostalCode], [c0].[Region], [t0].[CustomerID], [t0].[LastOrderID] -FROM ([Customers] AS [c0] -INNER JOIN ( - SELECT [o1].[CustomerID], MAX([o1].[OrderID]) AS [LastOrderID] - FROM [Orders] AS [o1] - GROUP BY [o1].[CustomerID] - HAVING COUNT(*) > 5 -) AS [t0] ON [c0].[CustomerID] = [t0].[CustomerID])", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10400"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[CustomerID] AS [Key], COUNT(*) AS [Count] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID] -ORDER BY COUNT(*), [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID], [o].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE ([e].[Title] = 'Sales Representative') AND ([e].[EmployeeID] = 1) -ORDER BY [e].[Title]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='500' - -SELECT MIN([t].[OrderID]) -FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] -GROUP BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[CustomerID] AS [Key], COUNT(*) AS [c] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID] -ORDER BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='50' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderDate] -) AS [t] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL -ORDER BY DatePart('m', [o].[OrderDate])"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[CustomerID] AS [Key], SUM([o].[OrderID]) AS [Sum] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID] -ORDER BY COUNT(*), [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[CustomerID] AS [Key], COUNT(*) AS [c] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID] -HAVING [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT COUNT(*) -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE ([e].[Title] = 'Sales Representative') AND ([e].[EmployeeID] = 1) -ORDER BY [e].[Title]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[CustomerID] AS [Key], COUNT(*) AS [LongCount] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[City], [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[Country] IN ('Argentina', 'Austria', 'Brazil', 'France', 'Germany', 'USA') -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertContains(String[] expected) : - AssertSql( - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [t].[CustomerID], [t].[LastOrderID] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT [o].[CustomerID], MAX([o].[OrderID]) AS [LastOrderID] - FROM [Orders] AS [o] - GROUP BY [o].[CustomerID] - HAVING COUNT(*) > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[CustomerID], [o].[EmployeeID], COUNT(*) AS [LongCount] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID], [o].[EmployeeID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[CustomerID] AS [Key], COUNT(*) AS [Count], SUM([o].[OrderID]) AS [Sum] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID] -HAVING COUNT(*) > 4 -ORDER BY COUNT(*), [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='20' -@__p_1='4' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [e].[CustomerID] AS [c] - FROM [Orders] AS [e] - GROUP BY [e].[CustomerID] - HAVING COUNT(*) > 10 - ORDER BY [e].[CustomerID] -) AS [t] -ORDER BY [t].[c] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[OrderID], [c].[CustomerID], [c].[EmployeeID], [c].[OrderDate] -FROM [Orders] AS [c] -ORDER BY [c].[EmployeeID]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertContains(String[] expected) : - AssertSql( - @"SELECT [c0].[CustomerID], [c0].[Address], [c0].[City], [c0].[CompanyName], [c0].[ContactName], [c0].[ContactTitle], [c0].[Country], [c0].[Fax], [c0].[Phone], [c0].[PostalCode], [c0].[Region], [t0].[CustomerID], [t0].[LastOrderID] -FROM ([Customers] AS [c0] -INNER JOIN ( - SELECT [o1].[CustomerID], MAX([o1].[OrderID]) AS [LastOrderID] - FROM [Orders] AS [o1] - GROUP BY [o1].[CustomerID] - HAVING COUNT(*) > 5 -) AS [t0] ON [c0].[CustomerID] = [t0].[CustomerID])", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10400"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[CustomerID] AS [Key], COUNT(*) AS [Count] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID] -ORDER BY COUNT(*), [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE ([e].[Title] = 'Sales Representative') AND ([e].[EmployeeID] = 1) -ORDER BY [e].[Title]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='500' - -SELECT MIN([t].[OrderID]) -FROM ( - SELECT TOP @__p_0 [o].* - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] -GROUP BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='50' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate] -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderDate] -) AS [t] -ORDER BY [t].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[CustomerID] AS [Key], COUNT(*) AS [c] -FROM [Orders] AS [o] -GROUP BY [o].[CustomerID] -HAVING [o].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE ([e].[Title] = 'Sales Representative') AND ([e].[EmployeeID] = 1) -ORDER BY [e].[Title]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = 'ALFKI' -ORDER BY [o].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[City], [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[Country] IN ('Argentina', 'Austria', 'Brazil', 'France', 'Germany', 'USA') -ORDER BY [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertContains(String[] expected) : - AssertSql( - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [t].[CustomerID], [t].[LastOrderID] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT [o].[CustomerID], MAX([o].[OrderID]) AS [LastOrderID] - FROM [Orders] AS [o] - GROUP BY [o].[CustomerID] - HAVING COUNT(*) > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='20' -@__p_1='4' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [e].[CustomerID] AS [c] - FROM [Orders] AS [e] - GROUP BY [e].[CustomerID] - HAVING COUNT(*) > 10 - ORDER BY [e].[CustomerID] -) AS [t] -ORDER BY [t].[c] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[OrderID], [c].[CustomerID], [c].[EmployeeID], [c].[OrderDate] -FROM [Orders] AS [c] -ORDER BY [c].[EmployeeID]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertContains(String[] expected) : - AssertSql( - @"SELECT [c0].[CustomerID], [c0].[Address], [c0].[City], [c0].[CompanyName], [c0].[ContactName], [c0].[ContactTitle], [c0].[Country], [c0].[Fax], [c0].[Phone], [c0].[PostalCode], [c0].[Region], [t0].[CustomerID], [t0].[LastOrderID] -FROM ([Customers] AS [c0] -INNER JOIN ( - SELECT [o1].[CustomerID], MAX([o1].[OrderID]) AS [LastOrderID] - FROM [Orders] AS [o1] - GROUP BY [o1].[CustomerID] - HAVING COUNT(*) > 5 -) AS [t0] ON [c0].[CustomerID] = [t0].[CustomerID])", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10400"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertContains(String[] expected) : - AssertSql( - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate] -FROM [Orders] AS [o0]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [t].[CustomerID], [t].[LastOrderID] -FROM ([Customers] AS [c] -INNER JOIN ( - SELECT [o].[CustomerID], MAX([o].[OrderID]) AS [LastOrderID] - FROM [Orders] AS [o] - GROUP BY [o].[CustomerID] - HAVING COUNT(*) > 5 -) AS [t] ON [c].[CustomerID] = [t].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.DbFunctionsJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT COUNT(*) -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '!%'"); - - - -EntityFramework.Jet.FunctionalTests.DbFunctionsJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT COUNT(*) -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%M%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) AND ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + [c].[ContactName]"); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__LocalMethod2_0='m' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + @__LocalMethod2_0"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.AssertContains(String[] expected) : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[SupplierID], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM ([Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID])", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__get_Item_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__london_0='London' (Nullable = false) (Size = 6) -@__lisboa_1='Lisboa' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE [c].[City] IN (@__london_0, 'Berlin', 'Seattle', @__lisboa_1)"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[CountryId] = 1) -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE ([a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[CountryId] = 1)) AND ([a].[CountryId] = 1) -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT TOP 1 [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[Group], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[CountryId] = 1) -ORDER BY [a].[Species]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [a].[EagleId] -FROM [Animal] AS [a] -WHERE [a].[Discriminator] IN ('Kiwi', 'Eagle') AND ([a].[CountryId] = 1)"); - - - -EntityFramework.Jet.FunctionalTests.FiltersInheritanceJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [a].[Species], [a].[CountryId], [a].[Discriminator], [a].[Name], [a].[EagleId], [a].[IsFlightless], [a].[FoundOn] -FROM [Animal] AS [a] -WHERE ([a].[Discriminator] = 'Kiwi') AND ([a].[CountryId] = 1)"); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.DbFunctionsJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT COUNT(*) -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '!%'"); - - - -EntityFramework.Jet.FunctionalTests.DbFunctionsJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT COUNT(*) -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%M%'"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.AssertContains(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID])", - // - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[SupplierID], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM ([Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT Mid([c].[ContactName], 1, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT Mid([c].[ContactName], 1, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__ef_filter__TenantPrefix_0='B' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__ef_filter__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__ef_filter__TenantPrefix_0='F' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__ef_filter__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__ef_filter__TenantPrefix_0='F' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__ef_filter__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__ef_filter__TenantPrefix_0='B' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__ef_filter__TenantPrefix_0 + '%'", - // - @"@__ef_filter__TenantPrefix_0='T' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__ef_filter__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__ef_filter__TenantPrefix_0='B' (Nullable = false) (Size = 1) - -SELECT COUNT(*) -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__ef_filter__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -ORDER BY [p].[ProductID]", - // - @"SELECT [p1].[ProductID], [p1].[Discontinued], [p1].[ProductName], [p1].[SupplierID], [p1].[UnitPrice], [p1].[UnitsInStock] -FROM [Products] AS [p1]", - // - @"@__ef_filter___quantity_0='50' - -SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[Quantity] > @__ef_filter___quantity_0"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__ef_filter__TenantPrefix_0='B' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__ef_filter__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('yyyy', IIf(IsNull([o].[OrderDate]), NULL, DateAdd('yyyy', -1, [o].[OrderDate]))) = 1997"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('yyyy', IIf(IsNull([o].[OrderDate]), NULL, DateAdd('yyyy', -1, [o].[OrderDate]))) = 1997"); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE @__prm_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE @__prm_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[ProductID] IN ( - SELECT TOP 20 [p].[ProductID] - FROM [Products] AS [p] - ORDER BY [p].[ProductID] -) AND [od].[OrderID] IN ( - SELECT TOP 10 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[ProductID] IN ( - SELECT TOP 20 [p].[ProductID] - FROM [Products] AS [p] - ORDER BY [p].[ProductID] -) AND [od].[OrderID] IN ( - SELECT TOP 10 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT Mid([c].[ContactName], 3, 0) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT Mid([c].[ContactName], 3, 0) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) AND ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) AND ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_1='8' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactTitle], [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_1='8' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactTitle], [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[OrderDate] = #10/24/2008 00:00:00#) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[OrderDate] = #10/24/2008 00:00:00#) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertContains(String[] expected) : - AssertSql( - @"SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10300", - // - @"@_outer_OrderID='10248' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10249' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10250' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10251' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10252' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10253' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10254' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10255' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertContains(String[] expected) : - AssertSql( - @"SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10300", - // - @"@_outer_OrderID='10248' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10249' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10250' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10251' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10252' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10253' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10254' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10255' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='5' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a' - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='5' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a' - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (EXP([od].[Discount]) > 1.0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (EXP([od].[Discount]) > 1.0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) OR ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) OR ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='1' - -SELECT [e].[EmployeeID] -FROM [Employees] AS [e] -ORDER BY [e].[EmployeeID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='1' - -SELECT [e].[EmployeeID] -FROM [Employees] AS [e] -ORDER BY [e].[EmployeeID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[City] AS [City0] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE ([c].[City] = [e].[City]) OR ([c].[City] IS NULL AND [e].[City] IS NULL) -ORDER BY [e].[City], [c].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[City] AS [City0] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE ([c].[City] = [e].[City]) OR ([c].[City] IS NULL AND [e].[City] IS NULL) -ORDER BY [e].[City], [c].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='5' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT DISTINCT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] -) AS [t] -ORDER BY [t].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='5' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT DISTINCT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] -) AS [t] -ORDER BY [t].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[Discontinued] = False) AND ([p].[ProductID] < 60)) AND ([p].[ProductID] > 30)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[Discontinued] = False) AND ([p].[ProductID] < 60)) AND ([p].[ProductID] > 30)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE [c].[ContactName] + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE [c].[ContactName] + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID] AS [Id] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID] AS [Id] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE @__nullableIntPrm_0 = [e].[ReportsTo]", - // - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__nullableIntPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE @__nullableIntPrm_0 = [e].[ReportsTo]", - // - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__nullableIntPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + [c].[ContactName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + [c].[ContactName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Mid([c].[City], 2, 2) = 'ea'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Mid([c].[City], 2, 2) = 'ea'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0", - // - @"@__InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0", - // - @"@__InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + [c].[ContactName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + [c].[ContactName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0", - // - @"@__city_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0", - // - @"@__city_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Sqr([od].[Discount]) > 0.0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Sqr([od].[Discount]) > 0.0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertContains(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"SELECT [y#Customer].[CustomerID], [y#Customer].[Address], [y#Customer].[City], [y#Customer].[CompanyName], [y#Customer].[ContactName], [y#Customer].[ContactTitle], [y#Customer].[Country], [y#Customer].[Fax], [y#Customer].[Phone], [y#Customer].[PostalCode], [y#Customer].[Region] -FROM [Customers] AS [y#Customer]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + 'b'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + 'b'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_1='10' - -SELECT TOP @__p_1 [o].[EmployeeID], [o].[City], [o].[Country], [o].[FirstName], [o].[ReportsTo], [o].[Title] -FROM [Employees] AS [o] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_1='10' - -SELECT TOP @__p_1 [o].[EmployeeID], [o].[City], [o].[Country], [o].[FirstName], [o].[ReportsTo], [o].[Title] -FROM [Employees] AS [o] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE NewGuid() <> '00000000-0000-0000-0000-000000000000'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE NewGuid() <> '00000000-0000-0000-0000-000000000000'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT DatePart('y', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT DatePart('y', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__LocalMethod2_0='m' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + @__LocalMethod2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__LocalMethod2_0='m' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + @__LocalMethod2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='5' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='5' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (TAN([od].[Discount]) > 0.0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (TAN([od].[Discount]) > 0.0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='10' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate], [t0].[EmployeeID], [t0].[City], [t0].[Country], [t0].[FirstName], [t0].[ReportsTo], [t0].[Title] -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] -, ( - SELECT TOP 5 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='10' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate], [t0].[EmployeeID], [t0].[City], [t0].[Country], [t0].[FirstName], [t0].[ReportsTo], [t0].[Title] -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] -, ( - SELECT TOP 5 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[Discount]^2.0 > 0.05000000074505806"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[Discount]^2.0 > 0.05000000074505806"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE Int([od].[UnitPrice]) > 10.0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE Int([od].[UnitPrice]) > 10.0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Trim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Trim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE False = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE False = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c1].[CustomerID] AS [Id1], [c2].[CustomerID] AS [Id2] -FROM [Customers] AS [c1] -, [Customers] AS [c2] -WHERE [c1].[CustomerID] LIKE 'ALFKI' + '%' AND ([c1].[CustomerID] = [c2].[CustomerID]) -ORDER BY [c1].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c1].[CustomerID] AS [Id1], [c2].[CustomerID] AS [Id2] -FROM [Customers] AS [c1] -, [Customers] AS [c2] -WHERE [c1].[CustomerID] LIKE 'ALFKI' + '%' AND ([c1].[CustomerID] = [c2].[CustomerID]) -ORDER BY [c1].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__city_Nested_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0", - // - @"@__city_Nested_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__city_Nested_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0", - // - @"@__city_Nested_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID] + [c].[City] AS [A] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] + [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID] + [c].[City] AS [A] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] + [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__city_Nested_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0", - // - @"@__city_Nested_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__city_Nested_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0", - // - @"@__city_Nested_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE (([o].[OrderDate] <> #10/24/2008 00:00:00#) OR [o].[OrderDate] IS NULL) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE (([o].[OrderDate] <> #10/24/2008 00:00:00#) OR [o].[OrderDate] IS NULL) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__city_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0", - // - @"@__city_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__city_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0", - // - @"@__city_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__GetCity_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0", - // - @"@__GetCity_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__GetCity_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0", - // - @"@__GetCity_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('y', [o].[OrderDate]) = 68"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('y', [o].[OrderDate]) = 68"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__StaticFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0", - // - @"@__StaticFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__StaticFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0", - // - @"@__StaticFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__NewLine_0=' -' (Nullable = false) (Size = 2) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr(1, [c].[CustomerID], @__NewLine_0, 0) > 0) OR (@__NewLine_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__NewLine_0=' -' (Nullable = false) (Size = 2) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr(1, [c].[CustomerID], @__NewLine_0, 0) > 0) OR (@__NewLine_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE [c].[ContactName] + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE [c].[ContactName] + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__get_Item_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__get_Item_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o1].[OrderID] AS [Id1], [o2].[OrderID] AS [Id2] -FROM [Orders] AS [o1] -, [Orders] AS [o2] -WHERE [o1].[CustomerID] LIKE 'A' + '%' AND (([o1].[CustomerID] = [o2].[CustomerID]) OR ([o1].[CustomerID] IS NULL AND [o2].[CustomerID] IS NULL)) -ORDER BY [o1].[OrderID], [o2].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o1].[OrderID] AS [Id1], [o2].[OrderID] AS [Id2] -FROM [Orders] AS [o1] -, [Orders] AS [o2] -WHERE [o1].[CustomerID] LIKE 'A' + '%' AND (([o1].[CustomerID] = [o2].[CustomerID]) OR ([o1].[CustomerID] IS NULL AND [o2].[CustomerID] IS NULL)) -ORDER BY [o1].[OrderID], [o2].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__start_0='2' - -SELECT Mid([c].[ContactName], @__start_0 + 1, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__start_0='2' - -SELECT Mid([c].[ContactName], @__start_0 + 1, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT DISTINCT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] -) AS [t] -ORDER BY [t].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT DISTINCT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] -) AS [t] -ORDER BY [t].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[OrderDate] = #10/24/2008 00:00:00#) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[OrderDate] = #10/24/2008 00:00:00#) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__predicate_0='True' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE @__predicate_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__predicate_0='True' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE @__predicate_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__StaticPropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0", - // - @"@__StaticPropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__StaticPropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0", - // - @"@__StaticPropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__myDatetime_0='2015-04-10T00:00:00' (DbType = DateTime) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Now() <> @__myDatetime_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__myDatetime_0='2015-04-10T00:00:00' (DbType = DateTime) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Now() <> @__myDatetime_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[ContactName] -) AS [t] -ORDER BY [t].[ContactName] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[ContactName] -) AS [t] -ORDER BY [t].[ContactName] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Replace([c].[City], 'Sea', 'Rea') = 'Reattle'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Replace([c].[City], 'Sea', 'Rea') = 'Reattle'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND ([c].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND ([c].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__city_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0", - // - @"@__city_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__city_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0", - // - @"@__city_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderDate]), NULL, DateAdd('yyyy', 1, [o].[OrderDate])) AS [OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderDate]), NULL, DateAdd('yyyy', 1, [o].[OrderDate])) AS [OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (COS([od].[Discount]) > 0.0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (COS([od].[Discount]) > 0.0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE LCase([c].[CustomerID]) = 'alfki'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE LCase([c].[CustomerID]) = 'alfki'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND ((1.5707963267948966 + Atn(-[od].[Discount] / Sqr(-[od].[Discount] * [od].[Discount] + 1.0))) > 1.0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND ((1.5707963267948966 + Atn(-[od].[Discount] / Sqr(-[od].[Discount] * [od].[Discount] + 1.0))) > 1.0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE RTrim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE RTrim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'QUICK') AND ([o].[OrderDate] > #01/01/1998 00:00:00#)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'QUICK') AND ([o].[OrderDate] > #01/01/1998 00:00:00#)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='3' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='3' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE False = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE False = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Sgn([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Sgn([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__ef_filter___searchTerm_0='A' (Nullable = false) (Size = 1) -@__ef_filter___searchTerm_1='A' (Nullable = false) (Size = 1) - -SELECT [t].[CompanyName], [t].[OrderCount], [t].[SearchTerm] -FROM ( - SELECT [c].[CompanyName], ( - SELECT COUNT(*) - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ) AS [OrderCount], @__ef_filter___searchTerm_0 AS [SearchTerm] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[CompanyName] LIKE @__ef_filter___searchTerm_1 + '%' AND ([t].[OrderCount] > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (SIN([od].[Discount]) > 0.0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (SIN([od].[Discount]) > 0.0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID] + [c].[City] AS [Property] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] + [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID] + [c].[City] AS [Property] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] + [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT Replace([c].[ContactName], 'ari', '') -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT Replace([c].[ContactName], 'ari', '') -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE 'M' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE 'M' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__LocalMethod1_0='M' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE @__LocalMethod1_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__LocalMethod1_0='M' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE @__LocalMethod1_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__ef_filter__TenantPrefix_0='B' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__ef_filter__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p]"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__ef_filter__TenantPrefix_0='F' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__ef_filter__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__ef_filter__TenantPrefix_0='F' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__ef_filter__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__ef_filter__TenantPrefix_0='B' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__ef_filter__TenantPrefix_0 + '%'", - // - @"@__ef_filter__TenantPrefix_0='T' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__ef_filter__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__ef_filter__TenantPrefix_0='B' (Nullable = false) (Size = 1) - -SELECT COUNT(*) -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__ef_filter__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -ORDER BY [p].[ProductID]", - // - @"SELECT [p1].[ProductID], [p1].[Discontinued], [p1].[ProductName], [p1].[SupplierID], [p1].[UnitPrice], [p1].[UnitsInStock] -FROM [Products] AS [p1]", - // - @"@__ef_filter___quantity_0='50' - -SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[Quantity] > @__ef_filter___quantity_0"); - - - -EntityFramework.Jet.FunctionalTests.FiltersJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__ef_filter__TenantPrefix_0='B' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CompanyName] LIKE @__ef_filter__TenantPrefix_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id1], [o].[OrderID] AS [Id2] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE ([c].[CustomerID] = 'ALFKI') AND ([c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID], [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID] AS [Id1], [o].[OrderID] AS [Id2] -FROM [Customers] AS [c] -, [Orders] AS [o] -WHERE ([c].[CustomerID] = 'ALFKI') AND ([c].[CustomerID] = [o].[CustomerID]) -ORDER BY [c].[CustomerID], [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[CustomerID], [o].[OrderID] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[CustomerID], [o].[OrderID] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='2' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[CustomerID], [o].[OrderID] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT TOP 1 [o].[CustomerID], [o].[OrderID] -FROM [Orders] AS [o] -WHERE @_outer_CustomerID = [o].[CustomerID] -ORDER BY [o].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.ComplexNavigationsQueryJetTest.AssertSql(String[] expected) : - AssertSql( - ); - - - -EntityFramework.Jet.FunctionalTests.QueryNavigationsJetTest.AssertContains(String[] expected) : - AssertSql( - @"SELECT [od0].[OrderID], [od0].[ProductID], [od0].[Discount], [od0].[Quantity], [od0].[UnitPrice], [od#Product0].[ProductID], [od#Product0].[Discontinued], [od#Product0].[ProductName], [od#Product0].[SupplierID], [od#Product0].[UnitPrice], [od#Product0].[UnitsInStock] -FROM ([Order Details] AS [od0] -INNER JOIN [Products] AS [od#Product0] ON [od0].[ProductID] = [od#Product0].[ProductID])", - // - @"SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate], [o#Customer0].[CustomerID], [o#Customer0].[Address], [o#Customer0].[City], [o#Customer0].[CompanyName], [o#Customer0].[ContactName], [o#Customer0].[ContactTitle], [o#Customer0].[Country], [o#Customer0].[Fax], [o#Customer0].[Phone], [o#Customer0].[PostalCode], [o#Customer0].[Region] -FROM ([Orders] AS [o0] -LEFT JOIN [Customers] AS [o#Customer0] ON [o0].[CustomerID] = [o#Customer0].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__predicateTuple_Item2_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__predicateTuple_Item2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__predicateTuple_Item2_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__predicateTuple_Item2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='20' -@__p_1='4' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [e].[CustomerID] AS [c] - FROM [Orders] AS [e] - GROUP BY [e].[CustomerID] - HAVING COUNT(*) > 10 - ORDER BY [e].[CustomerID] -) AS [t] -ORDER BY [t].[c] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='20' -@__p_1='4' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [e].[CustomerID] AS [c] - FROM [Orders] AS [e] - GROUP BY [e].[CustomerID] - HAVING COUNT(*) > 10 - ORDER BY [e].[CustomerID] -) AS [t] -ORDER BY [t].[c] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o1].[OrderID] AS [Id1], [o2].[OrderID] AS [Id2] -FROM [Orders] AS [o1] -, [Orders] AS [o2] -WHERE [o1].[CustomerID] LIKE 'A' + '%' AND (([o1].[CustomerID] = [o2].[CustomerID]) OR ([o1].[CustomerID] IS NULL AND [o2].[CustomerID] IS NULL)) -ORDER BY [o1].[OrderID], [o2].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o1].[OrderID] AS [Id1], [o2].[OrderID] AS [Id2] -FROM [Orders] AS [o1] -, [Orders] AS [o2] -WHERE [o1].[CustomerID] LIKE 'A' + '%' AND (([o1].[CustomerID] = [o2].[CustomerID]) OR ([o1].[CustomerID] IS NULL AND [o2].[CustomerID] IS NULL)) -ORDER BY [o1].[OrderID], [o2].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Atn([od].[Discount] / Sqr(-[od].[Discount] * [od].[Discount] + 1.0)) > 0.0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Atn([od].[Discount] / Sqr(-[od].[Discount] * [od].[Discount] + 1.0)) > 0.0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[ProductID] > 100) AND ([p].[Discontinued] = True)) OR ([p].[Discontinued] = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[ProductID] > 100) AND ([p].[Discontinued] = True)) OR ([p].[Discontinued] = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c1].[CustomerID], [c1].[Address], [c1].[City], [c1].[CompanyName], [c1].[ContactName], [c1].[ContactTitle], [c1].[Country], [c1].[Fax], [c1].[Phone], [c1].[PostalCode], [c1].[Region] -FROM [Customers] AS [c1] -WHERE [c1].[CompanyName] LIKE 'A' + '%'", - // - @"SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE [c2].[CompanyName] LIKE 'B' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c1].[CustomerID], [c1].[Address], [c1].[City], [c1].[CompanyName], [c1].[ContactName], [c1].[ContactTitle], [c1].[Country], [c1].[Fax], [c1].[Phone], [c1].[PostalCode], [c1].[Region] -FROM [Customers] AS [c1] -WHERE [c1].[CompanyName] LIKE 'A' + '%'", - // - @"SELECT [c2].[CustomerID], [c2].[Address], [c2].[City], [c2].[CompanyName], [c2].[ContactName], [c2].[ContactTitle], [c2].[Country], [c2].[Fax], [c2].[Phone], [c2].[PostalCode], [c2].[Region] -FROM [Customers] AS [c2] -WHERE [c2].[CompanyName] LIKE 'B' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE @__prm_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__prm_0='True' - -SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE @__prm_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[ProductID] IN ( - SELECT TOP 20 [p].[ProductID] - FROM [Products] AS [p] - ORDER BY [p].[ProductID] -) AND [od].[OrderID] IN ( - SELECT TOP 10 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[ProductID] IN ( - SELECT TOP 20 [p].[ProductID] - FROM [Products] AS [p] - ORDER BY [p].[ProductID] -) AND [od].[OrderID] IN ( - SELECT TOP 10 [o].[OrderID] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT Mid([c].[ContactName], 3, 0) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT Mid([c].[ContactName], 3, 0) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) AND ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) AND ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_1='8' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactTitle], [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_1='8' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactTitle], [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[OrderDate] = #10/24/2008 00:00:00#) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[OrderDate] = #10/24/2008 00:00:00#) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertContains(String[] expected) : - AssertSql( - @"SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10300", - // - @"@_outer_OrderID='10248' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10249' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10250' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10251' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10252' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10253' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10254' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10255' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertContains(String[] expected) : - AssertSql( - @"SELECT [o].[OrderID] -FROM [Orders] AS [o] -WHERE [o].[OrderID] < 10300", - // - @"@_outer_OrderID='10248' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10249' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10250' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10251' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10252' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10253' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10254' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]", - // - @"@_outer_OrderID='10255' - -SELECT CSng(IIf(IsNull(AVG([od0].[Discount])),0,AVG([od0].[Discount]))) -FROM [Order Details] AS [od0] -WHERE @_outer_OrderID = [od0].[OrderID]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='5' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a' - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='5' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a' - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (EXP([od].[Discount]) > 1.0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (EXP([od].[Discount]) > 1.0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) OR ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE ([p].[Discontinued] = False) OR ([p].[ProductID] >= 20)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='1' - -SELECT [e].[EmployeeID] -FROM [Employees] AS [e] -ORDER BY [e].[EmployeeID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='1' - -SELECT [e].[EmployeeID] -FROM [Employees] AS [e] -ORDER BY [e].[EmployeeID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[City] AS [City0] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE ([c].[City] = [e].[City]) OR ([c].[City] IS NULL AND [e].[City] IS NULL) -ORDER BY [e].[City], [c].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [e].[City] AS [City0] -FROM [Customers] AS [c] -, [Employees] AS [e] -WHERE ([c].[City] = [e].[City]) OR ([c].[City] IS NULL AND [e].[City] IS NULL) -ORDER BY [e].[City], [c].[CustomerID] DESC"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='5' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT DISTINCT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] -) AS [t] -ORDER BY [t].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='5' - -SELECT [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT DISTINCT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] -) AS [t] -ORDER BY [t].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[Discontinued] = False) AND ([p].[ProductID] < 60)) AND ([p].[ProductID] > 30)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE (([p].[Discontinued] = False) AND ([p].[ProductID] < 60)) AND ([p].[ProductID] > 30)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE [c].[ContactName] + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE [c].[ContactName] + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <> UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= 'M' + [c].[CustomerID]", - // - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > UCase([c].[CustomerID])", - // - @"@__ToUpper_0='ALF' (Nullable = false) (Size = 3) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < Replace('ALFKI', @__ToUpper_0, [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID] AS [Id] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID] AS [Id] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE @__nullableIntPrm_0 = [e].[ReportsTo]", - // - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__nullableIntPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE @__nullableIntPrm_0 = [e].[ReportsTo]", - // - @"@__nullableIntPrm_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__nullableIntPrm_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + [c].[ContactName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + [c].[ContactName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Mid([c].[City], 2, 2) = 'ea'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Mid([c].[City], 2, 2) = 'ea'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0", - // - @"@__InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0", - // - @"@__InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + [c].[ContactName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + [c].[ContactName]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0", - // - @"@__city_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0", - // - @"@__city_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Sqr([od].[Discount]) > 0.0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Sqr([od].[Discount]) > 0.0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertContains(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"SELECT [y#Customer].[CustomerID], [y#Customer].[Address], [y#Customer].[City], [y#Customer].[CompanyName], [y#Customer].[ContactName], [y#Customer].[ContactTitle], [y#Customer].[Country], [y#Customer].[Fax], [y#Customer].[Phone], [y#Customer].[PostalCode], [y#Customer].[Region] -FROM [Customers] AS [y#Customer]", - // - @"@_outer_CustomerID='ALFKI' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID", - // - @"@_outer_CustomerID='ANATR' (Nullable = false) (Size = 5) - -SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE [o].[CustomerID] = @_outer_CustomerID"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + 'b'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + 'b'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_1='10' - -SELECT TOP @__p_1 [o].[EmployeeID], [o].[City], [o].[Country], [o].[FirstName], [o].[ReportsTo], [o].[Title] -FROM [Employees] AS [o] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_1='10' - -SELECT TOP @__p_1 [o].[EmployeeID], [o].[City], [o].[Country], [o].[FirstName], [o].[ReportsTo], [o].[Title] -FROM [Employees] AS [o] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE NewGuid() <> '00000000-0000-0000-0000-000000000000'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE NewGuid() <> '00000000-0000-0000-0000-000000000000'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT DatePart('y', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT DatePart('y', [o].[OrderDate]) -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__LocalMethod2_0='m' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + @__LocalMethod2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__LocalMethod2_0='m' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE '%' + @__LocalMethod2_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='5' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='5' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (TAN([od].[Discount]) > 0.0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (TAN([od].[Discount]) > 0.0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='10' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate], [t0].[EmployeeID], [t0].[City], [t0].[Country], [t0].[FirstName], [t0].[ReportsTo], [t0].[Title] -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] -, ( - SELECT TOP 5 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='10' - -SELECT [t].[OrderID], [t].[CustomerID], [t].[EmployeeID], [t].[OrderDate], [t0].[EmployeeID], [t0].[City], [t0].[Country], [t0].[FirstName], [t0].[ReportsTo], [t0].[Title] -FROM ( - SELECT TOP @__p_0 [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] - FROM [Orders] AS [o] - ORDER BY [o].[OrderID] -) AS [t] -, ( - SELECT TOP 5 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t0]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[Discount]^2.0 > 0.05000000074505806"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE [od].[Discount]^2.0 > 0.05000000074505806"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE Int([od].[UnitPrice]) > 10.0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE Int([od].[UnitPrice]) > 10.0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Trim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Trim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE False = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND NOT EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE False = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c1].[CustomerID] AS [Id1], [c2].[CustomerID] AS [Id2] -FROM [Customers] AS [c1] -, [Customers] AS [c2] -WHERE [c1].[CustomerID] LIKE 'ALFKI' + '%' AND ([c1].[CustomerID] = [c2].[CustomerID]) -ORDER BY [c1].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c1].[CustomerID] AS [Id1], [c2].[CustomerID] AS [Id2] -FROM [Customers] AS [c1] -, [Customers] AS [c2] -WHERE [c1].[CustomerID] LIKE 'ALFKI' + '%' AND ([c1].[CustomerID] = [c2].[CustomerID]) -ORDER BY [c1].[CustomerID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__city_Nested_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0", - // - @"@__city_Nested_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__city_Nested_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0", - // - @"@__city_Nested_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID] + [c].[City] AS [A] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] + [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID] + [c].[City] AS [A] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] + [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__city_Nested_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0", - // - @"@__city_Nested_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__city_Nested_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0", - // - @"@__city_Nested_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_Nested_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE (([o].[OrderDate] <> #10/24/2008 00:00:00#) OR [o].[OrderDate] IS NULL) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE (([o].[OrderDate] <> #10/24/2008 00:00:00#) OR [o].[OrderDate] IS NULL) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] - ORDER BY [e].[EmployeeID] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__city_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0", - // - @"@__city_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__city_InstancePropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0", - // - @"@__city_InstancePropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstancePropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__GetCity_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0", - // - @"@__GetCity_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__GetCity_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0", - // - @"@__GetCity_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__GetCity_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = False"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('y', [o].[OrderDate]) = 68"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE DatePart('y', [o].[OrderDate]) = 68"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__StaticFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0", - // - @"@__StaticFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__StaticFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0", - // - @"@__StaticFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__NewLine_0=' -' (Nullable = false) (Size = 2) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr(1, [c].[CustomerID], @__NewLine_0, 0) > 0) OR (@__NewLine_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__NewLine_0=' -' (Nullable = false) (Size = 2) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE (Instr(1, [c].[CustomerID], @__NewLine_0, 0) > 0) OR (@__NewLine_0 = '')"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE [c].[ContactName] + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE [c].[ContactName] + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__get_Item_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__get_Item_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__get_Item_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o1].[OrderID] AS [Id1], [o2].[OrderID] AS [Id2] -FROM [Orders] AS [o1] -, [Orders] AS [o2] -WHERE [o1].[CustomerID] LIKE 'A' + '%' AND (([o1].[CustomerID] = [o2].[CustomerID]) OR ([o1].[CustomerID] IS NULL AND [o2].[CustomerID] IS NULL)) -ORDER BY [o1].[OrderID], [o2].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o1].[OrderID] AS [Id1], [o2].[OrderID] AS [Id2] -FROM [Orders] AS [o1] -, [Orders] AS [o2] -WHERE [o1].[CustomerID] LIKE 'A' + '%' AND (([o1].[CustomerID] = [o2].[CustomerID]) OR ([o1].[CustomerID] IS NULL AND [o2].[CustomerID] IS NULL)) -ORDER BY [o1].[OrderID], [o2].[OrderID]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='3' - -SELECT [t].[EmployeeID], [t].[City], [t].[Country], [t].[FirstName], [t].[ReportsTo], [t].[Title] -FROM ( - SELECT TOP @__p_0 [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] - FROM [Employees] AS [e] -) AS [t]", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo", - // - @"SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] IS NULL", - // - @"@_outer_ReportsTo='2' - -SELECT TOP 2 [e20].[EmployeeID] -FROM [Employees] AS [e20] -WHERE [e20].[EmployeeID] = @_outer_ReportsTo"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__start_0='2' - -SELECT Mid([c].[ContactName], @__start_0 + 1, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__start_0='2' - -SELECT Mid([c].[ContactName], @__start_0 + 1, 3) -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT DISTINCT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] -) AS [t] -ORDER BY [t].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [t].[CustomerID], [t].[Address], [t].[City], [t].[CompanyName], [t].[ContactName], [t].[ContactTitle], [t].[Country], [t].[Fax], [t].[Phone], [t].[PostalCode], [t].[Region] -FROM ( - SELECT DISTINCT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] -) AS [t] -ORDER BY [t].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[OrderDate] = #10/24/2008 00:00:00#) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE ([o].[OrderDate] = #10/24/2008 00:00:00#) AND ([c].[CustomerID] = [o].[CustomerID]))"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__predicate_0='True' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE @__predicate_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__predicate_0='True' - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE @__predicate_0 = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__StaticPropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0", - // - @"@__StaticPropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__StaticPropertyValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0", - // - @"@__StaticPropertyValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__StaticPropertyValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__myDatetime_0='2015-04-10T00:00:00' (DbType = DateTime) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Now() <> @__myDatetime_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__myDatetime_0='2015-04-10T00:00:00' (DbType = DateTime) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Now() <> @__myDatetime_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[ContactName] -) AS [t] -ORDER BY [t].[ContactName] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='10' -@__p_1='5' - -SELECT [t].* -FROM ( - SELECT TOP @__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] - FROM [Customers] AS [c] - ORDER BY [c].[ContactName] -) AS [t] -ORDER BY [t].[ContactName] - SKIP @__p_1"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Replace([c].[City], 'Sea', 'Rea') = 'Reattle'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE Replace([c].[City], 'Sea', 'Rea') = 'Reattle'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND ([c].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] LIKE 'A' + '%' AND ([c].[CustomerID] = [c].[CustomerID])"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY 'a'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__city_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0", - // - @"@__city_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__city_InstanceFieldValue_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0", - // - @"@__city_InstanceFieldValue_0='Seattle' (Nullable = false) (Size = 7) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_InstanceFieldValue_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__city_0='London' (Nullable = false) (Size = 6) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[City] = @__city_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_1='10' -@__p_0='5' - -SELECT TOP @__p_1+@__p_0 [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -ORDER BY [c].[ContactName] - SKIP @__p_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderDate]), NULL, DateAdd('yyyy', 1, [o].[OrderDate])) AS [OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT IIf(IsNull([o].[OrderDate]), NULL, DateAdd('yyyy', 1, [o].[OrderDate])) AS [OrderDate] -FROM [Orders] AS [o] -WHERE [o].[OrderDate] IS NOT NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (COS([od].[Discount]) > 0.0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (COS([od].[Discount]) > 0.0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE LCase([c].[CustomerID]) = 'alfki'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE LCase([c].[CustomerID]) = 'alfki'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND ((1.5707963267948966 + Atn(-[od].[Discount] / Sqr(-[od].[Discount] * [od].[Discount] + 1.0))) > 1.0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND ((1.5707963267948966 + Atn(-[od].[Discount] / Sqr(-[od].[Discount] * [od].[Discount] + 1.0))) > 1.0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE RTrim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE RTrim([c].[ContactTitle]) = 'Owner'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'QUICK') AND ([o].[OrderDate] > #01/01/1998 00:00:00#)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o] -WHERE ([o].[CustomerID] = 'QUICK') AND ([o].[OrderDate] > #01/01/1998 00:00:00#)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='3' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__p_0='3' - -SELECT TOP @__p_0 [c].[CustomerID] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]", - // - @"SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate] -FROM [Orders] AS [o]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE False = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE ([c].[CustomerID] = 'ALFKI') AND EXISTS ( - SELECT 1 - FROM [Orders] AS [o] - WHERE False = True)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Sgn([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (Sgn([od].[Discount]) > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__ef_filter___searchTerm_0='A' (Nullable = false) (Size = 1) -@__ef_filter___searchTerm_1='A' (Nullable = false) (Size = 1) - -SELECT [t].[CompanyName], [t].[OrderCount], [t].[SearchTerm] -FROM ( - SELECT [c].[CompanyName], ( - SELECT COUNT(*) - FROM [Orders] AS [o] - WHERE [c].[CustomerID] = [o].[CustomerID] - ) AS [OrderCount], @__ef_filter___searchTerm_0 AS [SearchTerm] - FROM [Customers] AS [c] -) AS [t] -WHERE [t].[CompanyName] LIKE @__ef_filter___searchTerm_1 + '%' AND ([t].[OrderCount] > 0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (SIN([od].[Discount]) > 0.0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [od].[OrderID], [od].[ProductID], [od].[Discount], [od].[Quantity], [od].[UnitPrice] -FROM [Order Details] AS [od] -WHERE ([od].[OrderID] = 11077) AND (SIN([od].[Discount]) > 0.0)"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID] + [c].[City] AS [Property] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] + [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID] + [c].[City] AS [Property] -FROM [Customers] AS [c] -ORDER BY [c].[CustomerID] + [c].[City]"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT Replace([c].[ContactName], 'ari', '') -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT Replace([c].[ContactName], 'ari', '') -FROM [Customers] AS [c] -WHERE [c].[CustomerID] = 'ALFKI'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE 'M' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE 'M' + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [p].[ProductID], [p].[Discontinued], [p].[ProductName], [p].[SupplierID], [p].[UnitPrice], [p].[UnitsInStock] -FROM [Products] AS [p] -WHERE [p].[Discontinued] = True"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] > @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] < @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] <= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0", - // - @"@__customer_CustomerID_0='ALFKI' (Nullable = false) (Size = 5) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[CustomerID] >= @__customer_CustomerID_0"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__reportsTo_0='2' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"@__reportsTo_0='5' - -SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] = @__reportsTo_0", - // - @"SELECT [e].[EmployeeID], [e].[City], [e].[Country], [e].[FirstName], [e].[ReportsTo], [e].[Title] -FROM [Employees] AS [e] -WHERE [e].[ReportsTo] IS NULL"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__LocalMethod1_0='M' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE @__LocalMethod1_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.SimpleQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"@__LocalMethod1_0='M' (Nullable = false) (Size = 1) - -SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] -FROM [Customers] AS [c] -WHERE [c].[ContactName] LIKE @__LocalMethod1_0 + '%'"); - - - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[OrderID], [c].[CustomerID], [c].[EmployeeID], [c].[OrderDate] -FROM [Orders] AS [c] -ORDER BY [c].[EmployeeID]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]"); - -Output truncated. - -EntityFramework.Jet.FunctionalTests.Query.GroupByQueryJetTest.AssertSql(String[] expected) : - AssertSql( - @"SELECT [c].[OrderID], [c].[CustomerID], [c].[EmployeeID], [c].[OrderDate] -FROM [Orders] AS [c] -ORDER BY [c].[EmployeeID]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]", - // - @"SELECT [i#Customer0].[CustomerID], [i#Customer0].[Region] -FROM [Customers] AS [i#Customer0]"); - -Output truncated. - diff --git a/test/EFCore.Jet.FunctionalTests/Query/GearsOfWarFromSqlQueryJetTest.cs b/test/EFCore.Jet.FunctionalTests/Query/GearsOfWarFromSqlQueryJetTest.cs index 4e359a9..28444ea 100644 --- a/test/EFCore.Jet.FunctionalTests/Query/GearsOfWarFromSqlQueryJetTest.cs +++ b/test/EFCore.Jet.FunctionalTests/Query/GearsOfWarFromSqlQueryJetTest.cs @@ -19,7 +19,7 @@ namespace EntityFrameworkCore.Jet.FunctionalTests.Query base.From_sql_queryable_simple_columns_out_of_order(); Assert.Equal( - @"SELECT ""Id"", ""Name"", ""IsAutomatic"", ""AmmunitionType"", ""OwnerFullName"", ""SynergyWithId"" FROM ""Weapons"" ORDER BY ""Name""", + @"SELECT `Id`, `Name`, `IsAutomatic`, `AmmunitionType`, `OwnerFullName`, `SynergyWithId` FROM `Weapons` ORDER BY `Name`", Sql); } diff --git a/test/EFCore.Jet.FunctionalTests/Query/GearsOfWarQueryJetFixture.cs b/test/EFCore.Jet.FunctionalTests/Query/GearsOfWarQueryJetFixture.cs index 59094c8..d319585 100644 --- a/test/EFCore.Jet.FunctionalTests/Query/GearsOfWarQueryJetFixture.cs +++ b/test/EFCore.Jet.FunctionalTests/Query/GearsOfWarQueryJetFixture.cs @@ -24,7 +24,74 @@ namespace EntityFrameworkCore.Jet.FunctionalTests.Query { b.Ignore(m => m.Date); b.Ignore(m => m.Time); + b.Ignore(m => m.Timeline); + b.Ignore(m => m.Duration); }); } + + public override ISetSource GetExpectedData() + { + var data = (GearsOfWarData)base.GetExpectedData(); + + /*foreach (var mission in data.Missions) + { + mission.Timeline = mission.Timeline.AddYears(100); + } + */ + foreach (var gear in data.Gears) + { + if (gear.LeaderSquadId != 0) continue; + gear.LeaderSquadId = 1; + gear.LeaderNickname = "Marcus"; + } + return data; + } + + protected override void Seed(GearsOfWarContext context) + { + var squads = GearsOfWarData.CreateSquads(); + var missions = GearsOfWarData.CreateMissions(); + var squadMissions = GearsOfWarData.CreateSquadMissions(); + var cities = GearsOfWarData.CreateCities(); + var weapons = GearsOfWarData.CreateWeapons(); + var tags = GearsOfWarData.CreateTags(); + var gears = GearsOfWarData.CreateGears(); + var locustLeaders = GearsOfWarData.CreateLocustLeaders(); + var factions = GearsOfWarData.CreateFactions(); + var locustHighCommands = GearsOfWarData.CreateHighCommands(); + /*foreach (var mission in missions) + { + mission.Timeline = new DateTimeOffset(new DateTime(1753, 1, 1)); + }*/ + GearsOfWarData.WireUp( + squads, missions, squadMissions, cities, weapons, tags, gears, locustLeaders, factions, locustHighCommands); + + /*foreach (var tag in tags) + { + tag.IssueDate = new DateTime(1750, 1, 1); + }*/ + + foreach (var gear in gears) + { + if (gear.LeaderSquadId != 0) continue; + gear.LeaderSquadId = 1; + gear.LeaderNickname = "Marcus"; + } + context.Squads.AddRange(squads); + context.Missions.AddRange(missions); + context.SquadMissions.AddRange(squadMissions); + context.Cities.AddRange(cities); + context.Weapons.AddRange(weapons); + context.Tags.AddRange(tags); + context.Gears.AddRange(gears); + context.LocustLeaders.AddRange(locustLeaders); + context.Factions.AddRange(factions); + context.LocustHighCommands.AddRange(locustHighCommands); + context.SaveChanges(); + + GearsOfWarData.WireUp2(locustLeaders, factions); + + context.SaveChanges(); + } } } diff --git a/test/EFCore.Jet.FunctionalTests/Query/GearsOfWarQueryJetTest.cs b/test/EFCore.Jet.FunctionalTests/Query/GearsOfWarQueryJetTest.cs index 87ffac7..6547b1e 100644 --- a/test/EFCore.Jet.FunctionalTests/Query/GearsOfWarQueryJetTest.cs +++ b/test/EFCore.Jet.FunctionalTests/Query/GearsOfWarQueryJetTest.cs @@ -8,7 +8,7 @@ using Xunit.Abstractions; namespace EntityFrameworkCore.Jet.FunctionalTests.Query { - public class GearsOfWarQueryJetTest : GearsOfWarQueryTestBase + public class GearsOfWarQueryJetTest : GearsOfWarQueryRelationalTestBase { private static readonly string _eol = Environment.NewLine; @@ -19,7 +19,7 @@ namespace EntityFrameworkCore.Jet.FunctionalTests.Query : base(fixture) { Fixture.TestSqlLoggerFactory.Clear(); - //Fixture.TestSqlLoggerFactory.SetTestOutputHelper(testOutputHelper); + Fixture.TestSqlLoggerFactory.SetTestOutputHelper(testOutputHelper); } public override async Task Entity_equality_empty(bool isAsync) @@ -29,7 +29,7 @@ namespace EntityFrameworkCore.Jet.FunctionalTests.Query AssertSql( $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE False = True"); +WHERE 0 = 1"); } public override async Task Include_multiple_one_to_one_and_one_to_many(bool isAsync) @@ -37,15 +37,11 @@ WHERE False = True"); await base.Include_multiple_one_to_one_and_one_to_many(isAsync); AssertSql( - $@"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`Note`, `t0`.`Nickname`, `t0`.`SquadId`, `t0`.`AssignedCityName`, `t0`.`CityOfBirthName`, `t0`.`Discriminator`, `t0`.`FullName`, `t0`.`HasSoulPatch`, `t0`.`LeaderNickname`, `t0`.`LeaderSquadId`, `t0`.`Rank`, `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` -FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -LEFT JOIN `Weapons` AS `w` ON `t0`.`FullName` = `w`.`OwnerFullName` -ORDER BY `t`.`Id`, `w`.`Id`"); + @"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`IssueDate`, `t`.`Note`, `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` +FROM (`Tags` AS `t` +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`)) +LEFT JOIN `Weapons` AS `w` ON `g`.`FullName` = `w`.`OwnerFullName` +ORDER BY `t`.`Id`, `g`.`Nickname`, `g`.`SquadId`"); } public override async Task Include_multiple_one_to_one_optional_and_one_to_one_required(bool isAsync) @@ -53,14 +49,10 @@ ORDER BY `t`.`Id`, `w`.`Id`"); await base.Include_multiple_one_to_one_optional_and_one_to_one_required(isAsync); AssertSql( - $@"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`Note`, `t0`.`Nickname`, `t0`.`SquadId`, `t0`.`AssignedCityName`, `t0`.`CityOfBirthName`, `t0`.`Discriminator`, `t0`.`FullName`, `t0`.`HasSoulPatch`, `t0`.`LeaderNickname`, `t0`.`LeaderSquadId`, `t0`.`Rank`, `s`.`Id`, `s`.`InternalNumber`, `s`.`Name` -FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -LEFT JOIN `Squads` AS `s` ON `t0`.`SquadId` = `s`.`Id`"); + @"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`IssueDate`, `t`.`Note`, `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `s`.`Id`, `s`.`Banner`, `s`.`Banner5`, `s`.`InternalNumber`, `s`.`Name` +FROM (`Tags` AS `t` +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`)) +LEFT JOIN `Squads` AS `s` ON `g`.`SquadId` = `s`.`Id`"); } public override async Task Include_multiple_circular(bool isAsync) @@ -68,16 +60,11 @@ LEFT JOIN `Squads` AS `s` ON `t0`.`SquadId` = `s`.`Id`"); await base.Include_multiple_circular(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `c`.`Name`, `c`.`Location`, `c`.`Nation`, `t`.`Nickname`, `t`.`SquadId`, `t`.`AssignedCityName`, `t`.`CityOfBirthName`, `t`.`Discriminator`, `t`.`FullName`, `t`.`HasSoulPatch`, `t`.`LeaderNickname`, `t`.`LeaderSquadId`, `t`.`Rank` -FROM `Gears` AS `g` -INNER JOIN `Cities` AS `c` ON `g`.`CityOfBirthName` = `c`.`Name` -LEFT JOIN ( - SELECT `g0`.`Nickname`, `g0`.`SquadId`, `g0`.`AssignedCityName`, `g0`.`CityOfBirthName`, `g0`.`Discriminator`, `g0`.`FullName`, `g0`.`HasSoulPatch`, `g0`.`LeaderNickname`, `g0`.`LeaderSquadId`, `g0`.`Rank` - FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') -) AS `t` ON `c`.`Name` = `t`.`AssignedCityName` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -ORDER BY `g`.`Nickname`, `g`.`SquadId`, `c`.`Name`, `t`.`Nickname`, `t`.`SquadId`"); + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `c`.`Name`, `c`.`Location`, `c`.`Nation`, `g0`.`Nickname`, `g0`.`SquadId`, `g0`.`AssignedCityName`, `g0`.`CityOfBirthName`, `g0`.`Discriminator`, `g0`.`FullName`, `g0`.`HasSoulPatch`, `g0`.`LeaderNickname`, `g0`.`LeaderSquadId`, `g0`.`Rank` +FROM (`Gears` AS `g` +INNER JOIN `Cities` AS `c` ON `g`.`CityOfBirthName` = `c`.`Name`) +LEFT JOIN `Gears` AS `g0` ON `c`.`Name` = `g0`.`AssignedCityName` +ORDER BY `g`.`Nickname`, `g`.`SquadId`, `c`.`Name`, `g0`.`Nickname`"); } public override async Task Include_multiple_circular_with_filter(bool isAsync) @@ -85,16 +72,12 @@ ORDER BY `g`.`Nickname`, `g`.`SquadId`, `c`.`Name`, `t`.`Nickname`, `t`.`SquadId await base.Include_multiple_circular_with_filter(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `c`.`Name`, `c`.`Location`, `c`.`Nation`, `t`.`Nickname`, `t`.`SquadId`, `t`.`AssignedCityName`, `t`.`CityOfBirthName`, `t`.`Discriminator`, `t`.`FullName`, `t`.`HasSoulPatch`, `t`.`LeaderNickname`, `t`.`LeaderSquadId`, `t`.`Rank` -FROM `Gears` AS `g` -INNER JOIN `Cities` AS `c` ON `g`.`CityOfBirthName` = `c`.`Name` -LEFT JOIN ( - SELECT `g0`.`Nickname`, `g0`.`SquadId`, `g0`.`AssignedCityName`, `g0`.`CityOfBirthName`, `g0`.`Discriminator`, `g0`.`FullName`, `g0`.`HasSoulPatch`, `g0`.`LeaderNickname`, `g0`.`LeaderSquadId`, `g0`.`Rank` - FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') -) AS `t` ON `c`.`Name` = `t`.`AssignedCityName` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`Nickname` = 'Marcus') -ORDER BY `g`.`Nickname`, `g`.`SquadId`, `c`.`Name`, `t`.`Nickname`, `t`.`SquadId`"); + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `c`.`Name`, `c`.`Location`, `c`.`Nation`, `g0`.`Nickname`, `g0`.`SquadId`, `g0`.`AssignedCityName`, `g0`.`CityOfBirthName`, `g0`.`Discriminator`, `g0`.`FullName`, `g0`.`HasSoulPatch`, `g0`.`LeaderNickname`, `g0`.`LeaderSquadId`, `g0`.`Rank` +FROM (`Gears` AS `g` +INNER JOIN `Cities` AS `c` ON `g`.`CityOfBirthName` = `c`.`Name`) +LEFT JOIN `Gears` AS `g0` ON `c`.`Name` = `g0`.`AssignedCityName` +WHERE `g`.`Nickname` = 'Marcus' +ORDER BY `g`.`Nickname`, `g`.`SquadId`, `c`.`Name`, `g0`.`Nickname`"); } public override async Task Include_using_alternate_key(bool isAsync) @@ -102,11 +85,11 @@ ORDER BY `g`.`Nickname`, `g`.`SquadId`, `c`.`Name`, `t`.`Nickname`, `t`.`SquadId await base.Include_using_alternate_key(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` FROM `Gears` AS `g` LEFT JOIN `Weapons` AS `w` ON `g`.`FullName` = `w`.`OwnerFullName` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`Nickname` = 'Marcus') -ORDER BY `g`.`Nickname`, `g`.`SquadId`, `w`.`Id`"); +WHERE `g`.`Nickname` = 'Marcus' +ORDER BY `g`.`Nickname`, `g`.`SquadId`"); } public override async Task Include_navigation_on_derived_type(bool isAsync) @@ -146,14 +129,10 @@ ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t`.`Nickname`, `t`.`SquadId`"); await base.Select_Where_Navigation_Included(isAsync); AssertSql( - $@"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`Note`, `t0`.`Nickname`, `t0`.`SquadId`, `t0`.`AssignedCityName`, `t0`.`CityOfBirthName`, `t0`.`Discriminator`, `t0`.`FullName`, `t0`.`HasSoulPatch`, `t0`.`LeaderNickname`, `t0`.`LeaderSquadId`, `t0`.`Rank` + @"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`IssueDate`, `t`.`Note`, `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -WHERE `t0`.`Nickname` = 'Marcus'"); +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`) +WHERE `g`.`Nickname` = 'Marcus'"); } public override async Task Include_with_join_reference1(bool isAsync) @@ -161,11 +140,10 @@ WHERE `t0`.`Nickname` = 'Marcus'"); await base.Include_with_join_reference1(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `c`.`Name`, `c`.`Location`, `c`.`Nation` -FROM `Gears` AS `g` -INNER JOIN `Tags` AS `t` ON (`g`.`SquadId` = `t`.`GearSquadId`) AND (`g`.`Nickname` = `t`.`GearNickName`) -INNER JOIN `Cities` AS `c` ON `g`.`CityOfBirthName` = `c`.`Name` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `c`.`Name`, `c`.`Location`, `c`.`Nation` +FROM (`Gears` AS `g` +INNER JOIN `Tags` AS `t` ON (`g`.`SquadId` = `t`.`GearSquadId`) AND (`g`.`Nickname` = `t`.`GearNickName`)) +INNER JOIN `Cities` AS `c` ON `g`.`CityOfBirthName` = `c`.`Name`"); } public override async Task Include_with_join_reference2(bool isAsync) @@ -173,14 +151,10 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); await base.Include_with_join_reference2(isAsync); AssertSql( - $@"SELECT `t0`.`Nickname`, `t0`.`SquadId`, `t0`.`AssignedCityName`, `t0`.`CityOfBirthName`, `t0`.`Discriminator`, `t0`.`FullName`, `t0`.`HasSoulPatch`, `t0`.`LeaderNickname`, `t0`.`LeaderSquadId`, `t0`.`Rank`, `c`.`Name`, `c`.`Location`, `c`.`Nation` -FROM `Tags` AS `t` -INNER JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearSquadId` = `t0`.`SquadId`) AND (`t`.`GearNickName` = `t0`.`Nickname`) -INNER JOIN `Cities` AS `c` ON `t0`.`CityOfBirthName` = `c`.`Name`"); + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `c`.`Name`, `c`.`Location`, `c`.`Nation` +FROM (`Tags` AS `t` +INNER JOIN `Gears` AS `g` ON (`t`.`GearSquadId` = `g`.`SquadId`) AND (`t`.`GearNickName` = `g`.`Nickname`)) +INNER JOIN `Cities` AS `c` ON `g`.`CityOfBirthName` = `c`.`Name`"); } public override async Task Include_with_join_collection1(bool isAsync) @@ -188,12 +162,11 @@ INNER JOIN `Cities` AS `c` ON `t0`.`CityOfBirthName` = `c`.`Name`"); await base.Include_with_join_collection1(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `t`.`Id`, `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` -FROM `Gears` AS `g` -INNER JOIN `Tags` AS `t` ON (`g`.`SquadId` = `t`.`GearSquadId`) AND (`g`.`Nickname` = `t`.`GearNickName`) + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `t`.`Id`, `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` +FROM (`Gears` AS `g` +INNER JOIN `Tags` AS `t` ON (`g`.`SquadId` = `t`.`GearSquadId`) AND (`g`.`Nickname` = `t`.`GearNickName`)) LEFT JOIN `Weapons` AS `w` ON `g`.`FullName` = `w`.`OwnerFullName` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`, `w`.`Id`"); +ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`"); } public override async Task Include_with_join_collection2(bool isAsync) @@ -201,15 +174,11 @@ ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`, `w`.`Id`"); await base.Include_with_join_collection2(isAsync); AssertSql( - $@"SELECT `t0`.`Nickname`, `t0`.`SquadId`, `t0`.`AssignedCityName`, `t0`.`CityOfBirthName`, `t0`.`Discriminator`, `t0`.`FullName`, `t0`.`HasSoulPatch`, `t0`.`LeaderNickname`, `t0`.`LeaderSquadId`, `t0`.`Rank`, `t`.`Id`, `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` -FROM `Tags` AS `t` -INNER JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearSquadId` = `t0`.`SquadId`) AND (`t`.`GearNickName` = `t0`.`Nickname`) -LEFT JOIN `Weapons` AS `w` ON `t0`.`FullName` = `w`.`OwnerFullName` -ORDER BY `t`.`Id`, `t0`.`Nickname`, `t0`.`SquadId`, `w`.`Id`"); + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `t`.`Id`, `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` +FROM (`Tags` AS `t` +INNER JOIN `Gears` AS `g` ON (`t`.`GearSquadId` = `g`.`SquadId`) AND (`t`.`GearNickName` = `g`.`Nickname`)) +LEFT JOIN `Weapons` AS `w` ON `g`.`FullName` = `w`.`OwnerFullName` +ORDER BY `t`.`Id`, `g`.`Nickname`, `g`.`SquadId`"); } public override async Task Include_where_list_contains_navigation(bool isAsync) @@ -260,17 +229,12 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`t`.`Id` IS NOT NULL AND ` await base.Include_with_join_multi_level(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `c`.`Name`, `c`.`Location`, `c`.`Nation`, `t`.`Id`, `t0`.`Nickname`, `t0`.`SquadId`, `t0`.`AssignedCityName`, `t0`.`CityOfBirthName`, `t0`.`Discriminator`, `t0`.`FullName`, `t0`.`HasSoulPatch`, `t0`.`LeaderNickname`, `t0`.`LeaderSquadId`, `t0`.`Rank` -FROM `Gears` AS `g` -INNER JOIN `Tags` AS `t` ON (`g`.`SquadId` = `t`.`GearSquadId`) AND (`g`.`Nickname` = `t`.`GearNickName`) -INNER JOIN `Cities` AS `c` ON `g`.`CityOfBirthName` = `c`.`Name` -LEFT JOIN ( - SELECT `g0`.`Nickname`, `g0`.`SquadId`, `g0`.`AssignedCityName`, `g0`.`CityOfBirthName`, `g0`.`Discriminator`, `g0`.`FullName`, `g0`.`HasSoulPatch`, `g0`.`LeaderNickname`, `g0`.`LeaderSquadId`, `g0`.`Rank` - FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON `c`.`Name` = `t0`.`AssignedCityName` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`, `c`.`Name`, `t0`.`Nickname`, `t0`.`SquadId`"); + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `c`.`Name`, `c`.`Location`, `c`.`Nation`, `t`.`Id`, `g0`.`Nickname`, `g0`.`SquadId`, `g0`.`AssignedCityName`, `g0`.`CityOfBirthName`, `g0`.`Discriminator`, `g0`.`FullName`, `g0`.`HasSoulPatch`, `g0`.`LeaderNickname`, `g0`.`LeaderSquadId`, `g0`.`Rank` +FROM ((`Gears` AS `g` +INNER JOIN `Tags` AS `t` ON (`g`.`SquadId` = `t`.`GearSquadId`) AND (`g`.`Nickname` = `t`.`GearNickName`)) +INNER JOIN `Cities` AS `c` ON `g`.`CityOfBirthName` = `c`.`Name`) +LEFT JOIN `Gears` AS `g0` ON `c`.`Name` = `g0`.`AssignedCityName` +ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`, `c`.`Name`, `g0`.`Nickname`"); } public override async Task Include_with_join_and_inheritance1(bool isAsync) @@ -278,13 +242,13 @@ ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`, `c`.`Name`, `t0`.`Nickname`, ` await base.Include_with_join_and_inheritance1(isAsync); AssertSql( - $@"SELECT `t0`.`Nickname`, `t0`.`SquadId`, `t0`.`AssignedCityName`, `t0`.`CityOfBirthName`, `t0`.`Discriminator`, `t0`.`FullName`, `t0`.`HasSoulPatch`, `t0`.`LeaderNickname`, `t0`.`LeaderSquadId`, `t0`.`Rank`, `c`.`Name`, `c`.`Location`, `c`.`Nation` -FROM `Tags` AS `t` + @"SELECT `t0`.`Nickname`, `t0`.`SquadId`, `t0`.`AssignedCityName`, `t0`.`CityOfBirthName`, `t0`.`Discriminator`, `t0`.`FullName`, `t0`.`HasSoulPatch`, `t0`.`LeaderNickname`, `t0`.`LeaderSquadId`, `t0`.`Rank`, `c`.`Name`, `c`.`Location`, `c`.`Nation` +FROM (`Tags` AS `t` INNER JOIN ( SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`Discriminator` = 'Officer') -) AS `t0` ON (`t`.`GearSquadId` = `t0`.`SquadId`) AND (`t`.`GearNickName` = `t0`.`Nickname`) + WHERE `g`.`Discriminator` = 'Officer' +) AS `t0` ON (`t`.`GearSquadId` = `t0`.`SquadId`) AND (`t`.`GearNickName` = `t0`.`Nickname`)) INNER JOIN `Cities` AS `c` ON `t0`.`CityOfBirthName` = `c`.`Name`"); } @@ -313,12 +277,12 @@ ORDER BY `t0`.`HasSoulPatch`, `t0`.`Nickname` DESC, `t`.`Id`, `t0`.`SquadId`, `t await base.Include_with_join_and_inheritance2(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `t`.`Id`, `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` -FROM `Gears` AS `g` -INNER JOIN `Tags` AS `t` ON (`g`.`SquadId` = `t`.`GearSquadId`) AND (`g`.`Nickname` = `t`.`GearNickName`) + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `t`.`Id`, `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` +FROM (`Gears` AS `g` +INNER JOIN `Tags` AS `t` ON (`g`.`SquadId` = `t`.`GearSquadId`) AND (`g`.`Nickname` = `t`.`GearNickName`)) LEFT JOIN `Weapons` AS `w` ON `g`.`FullName` = `w`.`OwnerFullName` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`Discriminator` = 'Officer') -ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`, `w`.`Id`"); +WHERE `g`.`Discriminator` = 'Officer' +ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`"); } public override async Task Include_with_join_and_inheritance3(bool isAsync) @@ -346,15 +310,11 @@ ORDER BY `t`.`Id`, `t0`.`Nickname`, `t0`.`SquadId`, `t1`.`Nickname`, `t1`.`Squad await base.Include_with_nested_navigation_in_order_by(isAsync); AssertSql( - $@"SELECT `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId`, `t`.`Nickname`, `t`.`SquadId`, `t`.`AssignedCityName`, `t`.`CityOfBirthName`, `t`.`Discriminator`, `t`.`FullName`, `t`.`HasSoulPatch`, `t`.`LeaderNickname`, `t`.`LeaderSquadId`, `t`.`Rank` -FROM `Weapons` AS `w` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t` ON `w`.`OwnerFullName` = `t`.`FullName` -LEFT JOIN `Cities` AS `c` ON `t`.`CityOfBirthName` = `c`.`Name` -WHERE (`t`.`Nickname` <> 'Paduk') OR `t`.`Nickname` IS NULL + @"SELECT `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId`, `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` +FROM (`Weapons` AS `w` +LEFT JOIN `Gears` AS `g` ON `w`.`OwnerFullName` = `g`.`FullName`) +LEFT JOIN `Cities` AS `c` ON `g`.`CityOfBirthName` = `c`.`Name` +WHERE (`g`.`Nickname` <> 'Paduk') OR (`g`.`Nickname` IS NULL) ORDER BY `c`.`Name`, `w`.`Id`"); } @@ -363,9 +323,9 @@ ORDER BY `c`.`Name`, `w`.`Id`"); await base.Where_enum(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`Rank` = 2)"); +WHERE `g`.`Rank` = 4"); } public override async Task Where_nullable_enum_with_constant(bool isAsync) @@ -421,13 +381,13 @@ WHERE `w`.`AmmunitionType` IS NULL"); await base.Where_bitwise_and_enum(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`g`.`Rank` BAND 1) > 0)", - // - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` +WHERE (`g`.`Rank` BAND 2) > 0", + // + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`g`.`Rank` BAND 1) = 1)"); +WHERE (`g`.`Rank` BAND 2) = 2"); } public override async Task Where_bitwise_and_integral(bool isAsync) @@ -435,17 +395,17 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`g`.`Rank` BAND 1) = 1)") await base.Where_bitwise_and_integral(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`g`.`Rank` BAND 1) = 1)", - // - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` +WHERE (`g`.`Rank` BAND 1) = 1", + // + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((CAST(`g`.`Rank` AS bigint) BAND 1) = 1)", - // - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` +WHERE (CLNG(`g`.`Rank`) BAND 1) = 1", + // + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((CAST(`g`.`Rank` AS smallint) BAND 1) = 1)"); +WHERE (CINT(`g`.`Rank`) BAND 1) = 1"); } public override async Task Where_bitwise_and_nullable_enum_with_constant(bool isAsync) @@ -485,17 +445,15 @@ WHERE (`w`.`AmmunitionType` BAND {AssertSqlHelper.Parameter("@__ammunitionType_0 await base.Where_bitwise_and_nullable_enum_with_nullable_parameter(isAsync); AssertSql( - $@"{AssertSqlHelper.Declaration("@__ammunitionType_0='1' (Nullable = true)")} + @"@__ammunitionType_0='1' (Nullable = true) SELECT `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` FROM `Weapons` AS `w` -WHERE (`w`.`AmmunitionType` BAND {AssertSqlHelper.Parameter("@__ammunitionType_0")}) > 0", - // - $@"@__ammunitionType_0=NULL (DbType = Int32) - -SELECT `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` +WHERE (`w`.`AmmunitionType` BAND @__ammunitionType_0) > 0", + // + @"SELECT `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` FROM `Weapons` AS `w` -WHERE (`w`.`AmmunitionType` BAND {AssertSqlHelper.Parameter("@__ammunitionType_0")}) > 0"); +WHERE (`w`.`AmmunitionType` BAND NULL) > 0"); } public override async Task Where_bitwise_or_enum(bool isAsync) @@ -503,9 +461,9 @@ WHERE (`w`.`AmmunitionType` BAND {AssertSqlHelper.Parameter("@__ammunitionType_0 await base.Where_bitwise_or_enum(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`g`.`Rank` BOR 1) > 0)"); +WHERE (`g`.`Rank` BOR 2) > 0"); } public override async Task Bitwise_projects_values_in_select(bool isAsync) @@ -513,9 +471,9 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`g`.`Rank` BOR 1) > 0)"); await base.Bitwise_projects_values_in_select(isAsync); AssertSql( - $@"SELECT TOP 1 IIF((`g`.`Rank` BAND 1) = 1, 1, 0) AS `BitwiseTrue`, IIF((`g`.`Rank` BAND 1) = 2, 1, 0) AS `BitwiseFalse`, `g`.`Rank` BAND 1 AS `BitwiseValue` + @"SELECT TOP 1 IIF((`g`.`Rank` BAND 2) = 2, TRUE, FALSE) AS `BitwiseTrue`, IIF((`g`.`Rank` BAND 2) = 4, TRUE, FALSE) AS `BitwiseFalse`, `g`.`Rank` BAND 2 AS `BitwiseValue` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`g`.`Rank` BAND 1) = 1)"); +WHERE (`g`.`Rank` BAND 2) = 2"); } public override async Task Where_enum_has_flag(bool isAsync) @@ -523,25 +481,25 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`g`.`Rank` BAND 1) = 1)") await base.Where_enum_has_flag(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`g`.`Rank` BAND 1) = 1)", - // - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` +WHERE (`g`.`Rank` BAND 2) = 2", + // + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`g`.`Rank` BAND 9) = 9)", - // - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` +WHERE (`g`.`Rank` BAND 18) = 18", + // + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`g`.`Rank` BAND 1) = 1)", - // - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` +WHERE (`g`.`Rank` BAND 1) = 1", + // + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`g`.`Rank` BAND 1) = 1)", - // - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` +WHERE (`g`.`Rank` BAND 1) = 1", + // + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((1 BAND `g`.`Rank`) = `g`.`Rank`)"); +WHERE (2 BAND `g`.`Rank`) = `g`.`Rank`"); } public override async Task Where_enum_has_flag_subquery(bool isAsync) @@ -549,45 +507,37 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((1 BAND `g`.`Rank`) = `g`. await base.Where_enum_has_flag_subquery(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (((`g`.`Rank` BAND ( - SELECT TOP 1 `g0`.`Rank` - FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') - ORDER BY `g0`.`Nickname`, `g0`.`SquadId`)) = ( - SELECT TOP 1 `g0`.`Rank` - FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') - ORDER BY `g0`.`Nickname`, `g0`.`SquadId`)) OR (`g`.`Rank` BAND ( - SELECT TOP 1 `g0`.`Rank` - FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') - ORDER BY `g0`.`Nickname`, `g0`.`SquadId`) IS NULL AND ( - SELECT TOP 1 `g0`.`Rank` - FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') - ORDER BY `g0`.`Nickname`, `g0`.`SquadId`) IS NULL))", - // - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` +WHERE (`g`.`Rank` BAND IIF(( + SELECT TOP 1 `g0`.`Rank` + FROM `Gears` AS `g0` + ORDER BY `g0`.`Nickname`, `g0`.`SquadId`) IS NULL, 0, ( + SELECT TOP 1 `g0`.`Rank` + FROM `Gears` AS `g0` + ORDER BY `g0`.`Nickname`, `g0`.`SquadId`))) = IIF(( + SELECT TOP 1 `g0`.`Rank` + FROM `Gears` AS `g0` + ORDER BY `g0`.`Nickname`, `g0`.`SquadId`) IS NULL, 0, ( + SELECT TOP 1 `g0`.`Rank` + FROM `Gears` AS `g0` + ORDER BY `g0`.`Nickname`, `g0`.`SquadId`))", + // + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (((1 BAND ( - SELECT TOP 1 `g0`.`Rank` - FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') - ORDER BY `g0`.`Nickname`, `g0`.`SquadId`)) = ( - SELECT TOP 1 `g0`.`Rank` - FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') - ORDER BY `g0`.`Nickname`, `g0`.`SquadId`)) OR (1 BAND ( - SELECT TOP 1 `g0`.`Rank` - FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') - ORDER BY `g0`.`Nickname`, `g0`.`SquadId`) IS NULL AND ( - SELECT TOP 1 `g0`.`Rank` - FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') - ORDER BY `g0`.`Nickname`, `g0`.`SquadId`) IS NULL))"); +WHERE (2 BAND IIF(( + SELECT TOP 1 `g0`.`Rank` + FROM `Gears` AS `g0` + ORDER BY `g0`.`Nickname`, `g0`.`SquadId`) IS NULL, 0, ( + SELECT TOP 1 `g0`.`Rank` + FROM `Gears` AS `g0` + ORDER BY `g0`.`Nickname`, `g0`.`SquadId`))) = IIF(( + SELECT TOP 1 `g0`.`Rank` + FROM `Gears` AS `g0` + ORDER BY `g0`.`Nickname`, `g0`.`SquadId`) IS NULL, 0, ( + SELECT TOP 1 `g0`.`Rank` + FROM `Gears` AS `g0` + ORDER BY `g0`.`Nickname`, `g0`.`SquadId`))"); } public override async Task Where_enum_has_flag_subquery_with_pushdown(bool isAsync) @@ -595,45 +545,31 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (((1 BAND ( await base.Where_enum_has_flag_subquery_with_pushdown(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (((`g`.`Rank` BAND ( +WHERE ((`g`.`Rank` BAND ( SELECT TOP 1 `g0`.`Rank` FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') ORDER BY `g0`.`Nickname`, `g0`.`SquadId`)) = ( SELECT TOP 1 `g0`.`Rank` FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') - ORDER BY `g0`.`Nickname`, `g0`.`SquadId`)) OR (`g`.`Rank` BAND ( - SELECT TOP 1 `g0`.`Rank` - FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') - ORDER BY `g0`.`Nickname`, `g0`.`SquadId`) IS NULL AND ( + ORDER BY `g0`.`Nickname`, `g0`.`SquadId`)) OR (( SELECT TOP 1 `g0`.`Rank` FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') - ORDER BY `g0`.`Nickname`, `g0`.`SquadId`) IS NULL))", - // - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` + ORDER BY `g0`.`Nickname`, `g0`.`SquadId`) IS NULL)", + // + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (((1 BAND ( +WHERE ((2 BAND ( SELECT TOP 1 `g0`.`Rank` FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') ORDER BY `g0`.`Nickname`, `g0`.`SquadId`)) = ( SELECT TOP 1 `g0`.`Rank` FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') - ORDER BY `g0`.`Nickname`, `g0`.`SquadId`)) OR (1 BAND ( - SELECT TOP 1 `g0`.`Rank` - FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') - ORDER BY `g0`.`Nickname`, `g0`.`SquadId`) IS NULL AND ( + ORDER BY `g0`.`Nickname`, `g0`.`SquadId`)) OR (( SELECT TOP 1 `g0`.`Rank` FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') - ORDER BY `g0`.`Nickname`, `g0`.`SquadId`) IS NULL))"); + ORDER BY `g0`.`Nickname`, `g0`.`SquadId`) IS NULL)"); } public override async Task Where_enum_has_flag_subquery_client_eval(bool isAsync) @@ -641,25 +577,18 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (((1 BAND ( await base.Where_enum_has_flag_subquery_client_eval(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (((`g`.`Rank` BAND ( +WHERE ((`g`.`Rank` BAND ( SELECT TOP 1 `g0`.`Rank` FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') ORDER BY `g0`.`Nickname`, `g0`.`SquadId`)) = ( SELECT TOP 1 `g0`.`Rank` FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') - ORDER BY `g0`.`Nickname`, `g0`.`SquadId`)) OR (`g`.`Rank` BAND ( - SELECT TOP 1 `g0`.`Rank` - FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') - ORDER BY `g0`.`Nickname`, `g0`.`SquadId`) IS NULL AND ( + ORDER BY `g0`.`Nickname`, `g0`.`SquadId`)) OR (( SELECT TOP 1 `g0`.`Rank` FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') - ORDER BY `g0`.`Nickname`, `g0`.`SquadId`) IS NULL))"); + ORDER BY `g0`.`Nickname`, `g0`.`SquadId`) IS NULL)"); } public override async Task Where_enum_has_flag_with_non_nullable_parameter(bool isAsync) @@ -667,11 +596,12 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (((`g`.`Rank` BAND ( await base.Where_enum_has_flag_with_non_nullable_parameter(isAsync); AssertSql( - $@"{AssertSqlHelper.Declaration("@__parameter_0='1'")} + @"@__parameter_0='2' +@__parameter_0='2' SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`g`.`Rank` BAND {AssertSqlHelper.Parameter("@__parameter_0")}) = {AssertSqlHelper.Parameter("@__parameter_0")})"); +WHERE (`g`.`Rank` BAND @__parameter_0) = @__parameter_0"); } public override async Task Where_has_flag_with_nullable_parameter(bool isAsync) @@ -679,11 +609,12 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`g`.`Rank` BAND {AssertSq await base.Where_has_flag_with_nullable_parameter(isAsync); AssertSql( - $@"{AssertSqlHelper.Declaration("@__parameter_0='1' (Nullable = true)")} + @"@__parameter_0='2' (Nullable = true) +@__parameter_0='2' (Nullable = true) SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`g`.`Rank` BAND {AssertSqlHelper.Parameter("@__parameter_0")}) = {AssertSqlHelper.Parameter("@__parameter_0")})"); +WHERE (`g`.`Rank` BAND @__parameter_0) = @__parameter_0"); } public override async Task Select_enum_has_flag(bool isAsync) @@ -691,9 +622,9 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`g`.`Rank` BAND {AssertSq await base.Select_enum_has_flag(isAsync); AssertSql( - $@"SELECT TOP 1 IIF((`g`.`Rank` BAND 1) = 1, 1, 0) AS `hasFlagTrue`, IIF((`g`.`Rank` BAND 2) = 2, 1, 0) AS `hasFlagFalse` + @"SELECT TOP 1 IIF((`g`.`Rank` BAND 2) = 2, TRUE, FALSE) AS `hasFlagTrue`, IIF((`g`.`Rank` BAND 4) = 4, TRUE, FALSE) AS `hasFlagFalse` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`g`.`Rank` BAND 1) = 1)"); +WHERE (`g`.`Rank` BAND 2) = 2"); } public override async Task Where_count_subquery_without_collision(bool isAsync) @@ -701,12 +632,12 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`g`.`Rank` BAND 1) = 1)") await base.Where_count_subquery_without_collision(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (( +WHERE ( SELECT COUNT(*) FROM `Weapons` AS `w` - WHERE `g`.`FullName` = `w`.`OwnerFullName`) = 2)"); + WHERE `g`.`FullName` = `w`.`OwnerFullName`) = 2"); } public override async Task Where_any_subquery_without_collision(bool isAsync) @@ -714,9 +645,9 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (( await base.Where_any_subquery_without_collision(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND EXISTS ( +WHERE EXISTS ( SELECT 1 FROM `Weapons` AS `w` WHERE `g`.`FullName` = `w`.`OwnerFullName`)"); @@ -727,9 +658,9 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND EXISTS ( await base.Select_inverted_boolean(isAsync); AssertSql( - $@"SELECT `w`.`Id`, IIF(`w`.`IsAutomatic` <> True, 1, 0) AS `Manual` + @"SELECT `w`.`Id`, IIF(`w`.`IsAutomatic` <> TRUE, TRUE, FALSE) AS `Manual` FROM `Weapons` AS `w` -WHERE `w`.`IsAutomatic` = True"); +WHERE `w`.`IsAutomatic` = TRUE"); } public override async Task Select_comparison_with_null(bool isAsync) @@ -737,13 +668,14 @@ WHERE `w`.`IsAutomatic` = True"); await base.Select_comparison_with_null(isAsync); AssertSql( - $@"{AssertSqlHelper.Declaration("@__ammunitionType_0='1' (Nullable = true)")} + @"@__ammunitionType_0='1' (Nullable = true) +@__ammunitionType_0='1' (Nullable = true) -SELECT `w`.`Id`, IIF((`w`.`AmmunitionType` = {AssertSqlHelper.Parameter("@__ammunitionType_0")}) AND `w`.`AmmunitionType` IS NOT NULL, 1, 0) AS `Cartridge` +SELECT `w`.`Id`, IIF((`w`.`AmmunitionType` = @__ammunitionType_0) AND (`w`.`AmmunitionType` IS NOT NULL), TRUE, FALSE) AS `Cartridge` FROM `Weapons` AS `w` -WHERE `w`.`AmmunitionType` = {AssertSqlHelper.Parameter("@__ammunitionType_0")}", - // - $@"SELECT `w`.`Id`, IIF(`w`.`AmmunitionType` IS NULL, 1, 0) AS `Cartridge` +WHERE `w`.`AmmunitionType` = @__ammunitionType_0", + // + @"SELECT `w`.`Id`, IIF(`w`.`AmmunitionType` IS NULL, TRUE, FALSE) AS `Cartridge` FROM `Weapons` AS `w` WHERE `w`.`AmmunitionType` IS NULL"); } @@ -753,24 +685,20 @@ WHERE `w`.`AmmunitionType` IS NULL"); await base.Select_null_parameter(isAsync); AssertSql( - $@"{AssertSqlHelper.Declaration("@__ammunitionType_0='1' (Nullable = true)")} + @"@__ammunitionType_0='1' (Nullable = true) -SELECT `w`.`Id`, {AssertSqlHelper.Parameter("@__ammunitionType_0")} AS `AmmoType` +SELECT `w`.`Id`, @__ammunitionType_0 AS `AmmoType` FROM `Weapons` AS `w`", // - $@"@__ammunitionType_0=NULL (DbType = Int32) - -SELECT `w`.`Id`, {AssertSqlHelper.Parameter("@__ammunitionType_0")} AS `AmmoType` + @"SELECT `w`.`Id`, NULL AS `AmmoType` FROM `Weapons` AS `w`", // - $@"{AssertSqlHelper.Declaration("@__ammunitionType_0='2' (Nullable = true)")} + @"@__ammunitionType_0='2' (Nullable = true) -SELECT `w`.`Id`, {AssertSqlHelper.Parameter("@__ammunitionType_0")} AS `AmmoType` +SELECT `w`.`Id`, @__ammunitionType_0 AS `AmmoType` FROM `Weapons` AS `w`", // - $@"@__ammunitionType_0=NULL (DbType = Int32) - -SELECT `w`.`Id`, {AssertSqlHelper.Parameter("@__ammunitionType_0")} AS `AmmoType` + @"SELECT `w`.`Id`, NULL AS `AmmoType` FROM `Weapons` AS `w`"); } @@ -779,10 +707,7 @@ FROM `Weapons` AS `w`"); await base.Select_ternary_operation_with_boolean(isAsync); AssertSql( - $@"SELECT `w`.`Id`, CASE - WHEN `w`.`IsAutomatic` = True THEN 1 - ELSE 0 -END AS `Num` + @"SELECT `w`.`Id`, IIF(`w`.`IsAutomatic` = TRUE, 1, 0) AS `Num` FROM `Weapons` AS `w`"); } @@ -791,10 +716,7 @@ FROM `Weapons` AS `w`"); await base.Select_ternary_operation_with_inverted_boolean(isAsync); AssertSql( - $@"SELECT `w`.`Id`, CASE - WHEN `w`.`IsAutomatic` <> True THEN 1 - ELSE 0 -END AS `Num` + @"SELECT `w`.`Id`, IIF(`w`.`IsAutomatic` <> TRUE, 1, 0) AS `Num` FROM `Weapons` AS `w`"); } @@ -803,12 +725,9 @@ FROM `Weapons` AS `w`"); await base.Select_ternary_operation_with_has_value_not_null(isAsync); AssertSql( - $@"SELECT `w`.`Id`, CASE - WHEN `w`.`AmmunitionType` IS NOT NULL AND (`w`.`AmmunitionType` = 1) THEN 'Yes' - ELSE 'No' -END AS `IsCartridge` + @"SELECT `w`.`Id`, IIF((`w`.`AmmunitionType` IS NOT NULL) AND (`w`.`AmmunitionType` = 1), 'Yes', 'No') AS `IsCartridge` FROM `Weapons` AS `w` -WHERE `w`.`AmmunitionType` IS NOT NULL AND (`w`.`AmmunitionType` = 1)"); +WHERE (`w`.`AmmunitionType` IS NOT NULL) AND (`w`.`AmmunitionType` = 1)"); } public override async Task Select_ternary_operation_multiple_conditions(bool isAsync) @@ -816,10 +735,7 @@ WHERE `w`.`AmmunitionType` IS NOT NULL AND (`w`.`AmmunitionType` = 1)"); await base.Select_ternary_operation_multiple_conditions(isAsync); AssertSql( - $@"SELECT `w`.`Id`, CASE - WHEN (`w`.`AmmunitionType` = 2) AND (`w`.`SynergyWithId` = 1) THEN 'Yes' - ELSE 'No' -END AS `IsCartridge` + @"SELECT `w`.`Id`, IIF((`w`.`AmmunitionType` = 2) AND (`w`.`SynergyWithId` = 1), 'Yes', 'No') AS `IsCartridge` FROM `Weapons` AS `w`"); } @@ -828,10 +744,7 @@ FROM `Weapons` AS `w`"); await base.Select_ternary_operation_multiple_conditions_2(isAsync); AssertSql( - $@"SELECT `w`.`Id`, CASE - WHEN (`w`.`IsAutomatic` <> True) AND (`w`.`SynergyWithId` = 1) THEN 'Yes' - ELSE 'No' -END AS `IsCartridge` + @"SELECT `w`.`Id`, IIF((`w`.`IsAutomatic` <> TRUE) AND (`w`.`SynergyWithId` = 1), 'Yes', 'No') AS `IsCartridge` FROM `Weapons` AS `w`"); } @@ -840,7 +753,7 @@ FROM `Weapons` AS `w`"); await base.Select_multiple_conditions(isAsync); AssertSql( - $@"SELECT `w`.`Id`, IIF((`w`.`IsAutomatic` <> True) AND ((`w`.`SynergyWithId` = 1) AND `w`.`SynergyWithId` IS NOT NULL), 1, 0) AS `IsCartridge` + @"SELECT `w`.`Id`, IIF((`w`.`IsAutomatic` <> TRUE) AND ((`w`.`SynergyWithId` = 1) AND (`w`.`SynergyWithId` IS NOT NULL)), TRUE, FALSE) AS `IsCartridge` FROM `Weapons` AS `w`"); } @@ -849,13 +762,7 @@ FROM `Weapons` AS `w`"); await base.Select_nested_ternary_operations(isAsync); AssertSql( - $@"SELECT `w`.`Id`, CASE - WHEN `w`.`IsAutomatic` <> True THEN CASE - WHEN `w`.`AmmunitionType` = 1 THEN 'ManualCartridge' - ELSE 'Manual' - END - ELSE 'Auto' -END AS `IsManualCartridge` + @"SELECT `w`.`Id`, IIF(`w`.`IsAutomatic` <> TRUE, IIF(`w`.`AmmunitionType` = 1, 'ManualCartridge', 'Manual'), 'Auto') AS `IsManualCartridge` FROM `Weapons` AS `w`"); } @@ -864,75 +771,72 @@ FROM `Weapons` AS `w`"); await base.Null_propagation_optimization1(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (IIF((`g`.`LeaderNickname` = 'Marcus') AND `g`.`LeaderNickname` IS NOT NULL, 1, 0) = True)"); +WHERE (`g`.`LeaderNickname` = 'Marcus') AND (`g`.`LeaderNickname` IS NOT NULL)"); } public override async Task Null_propagation_optimization2(bool isAsync) { await base.Null_propagation_optimization2(isAsync); - // issue #16050 - // AssertSql( - // $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - //FROM `Gears` AS `g` - //WHERE `g`.`Discriminator` IN ('Officer', 'Gear') AND `g`.`LeaderNickname` LIKE '%us'"); + AssertSql( + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` +FROM `Gears` AS `g` +WHERE IIF(`g`.`LeaderNickname` IS NULL, NULL, IIF((`g`.`LeaderNickname` IS NOT NULL) AND (`g`.`LeaderNickname` LIKE '%us'), TRUE, FALSE)) = TRUE"); } public override async Task Null_propagation_optimization3(bool isAsync) { await base.Null_propagation_optimization3(isAsync); - // issue #16050 - // AssertSql( - // $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - //FROM `Gears` AS `g` - //WHERE `g`.`Discriminator` IN ('Officer', 'Gear') AND `g`.`LeaderNickname` LIKE '%us'"); + AssertSql( + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` +FROM `Gears` AS `g` +WHERE IIF(`g`.`LeaderNickname` IS NOT NULL, IIF(`g`.`LeaderNickname` LIKE '%us', TRUE, FALSE), NULL) = TRUE"); } public override async Task Null_propagation_optimization4(bool isAsync) { await base.Null_propagation_optimization4(isAsync); - // issue #16050 - // AssertSql( - // $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - //FROM `Gears` AS `g` - //WHERE `g`.`Discriminator` IN ('Officer', 'Gear') AND (CAST(LEN(`g`.`LeaderNickname`) AS int) = 5)"); + AssertSql( + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` +FROM `Gears` AS `g` +WHERE (IIF(`g`.`LeaderNickname` IS NULL, NULL, CLNG(LEN(`g`.`LeaderNickname`))) = 5) AND (IIF(`g`.`LeaderNickname` IS NULL, NULL, CLNG(LEN(`g`.`LeaderNickname`))) IS NOT NULL)"); + } public override async Task Null_propagation_optimization5(bool isAsync) { await base.Null_propagation_optimization5(isAsync); - // issue #16050 - // AssertSql( - // $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - //FROM `Gears` AS `g` - //WHERE `g`.`Discriminator` IN ('Officer', 'Gear') AND (CAST(LEN(`g`.`LeaderNickname`) AS int) = 5)"); + AssertSql( + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` +FROM `Gears` AS `g` +WHERE (IIF(`g`.`LeaderNickname` IS NOT NULL, CLNG(LEN(`g`.`LeaderNickname`)), NULL) = 5) AND (IIF(`g`.`LeaderNickname` IS NOT NULL, CLNG(LEN(`g`.`LeaderNickname`)), NULL) IS NOT NULL)"); + } public override async Task Null_propagation_optimization6(bool isAsync) { await base.Null_propagation_optimization6(isAsync); - // issue #16050 - // AssertSql( - // $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - //FROM `Gears` AS `g` - //WHERE `g`.`Discriminator` IN ('Officer', 'Gear') AND (CAST(LEN(`g`.`LeaderNickname`) AS int) = 5)"); + AssertSql( + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` +FROM `Gears` AS `g` +WHERE (IIF(`g`.`LeaderNickname` IS NOT NULL, CLNG(LEN(`g`.`LeaderNickname`)), NULL) = 5) AND (IIF(`g`.`LeaderNickname` IS NOT NULL, CLNG(LEN(`g`.`LeaderNickname`)), NULL) IS NOT NULL)"); + } public override async Task Select_null_propagation_optimization7(bool isAsync) { await base.Select_null_propagation_optimization7(isAsync); - // issue #16050 - // AssertSql( - // $@"SELECT `g`.`LeaderNickname` + `g`.`LeaderNickname` - //FROM `Gears` AS `g` - //WHERE `g`.`Discriminator` IN ('Officer', 'Gear')"); + AssertSql( + @"SELECT IIF(`g`.`LeaderNickname` IS NOT NULL, `g`.`LeaderNickname` & `g`.`LeaderNickname`, NULL) +FROM `Gears` AS `g`"); + } public override async Task Select_null_propagation_optimization8(bool isAsync) @@ -950,9 +854,8 @@ WHERE `g`.`Discriminator` IN ('Officer', 'Gear')"); await base.Select_null_propagation_optimization9(isAsync); AssertSql( - $@"SELECT CAST(LEN(`g`.`FullName`) AS int) -FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); + @"SELECT CLNG(LEN(`g`.`FullName`)) +FROM `Gears` AS `g`"); } public override async Task Select_null_propagation_negative1(bool isAsync) @@ -960,12 +863,8 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); await base.Select_null_propagation_negative1(isAsync); AssertSql( - $@"SELECT CASE - WHEN `g`.`LeaderNickname` IS NOT NULL THEN IIF((CAST(LEN(`g`.`Nickname`) AS int) = 5) AND LEN(`g`.`Nickname`) IS NOT NULL, 1, 0) - ELSE NULL -END -FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); + @"SELECT IIF(`g`.`LeaderNickname` IS NOT NULL, IIF(CLNG(LEN(`g`.`Nickname`)) = 5, TRUE, FALSE), NULL) +FROM `Gears` AS `g`"); } public override async Task Select_null_propagation_negative2(bool isAsync) @@ -973,17 +872,9 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); await base.Select_null_propagation_negative2(isAsync); AssertSql( - $@"SELECT CASE - WHEN `g`.`LeaderNickname` IS NOT NULL THEN `t`.`LeaderNickname` - ELSE NULL -END + @"SELECT IIF(`g`.`LeaderNickname` IS NOT NULL, `g0`.`LeaderNickname`, NULL) FROM `Gears` AS `g`, -( - SELECT `g0`.`Nickname`, `g0`.`SquadId`, `g0`.`AssignedCityName`, `g0`.`CityOfBirthName`, `g0`.`Discriminator`, `g0`.`FullName`, `g0`.`HasSoulPatch`, `g0`.`LeaderNickname`, `g0`.`LeaderSquadId`, `g0`.`Rank` - FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') -) AS `t` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); +`Gears` AS `g0`"); } public override async Task Select_null_propagation_negative3(bool isAsync) @@ -1042,12 +933,8 @@ ORDER BY `t`.`Nickname`"); await base.Select_null_propagation_negative6(isAsync); AssertSql( - $@"SELECT CASE - WHEN `g`.`LeaderNickname` IS NOT NULL THEN IIF(((CAST(LEN(`g`.`LeaderNickname`) AS int) <> CAST(LEN(`g`.`LeaderNickname`) AS int)) OR LEN(`g`.`LeaderNickname`) IS NULL) AND LEN(`g`.`LeaderNickname`) IS NOT NULL, 1, 0) - ELSE NULL -END -FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); + @"SELECT IIF(`g`.`LeaderNickname` IS NOT NULL, IIF(CLNG(LEN(`g`.`LeaderNickname`)) <> CLNG(LEN(`g`.`LeaderNickname`)), TRUE, FALSE), NULL) +FROM `Gears` AS `g`"); } public override async Task Select_null_propagation_negative7(bool isAsync) @@ -1055,12 +942,8 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); await base.Select_null_propagation_negative7(isAsync); AssertSql( - $@"SELECT CASE - WHEN `g`.`LeaderNickname` IS NOT NULL THEN IIF(((`g`.`LeaderNickname` = `g`.`LeaderNickname`) AND `g`.`LeaderNickname` IS NOT NULL) OR `g`.`LeaderNickname` IS NULL, 1, 0) - ELSE NULL -END -FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); + @"SELECT IIF(`g`.`LeaderNickname` IS NOT NULL, TRUE, NULL) +FROM `Gears` AS `g`"); } public override async Task Select_null_propagation_negative8(bool isAsync) @@ -1068,18 +951,11 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); await base.Select_null_propagation_negative8(isAsync); AssertSql( - $@"SELECT CASE - WHEN `s`.`Id` IS NOT NULL THEN `c`.`Name` - ELSE NULL -END -FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -LEFT JOIN `Squads` AS `s` ON `t0`.`SquadId` = `s`.`Id` -LEFT JOIN `Cities` AS `c` ON `t0`.`AssignedCityName` = `c`.`Name`"); + @"SELECT IIF(`s`.`Id` IS NOT NULL, `c`.`Name`, NULL) +FROM ((`Tags` AS `t` +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`)) +LEFT JOIN `Squads` AS `s` ON `g`.`SquadId` = `s`.`Id`) +LEFT JOIN `Cities` AS `c` ON `g`.`AssignedCityName` = `c`.`Name`"); } public override async Task Select_null_propagation_works_for_navigations_with_composite_keys(bool isAsync) @@ -1087,13 +963,9 @@ LEFT JOIN `Cities` AS `c` ON `t0`.`AssignedCityName` = `c`.`Name`"); await base.Select_null_propagation_works_for_navigations_with_composite_keys(isAsync); AssertSql( - $@"SELECT `t0`.`Nickname` + @"SELECT `g`.`Nickname` FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`)"); +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`)"); } public override async Task Select_null_propagation_works_for_multiple_navigations_with_composite_keys(bool isAsync) @@ -1101,23 +973,12 @@ LEFT JOIN ( await base.Select_null_propagation_works_for_multiple_navigations_with_composite_keys(isAsync); AssertSql( - $@"SELECT CASE - WHEN `c`.`Name` IS NOT NULL THEN `c`.`Name` - ELSE NULL -END -FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -LEFT JOIN `Tags` AS `t1` ON ((`t0`.`Nickname` = `t1`.`GearNickName`) OR (`t0`.`Nickname` IS NULL AND `t1`.`GearNickName` IS NULL)) AND ((`t0`.`SquadId` = `t1`.`GearSquadId`) OR (`t0`.`SquadId` IS NULL AND `t1`.`GearSquadId` IS NULL)) -LEFT JOIN ( - SELECT `g0`.`Nickname`, `g0`.`SquadId`, `g0`.`AssignedCityName`, `g0`.`CityOfBirthName`, `g0`.`Discriminator`, `g0`.`FullName`, `g0`.`HasSoulPatch`, `g0`.`LeaderNickname`, `g0`.`LeaderSquadId`, `g0`.`Rank` - FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') -) AS `t2` ON (`t1`.`GearNickName` = `t2`.`Nickname`) AND (`t1`.`GearSquadId` = `t2`.`SquadId`) -LEFT JOIN `Cities` AS `c` ON `t2`.`AssignedCityName` = `c`.`Name`"); + @"SELECT IIF(`c`.`Name` IS NOT NULL, `c`.`Name`, NULL) +FROM (((`Tags` AS `t` +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`)) +LEFT JOIN `Tags` AS `t0` ON ((`g`.`Nickname` = `t0`.`GearNickName`) OR ((`g`.`Nickname` IS NULL) AND (`t0`.`GearNickName` IS NULL))) AND ((`g`.`SquadId` = `t0`.`GearSquadId`) OR ((`g`.`SquadId` IS NULL) AND (`t0`.`GearSquadId` IS NULL)))) +LEFT JOIN `Gears` AS `g0` ON (`t0`.`GearNickName` = `g0`.`Nickname`) AND (`t0`.`GearSquadId` = `g0`.`SquadId`)) +LEFT JOIN `Cities` AS `c` ON `g0`.`AssignedCityName` = `c`.`Name`"); } public override async Task Select_conditional_with_anonymous_type_and_null_constant(bool isAsync) @@ -1125,9 +986,8 @@ LEFT JOIN `Cities` AS `c` ON `t2`.`AssignedCityName` = `c`.`Name`"); await base.Select_conditional_with_anonymous_type_and_null_constant(isAsync); AssertSql( - $@"SELECT IIF(`g`.`LeaderNickname` IS NOT NULL, 1, 0), `g`.`HasSoulPatch` + @"SELECT IIF(`g`.`LeaderNickname` IS NOT NULL, TRUE, FALSE), `g`.`HasSoulPatch` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') ORDER BY `g`.`Nickname`"); } @@ -1136,9 +996,8 @@ ORDER BY `g`.`Nickname`"); await base.Select_conditional_with_anonymous_types(isAsync); AssertSql( - $@"SELECT IIF(`g`.`LeaderNickname` IS NOT NULL, 1, 0), `g`.`Nickname`, `g`.`FullName` + @"SELECT IIF(`g`.`LeaderNickname` IS NOT NULL, TRUE, FALSE), `g`.`Nickname`, `g`.`FullName` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') ORDER BY `g`.`Nickname`"); } @@ -1147,9 +1006,8 @@ ORDER BY `g`.`Nickname`"); await base.Select_coalesce_with_anonymous_types(isAsync); AssertSql( - $@"SELECT `g`.`LeaderNickname`, `g`.`FullName` + @"SELECT `g`.`LeaderNickname`, `g`.`FullName` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') ORDER BY `g`.`Nickname`"); } @@ -1166,9 +1024,9 @@ ORDER BY `g`.`Nickname`"); await base.Where_member_access_on_anonymous_type(isAsync); AssertSql( - $@"SELECT `g`.`Nickname` + @"SELECT `g`.`Nickname` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`LeaderNickname` = 'Marcus')"); +WHERE `g`.`LeaderNickname` = 'Marcus'"); } public override async Task Where_compare_anonymous_types_with_uncorrelated_members(bool isAsync) @@ -1176,9 +1034,9 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`LeaderNickname` = 'Ma await base.Where_compare_anonymous_types_with_uncorrelated_members(isAsync); AssertSql( - $@"SELECT `g`.`Nickname` + @"SELECT `g`.`Nickname` FROM `Gears` AS `g` -WHERE False = True"); +WHERE 0 = 1"); } public override async Task Select_Where_Navigation_Scalar_Equals_Navigation_Scalar(bool isAsync) @@ -1207,14 +1065,10 @@ WHERE (`t1`.`Nickname` = `t2`.`Nickname`) OR (`t1`.`Nickname` IS NULL AND `t2`.` await base.Select_Singleton_Navigation_With_Member_Access(isAsync); AssertSql( - $@"SELECT `t0`.`Nickname`, `t0`.`SquadId`, `t0`.`AssignedCityName`, `t0`.`CityOfBirthName`, `t0`.`Discriminator`, `t0`.`FullName`, `t0`.`HasSoulPatch`, `t0`.`LeaderNickname`, `t0`.`LeaderSquadId`, `t0`.`Rank` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -WHERE (`t0`.`Nickname` = 'Marcus') AND ((`t0`.`CityOfBirthName` <> 'Ephyra') OR `t0`.`CityOfBirthName` IS NULL)"); +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`) +WHERE (`g`.`Nickname` = 'Marcus') AND ((`g`.`CityOfBirthName` <> 'Ephyra') OR (`g`.`CityOfBirthName` IS NULL))"); } public override async Task Select_Where_Navigation(bool isAsync) @@ -1222,14 +1076,10 @@ WHERE (`t0`.`Nickname` = 'Marcus') AND ((`t0`.`CityOfBirthName` <> 'Ephyra') OR await base.Select_Where_Navigation(isAsync); AssertSql( - $@"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`Note` + @"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`IssueDate`, `t`.`Note` FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -WHERE `t0`.`Nickname` = 'Marcus'"); +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`) +WHERE `g`.`Nickname` = 'Marcus'"); } public override async Task Select_Where_Navigation_Equals_Navigation(bool isAsync) @@ -1258,14 +1108,10 @@ WHERE ((`t1`.`Nickname` = `t2`.`Nickname`) OR (`t1`.`Nickname` IS NULL AND `t2`. await base.Select_Where_Navigation_Null(isAsync); AssertSql( - $@"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`Note` + @"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`IssueDate`, `t`.`Note` FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -WHERE `t0`.`Nickname` IS NULL"); +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`) +WHERE (`g`.`Nickname` IS NULL) OR (`g`.`SquadId` IS NULL)"); } public override async Task Select_Where_Navigation_Null_Reverse(bool isAsync) @@ -1273,14 +1119,10 @@ WHERE `t0`.`Nickname` IS NULL"); await base.Select_Where_Navigation_Null_Reverse(isAsync); AssertSql( - $@"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`Note` + @"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`IssueDate`, `t`.`Note` FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -WHERE `t0`.`Nickname` IS NULL"); +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`) +WHERE (`g`.`Nickname` IS NULL) OR (`g`.`SquadId` IS NULL)"); } public override async Task Select_Where_Navigation_Scalar_Equals_Navigation_Scalar_Projected(bool isAsync) @@ -1309,7 +1151,7 @@ WHERE (`t1`.`Nickname` = `t2`.`Nickname`) OR (`t1`.`Nickname` IS NULL AND `t2`.` await base.Optional_Navigation_Null_Coalesce_To_Clr_Type(isAsync); AssertSql( - $@"SELECT TOP 1 IIF(`w0`.`IsAutomatic` IS NULL, False, `w0`.`IsAutomatic`) AS `IsAutomatic` + @"SELECT TOP 1 IIF(`w0`.`IsAutomatic` IS NULL, FALSE, `w0`.`IsAutomatic`) AS `IsAutomatic` FROM `Weapons` AS `w` LEFT JOIN `Weapons` AS `w0` ON `w`.`SynergyWithId` = `w0`.`Id` ORDER BY `w`.`Id`"); @@ -1320,13 +1162,17 @@ ORDER BY `w`.`Id`"); await base.Where_subquery_boolean(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (( - SELECT TOP 1 `w`.`IsAutomatic` - FROM `Weapons` AS `w` - WHERE `g`.`FullName` = `w`.`OwnerFullName` - ORDER BY `w`.`Id`) = True)"); +WHERE IIF(( + SELECT TOP 1 `w`.`IsAutomatic` + FROM `Weapons` AS `w` + WHERE `g`.`FullName` = `w`.`OwnerFullName` + ORDER BY `w`.`Id`) IS NULL, FALSE, ( + SELECT TOP 1 `w`.`IsAutomatic` + FROM `Weapons` AS `w` + WHERE `g`.`FullName` = `w`.`OwnerFullName` + ORDER BY `w`.`Id`)) = TRUE"); } public override async Task Where_subquery_boolean_with_pushdown(bool isAsync) @@ -1334,13 +1180,13 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (( await base.Where_subquery_boolean_with_pushdown(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (( +WHERE ( SELECT TOP 1 `w`.`IsAutomatic` FROM `Weapons` AS `w` WHERE `g`.`FullName` = `w`.`OwnerFullName` - ORDER BY `w`.`Id`) = True)"); + ORDER BY `w`.`Id`) = TRUE"); } public override async Task Where_subquery_distinct_firstordefault_boolean(bool isAsync) @@ -1417,12 +1263,15 @@ ORDER BY `g`.`Nickname`"); await base.Where_subquery_distinct_singleordefault_boolean2(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`g`.`HasSoulPatch` = True) AND (( - SELECT DISTINCT TOP 1 `w`.`IsAutomatic` - FROM `Weapons` AS `w` - WHERE (`g`.`FullName` = `w`.`OwnerFullName`) AND (CHARINDEX('Lancer', `w`.`Name`) > 0)) = True)) +WHERE (`g`.`HasSoulPatch` = TRUE) AND (IIF(( + SELECT DISTINCT TOP 1 `w`.`IsAutomatic` + FROM `Weapons` AS `w` + WHERE (`g`.`FullName` = `w`.`OwnerFullName`) AND (`w`.`Name` LIKE '%Lancer%')) IS NULL, FALSE, ( + SELECT DISTINCT TOP 1 `w`.`IsAutomatic` + FROM `Weapons` AS `w` + WHERE (`g`.`FullName` = `w`.`OwnerFullName`) AND (`w`.`Name` LIKE '%Lancer%'))) = TRUE) ORDER BY `g`.`Nickname`"); } @@ -1552,15 +1401,13 @@ WHERE {AssertSqlHelper.Parameter("@_outer_FullName5")} = `w5`.`OwnerFullName`"); await base.Concat_with_count(isAsync); AssertSql( - $@"SELECT COUNT(*) + @"SELECT COUNT(*) FROM ( SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') UNION ALL SELECT `g0`.`Nickname`, `g0`.`SquadId`, `g0`.`AssignedCityName`, `g0`.`CityOfBirthName`, `g0`.`Discriminator`, `g0`.`FullName`, `g0`.`HasSoulPatch`, `g0`.`LeaderNickname`, `g0`.`LeaderSquadId`, `g0`.`Rank` FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') ) AS `t`"); } @@ -1569,15 +1416,13 @@ FROM ( await base.Concat_scalars_with_count(isAsync); AssertSql( - $@"SELECT COUNT(*) + @"SELECT COUNT(*) FROM ( SELECT `g`.`Nickname` FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') UNION ALL SELECT `g0`.`FullName` AS `Nickname` FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') ) AS `t`"); } @@ -1586,15 +1431,13 @@ FROM ( await base.Concat_anonymous_with_count(isAsync); AssertSql( - $@"SELECT COUNT(*) + @"SELECT COUNT(*) FROM ( SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `g`.`Nickname` AS `Name` FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') UNION ALL SELECT `g0`.`Nickname`, `g0`.`SquadId`, `g0`.`AssignedCityName`, `g0`.`CityOfBirthName`, `g0`.`Discriminator`, `g0`.`FullName`, `g0`.`HasSoulPatch`, `g0`.`LeaderNickname`, `g0`.`LeaderSquadId`, `g0`.`Rank`, `g0`.`FullName` AS `Name` FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') ) AS `t`"); } @@ -1603,18 +1446,16 @@ FROM ( await base.Concat_with_scalar_projection(isAsync); AssertSql( - $@"SELECT `t`.`Nickname` + @"SELECT `t`.`Nickname` FROM ( SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') UNION ALL SELECT `g0`.`Nickname`, `g0`.`SquadId`, `g0`.`AssignedCityName`, `g0`.`CityOfBirthName`, `g0`.`Discriminator`, `g0`.`FullName`, `g0`.`HasSoulPatch`, `g0`.`LeaderNickname`, `g0`.`LeaderSquadId`, `g0`.`Rank` FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') ) AS `t`"); } - + public override async Task Select_subquery_distinct_firstordefault(bool isAsync) { await base.Select_subquery_distinct_firstordefault(isAsync); @@ -1637,14 +1478,10 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`HasSoulPatch` = True) await base.Singleton_Navigation_With_Member_Access(isAsync); AssertSql( - $@"SELECT `t0`.`CityOfBirthName` AS `B` + @"SELECT `g`.`CityOfBirthName` AS `B` FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -WHERE (`t0`.`Nickname` = 'Marcus') AND ((`t0`.`CityOfBirthName` <> 'Ephyra') OR `t0`.`CityOfBirthName` IS NULL)"); +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`) +WHERE (`g`.`Nickname` = 'Marcus') AND ((`g`.`CityOfBirthName` <> 'Ephyra') OR (`g`.`CityOfBirthName` IS NULL))"); } public override async Task GroupJoin_Composite_Key(bool isAsync) @@ -1652,13 +1489,9 @@ WHERE (`t0`.`Nickname` = 'Marcus') AND ((`t0`.`CityOfBirthName` <> 'Ephyra') OR await base.GroupJoin_Composite_Key(isAsync); AssertSql( - $@"SELECT `t0`.`Nickname`, `t0`.`SquadId`, `t0`.`AssignedCityName`, `t0`.`CityOfBirthName`, `t0`.`Discriminator`, `t0`.`FullName`, `t0`.`HasSoulPatch`, `t0`.`LeaderNickname`, `t0`.`LeaderSquadId`, `t0`.`Rank` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Tags` AS `t` -INNER JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`)"); +INNER JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`)"); } public override async Task Join_navigation_translated_to_subquery_composite_key(bool isAsync) @@ -1666,18 +1499,13 @@ INNER JOIN ( await base.Join_navigation_translated_to_subquery_composite_key(isAsync); AssertSql( - $@"SELECT `g`.`FullName`, `t1`.`Note` + @"SELECT `g`.`FullName`, `t0`.`Note` FROM `Gears` AS `g` INNER JOIN ( - SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`Note`, `t0`.`Nickname`, `t0`.`SquadId`, `t0`.`AssignedCityName`, `t0`.`CityOfBirthName`, `t0`.`Discriminator`, `t0`.`FullName`, `t0`.`HasSoulPatch`, `t0`.`LeaderNickname`, `t0`.`LeaderSquadId`, `t0`.`Rank` + SELECT `t`.`Note`, `g0`.`FullName` FROM `Tags` AS `t` - LEFT JOIN ( - SELECT `g0`.`Nickname`, `g0`.`SquadId`, `g0`.`AssignedCityName`, `g0`.`CityOfBirthName`, `g0`.`Discriminator`, `g0`.`FullName`, `g0`.`HasSoulPatch`, `g0`.`LeaderNickname`, `g0`.`LeaderSquadId`, `g0`.`Rank` - FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') - ) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -) AS `t1` ON `g`.`FullName` = `t1`.`FullName` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); + LEFT JOIN `Gears` AS `g0` ON (`t`.`GearNickName` = `g0`.`Nickname`) AND (`t`.`GearSquadId` = `g0`.`SquadId`) +) AS `t0` ON `g`.`FullName` = `t0`.`FullName`"); } public override async Task Join_with_order_by_on_inner_sequence_navigation_translated_to_subquery_composite_key(bool isAsync) @@ -1685,18 +1513,13 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); await base.Join_with_order_by_on_inner_sequence_navigation_translated_to_subquery_composite_key(isAsync); AssertSql( - $@"SELECT `g`.`FullName`, `t1`.`Note` + @"SELECT `g`.`FullName`, `t0`.`Note` FROM `Gears` AS `g` INNER JOIN ( - SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`Note`, `t0`.`Nickname`, `t0`.`SquadId`, `t0`.`AssignedCityName`, `t0`.`CityOfBirthName`, `t0`.`Discriminator`, `t0`.`FullName`, `t0`.`HasSoulPatch`, `t0`.`LeaderNickname`, `t0`.`LeaderSquadId`, `t0`.`Rank` + SELECT `t`.`Note`, `g0`.`FullName` FROM `Tags` AS `t` - LEFT JOIN ( - SELECT `g0`.`Nickname`, `g0`.`SquadId`, `g0`.`AssignedCityName`, `g0`.`CityOfBirthName`, `g0`.`Discriminator`, `g0`.`FullName`, `g0`.`HasSoulPatch`, `g0`.`LeaderNickname`, `g0`.`LeaderSquadId`, `g0`.`Rank` - FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') - ) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -) AS `t1` ON `g`.`FullName` = `t1`.`FullName` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); + LEFT JOIN `Gears` AS `g0` ON (`t`.`GearNickName` = `g0`.`Nickname`) AND (`t`.`GearSquadId` = `g0`.`SquadId`) +) AS `t0` ON `g`.`FullName` = `t0`.`FullName`"); } public override async Task Join_with_order_by_without_skip_or_take(bool isAsync) @@ -1704,13 +1527,12 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); await base.Join_with_order_by_without_skip_or_take(isAsync); AssertSql( - $@"SELECT `t`.`Name`, `g`.`FullName` + @"SELECT `t`.`Name`, `g`.`FullName` FROM `Gears` AS `g` INNER JOIN ( - SELECT `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` + SELECT `w`.`Name`, `w`.`OwnerFullName` FROM `Weapons` AS `w` -) AS `t` ON `g`.`FullName` = `t`.`OwnerFullName` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); +) AS `t` ON `g`.`FullName` = `t`.`OwnerFullName`"); } public override async Task Join_with_order_by_without_skip_or_take_nested(bool isAsync) @@ -1718,15 +1540,14 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); await base.Join_with_order_by_without_skip_or_take_nested(isAsync); AssertSql( - $@"SELECT `t0`.`Name`, `t`.`FullName` -FROM `Squads` AS `s` + @"SELECT `t0`.`Name`, `t`.`FullName` +FROM (`Squads` AS `s` INNER JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` + SELECT `g`.`SquadId`, `g`.`FullName` FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t` ON `s`.`Id` = `t`.`SquadId` +) AS `t` ON `s`.`Id` = `t`.`SquadId`) INNER JOIN ( - SELECT `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` + SELECT `w`.`Name`, `w`.`OwnerFullName` FROM `Weapons` AS `w` ) AS `t0` ON `t`.`FullName` = `t0`.`OwnerFullName`"); } @@ -1736,13 +1557,13 @@ INNER JOIN ( await base.Collection_with_inheritance_and_join_include_joined(isAsync); AssertSql( - $@"SELECT `t0`.`Nickname`, `t0`.`SquadId`, `t0`.`AssignedCityName`, `t0`.`CityOfBirthName`, `t0`.`Discriminator`, `t0`.`FullName`, `t0`.`HasSoulPatch`, `t0`.`LeaderNickname`, `t0`.`LeaderSquadId`, `t0`.`Rank`, `t1`.`Id`, `t1`.`GearNickName`, `t1`.`GearSquadId`, `t1`.`Note` -FROM `Tags` AS `t` + @"SELECT `t0`.`Nickname`, `t0`.`SquadId`, `t0`.`AssignedCityName`, `t0`.`CityOfBirthName`, `t0`.`Discriminator`, `t0`.`FullName`, `t0`.`HasSoulPatch`, `t0`.`LeaderNickname`, `t0`.`LeaderSquadId`, `t0`.`Rank`, `t1`.`Id`, `t1`.`GearNickName`, `t1`.`GearSquadId`, `t1`.`IssueDate`, `t1`.`Note` +FROM (`Tags` AS `t` INNER JOIN ( SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`Discriminator` = 'Officer') -) AS `t0` ON (`t`.`GearSquadId` = `t0`.`SquadId`) AND (`t`.`GearNickName` = `t0`.`Nickname`) + WHERE `g`.`Discriminator` = 'Officer' +) AS `t0` ON (`t`.`GearSquadId` = `t0`.`SquadId`) AND (`t`.`GearNickName` = `t0`.`Nickname`)) LEFT JOIN `Tags` AS `t1` ON (`t0`.`Nickname` = `t1`.`GearNickName`) AND (`t0`.`SquadId` = `t1`.`GearSquadId`)"); } @@ -1751,11 +1572,11 @@ LEFT JOIN `Tags` AS `t1` ON (`t0`.`Nickname` = `t1`.`GearNickName`) AND (`t0`.`S await base.Collection_with_inheritance_and_join_include_source(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `t0`.`Id`, `t0`.`GearNickName`, `t0`.`GearSquadId`, `t0`.`Note` -FROM `Gears` AS `g` -INNER JOIN `Tags` AS `t` ON (`g`.`SquadId` = `t`.`GearSquadId`) AND (`g`.`Nickname` = `t`.`GearNickName`) + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `t0`.`Id`, `t0`.`GearNickName`, `t0`.`GearSquadId`, `t0`.`IssueDate`, `t0`.`Note` +FROM (`Gears` AS `g` +INNER JOIN `Tags` AS `t` ON (`g`.`SquadId` = `t`.`GearSquadId`) AND (`g`.`Nickname` = `t`.`GearNickName`)) LEFT JOIN `Tags` AS `t0` ON (`g`.`Nickname` = `t0`.`GearNickName`) AND (`g`.`SquadId` = `t0`.`GearSquadId`) -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`Discriminator` = 'Officer')"); +WHERE `g`.`Discriminator` = 'Officer'"); } public override async Task Non_unicode_string_literal_is_used_for_non_unicode_column(bool isAsync) @@ -1783,7 +1604,7 @@ WHERE 'Unknown' = `c`.`Location`"); await base.Non_unicode_parameter_is_used_for_non_unicode_column(isAsync); AssertSql( - $@"{AssertSqlHelper.Declaration("@__value_0='Unknown' (Size = 100) (DbType = AnsiString)")} + $@"{AssertSqlHelper.Declaration("@__value_0='Unknown' (Size = 100)")} SELECT `c`.`Name`, `c`.`Location`, `c`.`Nation` FROM `Cities` AS `c` @@ -1805,12 +1626,12 @@ WHERE `c`.`Location` IN ('Unknown', 'Jacinto''s location', 'Ephyra''s location') await base.Non_unicode_string_literals_is_used_for_non_unicode_column_with_subquery(isAsync); AssertSql( - $@"SELECT `c`.`Name`, `c`.`Location`, `c`.`Nation` + @"SELECT `c`.`Name`, `c`.`Location`, `c`.`Nation` FROM `Cities` AS `c` WHERE (`c`.`Location` = 'Unknown') AND (( SELECT COUNT(*) FROM `Gears` AS `g` - WHERE (`g`.`Discriminator` IN ('Gear', 'Officer') AND (`c`.`Name` = `g`.`CityOfBirthName`)) AND (`g`.`Nickname` = 'Paduk')) = 1)"); + WHERE (`c`.`Name` = `g`.`CityOfBirthName`) AND (`g`.`Nickname` = 'Paduk')) = 1)"); } public override async Task Non_unicode_string_literals_is_used_for_non_unicode_column_in_subquery(bool isAsync) @@ -1818,10 +1639,10 @@ WHERE (`c`.`Location` = 'Unknown') AND (( await base.Non_unicode_string_literals_is_used_for_non_unicode_column_in_subquery(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` INNER JOIN `Cities` AS `c` ON `g`.`CityOfBirthName` = `c`.`Name` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`g`.`Nickname` = 'Marcus') AND (`c`.`Location` = 'Jacinto''s location'))"); +WHERE (`g`.`Nickname` = 'Marcus') AND (`c`.`Location` = 'Jacinto''s location')"); } public override async Task Non_unicode_string_literals_is_used_for_non_unicode_column_with_contains(bool isAsync) @@ -1829,9 +1650,9 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`g`.`Nickname` = 'Marcus' await base.Non_unicode_string_literals_is_used_for_non_unicode_column_with_contains(isAsync); AssertSql( - $@"SELECT `c`.`Name`, `c`.`Location`, `c`.`Nation` + @"SELECT `c`.`Name`, `c`.`Location`, `c`.`Nation` FROM `Cities` AS `c` -WHERE CHARINDEX('Jacinto', `c`.`Location`) > 0"); +WHERE `c`.`Location` LIKE '%Jacinto%'"); } public override async Task Non_unicode_string_literals_is_used_for_non_unicode_column_with_concat(bool isAsync) @@ -1839,9 +1660,9 @@ WHERE CHARINDEX('Jacinto', `c`.`Location`) > 0"); await base.Non_unicode_string_literals_is_used_for_non_unicode_column_with_concat(isAsync); AssertSql( - $@"SELECT `c`.`Name`, `c`.`Location`, `c`.`Nation` + @"SELECT `c`.`Name`, `c`.`Location`, `c`.`Nation` FROM `Cities` AS `c` -WHERE CHARINDEX('Add', `c`.`Location` + 'Added') > 0"); +WHERE IIF(`c`.`Location` IS NULL, '', `c`.`Location`) & 'Added' LIKE '%Add%'"); } public override void Include_on_GroupJoin_SelectMany_DefaultIfEmpty_with_coalesce_result1() @@ -2031,9 +1852,9 @@ ORDER BY `t3`.`FullName0`, `t3`.`FullName`"); await base.Coalesce_operator_in_predicate(isAsync); AssertSql( - $@"SELECT `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` + @"SELECT `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` FROM `Weapons` AS `w` -WHERE IIF(`w`.`IsAutomatic` IS NULL, False, `w`.`IsAutomatic`) = True"); +WHERE IIF(`w`.`IsAutomatic` IS NULL, FALSE, `w`.`IsAutomatic`) = TRUE"); } public override async Task Coalesce_operator_in_predicate_with_other_conditions(bool isAsync) @@ -2041,9 +1862,9 @@ WHERE IIF(`w`.`IsAutomatic` IS NULL, False, `w`.`IsAutomatic`) = True"); await base.Coalesce_operator_in_predicate_with_other_conditions(isAsync); AssertSql( - $@"SELECT `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` + @"SELECT `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` FROM `Weapons` AS `w` -WHERE (`w`.`AmmunitionType` = 1) AND (IIF(`w`.`IsAutomatic` IS NULL, False, `w`.`IsAutomatic`) = True)"); +WHERE (`w`.`AmmunitionType` = 1) AND (IIF(`w`.`IsAutomatic` IS NULL, FALSE, `w`.`IsAutomatic`) = TRUE)"); } public override async Task Coalesce_operator_in_projection_with_other_conditions(bool isAsync) @@ -2051,8 +1872,9 @@ WHERE (`w`.`AmmunitionType` = 1) AND (IIF(`w`.`IsAutomatic` IS NULL, False, `w`. await base.Coalesce_operator_in_projection_with_other_conditions(isAsync); AssertSql( - $@"SELECT IIF(((`w`.`AmmunitionType` = 1) AND `w`.`AmmunitionType` IS NOT NULL) AND (IIF(`w`.`IsAutomatic` IS NULL, False, `w`.`IsAutomatic`) = True), 1, 0) + @"SELECT IIF(((`w`.`AmmunitionType` = 1) AND (`w`.`AmmunitionType` IS NOT NULL)) AND (IIF(`w`.`IsAutomatic` IS NULL, FALSE, `w`.`IsAutomatic`) = TRUE), TRUE, FALSE) FROM `Weapons` AS `w`"); + } public override async Task Optional_navigation_type_compensation_works_with_predicate(bool isAsync) @@ -2060,14 +1882,10 @@ FROM `Weapons` AS `w`"); await base.Optional_navigation_type_compensation_works_with_predicate(isAsync); AssertSql( - $@"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`Note` + @"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`IssueDate`, `t`.`Note` FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -WHERE ((`t`.`Note` <> 'K.I.A.') OR `t`.`Note` IS NULL) AND (`t0`.`HasSoulPatch` = True)"); +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`) +WHERE ((`t`.`Note` <> 'K.I.A.') OR (`t`.`Note` IS NULL)) AND (`g`.`HasSoulPatch` = TRUE)"); } public override async Task Optional_navigation_type_compensation_works_with_predicate2(bool isAsync) @@ -2075,14 +1893,10 @@ WHERE ((`t`.`Note` <> 'K.I.A.') OR `t`.`Note` IS NULL) AND (`t0`.`HasSoulPatch` await base.Optional_navigation_type_compensation_works_with_predicate2(isAsync); AssertSql( - $@"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`Note` + @"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`IssueDate`, `t`.`Note` FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -WHERE `t0`.`HasSoulPatch` = True"); +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`) +WHERE `g`.`HasSoulPatch` = TRUE"); } public override async Task Optional_navigation_type_compensation_works_with_predicate_negated(bool isAsync) @@ -2090,14 +1904,10 @@ WHERE `t0`.`HasSoulPatch` = True"); await base.Optional_navigation_type_compensation_works_with_predicate_negated(isAsync); AssertSql( - $@"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`Note` + @"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`IssueDate`, `t`.`Note` FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -WHERE `t0`.`HasSoulPatch` <> True"); +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`) +WHERE `g`.`HasSoulPatch` <> TRUE"); } public override async Task Optional_navigation_type_compensation_works_with_predicate_negated_complex1(bool isAsync) @@ -2105,17 +1915,10 @@ WHERE `t0`.`HasSoulPatch` <> True"); await base.Optional_navigation_type_compensation_works_with_predicate_negated_complex1(isAsync); AssertSql( - $@"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`Note` + @"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`IssueDate`, `t`.`Note` FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -WHERE CASE - WHEN `t0`.`HasSoulPatch` = True THEN True - ELSE `t0`.`HasSoulPatch` -END <> True"); +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`) +WHERE IIF(`g`.`HasSoulPatch` = TRUE, TRUE, `g`.`HasSoulPatch`) <> TRUE"); } public override async Task Optional_navigation_type_compensation_works_with_predicate_negated_complex2(bool isAsync) @@ -2123,17 +1926,10 @@ END <> True"); await base.Optional_navigation_type_compensation_works_with_predicate_negated_complex2(isAsync); AssertSql( - $@"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`Note` + @"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`IssueDate`, `t`.`Note` FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -WHERE CASE - WHEN `t0`.`HasSoulPatch` <> True THEN False - ELSE `t0`.`HasSoulPatch` -END <> True"); +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`) +WHERE IIF(`g`.`HasSoulPatch` <> TRUE, FALSE, `g`.`HasSoulPatch`) <> TRUE"); } public override async Task Optional_navigation_type_compensation_works_with_conditional_expression(bool isAsync) @@ -2141,14 +1937,10 @@ END <> True"); await base.Optional_navigation_type_compensation_works_with_conditional_expression(isAsync); AssertSql( - $@"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`Note` + @"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`IssueDate`, `t`.`Note` FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -WHERE IIF(`t0`.`HasSoulPatch` = True, 1, 0) = True"); +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`) +WHERE IIF(`g`.`HasSoulPatch` = TRUE, TRUE, FALSE) = TRUE"); } public override async Task Optional_navigation_type_compensation_works_with_binary_expression(bool isAsync) @@ -2156,14 +1948,10 @@ WHERE IIF(`t0`.`HasSoulPatch` = True, 1, 0) = True"); await base.Optional_navigation_type_compensation_works_with_binary_expression(isAsync); AssertSql( - $@"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`Note` + @"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`IssueDate`, `t`.`Note` FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -WHERE (`t0`.`HasSoulPatch` = True) OR (CHARINDEX('Cole', `t`.`Note`) > 0)"); +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`) +WHERE (`g`.`HasSoulPatch` = TRUE) OR (`t`.`Note` LIKE '%Cole%')"); } public override async Task Optional_navigation_type_compensation_works_with_binary_and_expression(bool isAsync) @@ -2171,13 +1959,9 @@ WHERE (`t0`.`HasSoulPatch` = True) OR (CHARINDEX('Cole', `t`.`Note`) > 0)"); await base.Optional_navigation_type_compensation_works_with_binary_and_expression(isAsync); AssertSql( - $@"SELECT IIF((`t0`.`HasSoulPatch` = True) AND (CHARINDEX('Cole', `t`.`Note`) > 0), 1, 0) + @"SELECT IIF((`g`.`HasSoulPatch` = TRUE) AND (`t`.`Note` LIKE '%Cole%'), TRUE, FALSE) FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`)"); +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`)"); } public override async Task Optional_navigation_type_compensation_works_with_projection(bool isAsync) @@ -2185,14 +1969,10 @@ LEFT JOIN ( await base.Optional_navigation_type_compensation_works_with_projection(isAsync); AssertSql( - $@"SELECT `t0`.`SquadId` + @"SELECT `g`.`SquadId` FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -WHERE (`t`.`Note` <> 'K.I.A.') OR `t`.`Note` IS NULL"); +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`) +WHERE (`t`.`Note` <> 'K.I.A.') OR (`t`.`Note` IS NULL)"); } public override async Task Optional_navigation_type_compensation_works_with_projection_into_anonymous_type(bool isAsync) @@ -2200,14 +1980,10 @@ WHERE (`t`.`Note` <> 'K.I.A.') OR `t`.`Note` IS NULL"); await base.Optional_navigation_type_compensation_works_with_projection_into_anonymous_type(isAsync); AssertSql( - $@"SELECT `t0`.`SquadId` + @"SELECT `g`.`SquadId` FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -WHERE (`t`.`Note` <> 'K.I.A.') OR `t`.`Note` IS NULL"); +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`) +WHERE (`t`.`Note` <> 'K.I.A.') OR (`t`.`Note` IS NULL)"); } public override async Task Optional_navigation_type_compensation_works_with_DTOs(bool isAsync) @@ -2215,14 +1991,10 @@ WHERE (`t`.`Note` <> 'K.I.A.') OR `t`.`Note` IS NULL"); await base.Optional_navigation_type_compensation_works_with_DTOs(isAsync); AssertSql( - $@"SELECT `t0`.`SquadId` AS `Id` + @"SELECT `g`.`SquadId` AS `Id` FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -WHERE (`t`.`Note` <> 'K.I.A.') OR `t`.`Note` IS NULL"); +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`) +WHERE (`t`.`Note` <> 'K.I.A.') OR (`t`.`Note` IS NULL)"); } public override async Task Optional_navigation_type_compensation_works_with_list_initializers(bool isAsync) @@ -2230,14 +2002,10 @@ WHERE (`t`.`Note` <> 'K.I.A.') OR `t`.`Note` IS NULL"); await base.Optional_navigation_type_compensation_works_with_list_initializers(isAsync); AssertSql( - $@"SELECT `t0`.`SquadId`, `t0`.`SquadId` + 1 + @"SELECT `g`.`SquadId`, `g`.`SquadId` + 1 FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -WHERE (`t`.`Note` <> 'K.I.A.') OR `t`.`Note` IS NULL +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`) +WHERE (`t`.`Note` <> 'K.I.A.') OR (`t`.`Note` IS NULL) ORDER BY `t`.`Note`"); } @@ -2246,14 +2014,10 @@ ORDER BY `t`.`Note`"); await base.Optional_navigation_type_compensation_works_with_array_initializers(isAsync); AssertSql( - $@"SELECT `t0`.`SquadId` + @"SELECT `g`.`SquadId` FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -WHERE (`t`.`Note` <> 'K.I.A.') OR `t`.`Note` IS NULL"); +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`) +WHERE (`t`.`Note` <> 'K.I.A.') OR (`t`.`Note` IS NULL)"); } public override async Task Optional_navigation_type_compensation_works_with_orderby(bool isAsync) @@ -2261,34 +2025,24 @@ WHERE (`t`.`Note` <> 'K.I.A.') OR `t`.`Note` IS NULL"); await base.Optional_navigation_type_compensation_works_with_orderby(isAsync); AssertSql( - $@"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`Note` + @"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`IssueDate`, `t`.`Note` FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -WHERE (`t`.`Note` <> 'K.I.A.') OR `t`.`Note` IS NULL -ORDER BY `t0`.`SquadId`"); +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`) +WHERE (`t`.`Note` <> 'K.I.A.') OR (`t`.`Note` IS NULL) +ORDER BY `g`.`SquadId`"); } - + public override async Task Optional_navigation_type_compensation_works_with_all(bool isAsync) { await base.Optional_navigation_type_compensation_works_with_all(isAsync); AssertSql( - $@"SELECT CASE - WHEN NOT EXISTS ( + @"SELECT IIF(NOT EXISTS ( SELECT 1 FROM `Tags` AS `t` - LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') - ) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) - WHERE ((`t`.`Note` <> 'K.I.A.') OR `t`.`Note` IS NULL) AND (`t0`.`HasSoulPatch` <> True)) THEN True - ELSE False -END"); + LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`) + WHERE ((`t`.`Note` <> 'K.I.A.') OR (`t`.`Note` IS NULL)) AND (`g`.`HasSoulPatch` <> TRUE)), TRUE, FALSE) +FROM (SELECT COUNT(*) FROM `#Dual`)"); } public override async Task Optional_navigation_type_compensation_works_with_negated_predicate(bool isAsync) @@ -2296,14 +2050,10 @@ END"); await base.Optional_navigation_type_compensation_works_with_negated_predicate(isAsync); AssertSql( - $@"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`Note` + @"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`IssueDate`, `t`.`Note` FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -WHERE ((`t`.`Note` <> 'K.I.A.') OR `t`.`Note` IS NULL) AND (`t0`.`HasSoulPatch` <> True)"); +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`) +WHERE ((`t`.`Note` <> 'K.I.A.') OR (`t`.`Note` IS NULL)) AND (`g`.`HasSoulPatch` <> TRUE)"); } public override async Task Optional_navigation_type_compensation_works_with_contains(bool isAsync) @@ -2311,18 +2061,13 @@ WHERE ((`t`.`Note` <> 'K.I.A.') OR `t`.`Note` IS NULL) AND (`t0`.`HasSoulPatch` await base.Optional_navigation_type_compensation_works_with_contains(isAsync); AssertSql( - $@"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`Note` + @"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`IssueDate`, `t`.`Note` FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -WHERE ((`t`.`Note` <> 'K.I.A.') OR `t`.`Note` IS NULL) AND `t0`.`SquadId` IN ( - SELECT `g0`.`SquadId` +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`) +WHERE ((`t`.`Note` <> 'K.I.A.') OR (`t`.`Note` IS NULL)) AND EXISTS ( + SELECT 1 FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') -)"); + WHERE `g0`.`SquadId` = `g`.`SquadId`)"); } public override async Task Optional_navigation_type_compensation_works_with_skip(bool isAsync) @@ -2437,16 +2182,16 @@ ORDER BY `g`.`Nickname`"); await base.Select_correlated_filtered_collection(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `c`.`Name`, `t`.`Id`, `t`.`AmmunitionType`, `t`.`IsAutomatic`, `t`.`Name`, `t`.`OwnerFullName`, `t`.`SynergyWithId` -FROM `Gears` AS `g` -INNER JOIN `Cities` AS `c` ON `g`.`CityOfBirthName` = `c`.`Name` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `c`.`Name`, `t`.`Id`, `t`.`AmmunitionType`, `t`.`IsAutomatic`, `t`.`Name`, `t`.`OwnerFullName`, `t`.`SynergyWithId` +FROM (`Gears` AS `g` +INNER JOIN `Cities` AS `c` ON `g`.`CityOfBirthName` = `c`.`Name`) LEFT JOIN ( SELECT `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` FROM `Weapons` AS `w` - WHERE (`w`.`Name` <> 'Lancer') OR `w`.`Name` IS NULL + WHERE (`w`.`Name` <> 'Lancer') OR (`w`.`Name` IS NULL) ) AS `t` ON `g`.`FullName` = `t`.`OwnerFullName` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`c`.`Name` = 'Ephyra') OR (`c`.`Name` = 'Hanover')) -ORDER BY `g`.`Nickname`, `g`.`SquadId`, `c`.`Name`, `t`.`Id`"); +WHERE `c`.`Name` IN ('Ephyra', 'Hanover') +ORDER BY `g`.`Nickname`, `g`.`SquadId`, `c`.`Name`"); } public override async Task Select_correlated_filtered_collection_with_composite_key(bool isAsync) @@ -2470,43 +2215,10 @@ ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t`.`Nickname`, `t`.`SquadId`"); await base.Select_correlated_filtered_collection_works_with_caching(isAsync); AssertSql( - $@"SELECT `t`.`GearNickName` + @"SELECT `t`.`Id`, `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Tags` AS `t` -ORDER BY `t`.`Note`", - // - $@"{AssertSqlHelper.Declaration("@_outer_GearNickName='Baird' (Size = 450)")} - -SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` -FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Officer', 'Gear') AND (`g`.`Nickname` = {AssertSqlHelper.Parameter("@_outer_GearNickName")})", - // - $@"{AssertSqlHelper.Declaration("@_outer_GearNickName='Cole Train' (Size = 450)")} - -SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` -FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Officer', 'Gear') AND (`g`.`Nickname` = {AssertSqlHelper.Parameter("@_outer_GearNickName")})", - // - $@"{AssertSqlHelper.Declaration("@_outer_GearNickName='Dom' (Size = 450)")} - -SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` -FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Officer', 'Gear') AND (`g`.`Nickname` = {AssertSqlHelper.Parameter("@_outer_GearNickName")})", - // - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` -FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Officer', 'Gear') AND `g`.`Nickname` IS NULL", - // - $@"{AssertSqlHelper.Declaration("@_outer_GearNickName='Marcus' (Size = 450)")} - -SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` -FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Officer', 'Gear') AND (`g`.`Nickname` = {AssertSqlHelper.Parameter("@_outer_GearNickName")})", - // - $@"{AssertSqlHelper.Declaration("@_outer_GearNickName='Paduk' (Size = 450)")} - -SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` -FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Officer', 'Gear') AND (`g`.`Nickname` = {AssertSqlHelper.Parameter("@_outer_GearNickName")})"); +LEFT JOIN `Gears` AS `g` ON `t`.`GearNickName` = `g`.`Nickname` +ORDER BY `t`.`Note`, `t`.`Id`, `g`.`Nickname`"); } public override async Task Join_predicate_value_equals_condition(bool isAsync) @@ -2771,14 +2483,10 @@ ORDER BY `t`.`GearNickName`"); await base.Complex_predicate_with_AndAlso_and_nullable_bool_property(isAsync); AssertSql( - $@"SELECT `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` + @"SELECT `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` FROM `Weapons` AS `w` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t` ON `w`.`OwnerFullName` = `t`.`FullName` -WHERE (`w`.`Id` <> 50) AND (`t`.`HasSoulPatch` <> True)"); +LEFT JOIN `Gears` AS `g` ON `w`.`OwnerFullName` = `g`.`FullName` +WHERE (`w`.`Id` <> 50) AND (`g`.`HasSoulPatch` <> TRUE)"); } public override async Task Distinct_with_optional_navigation_is_translated_to_sql(bool isAsync) @@ -2786,10 +2494,10 @@ WHERE (`w`.`Id` <> 50) AND (`t`.`HasSoulPatch` <> True)"); await base.Distinct_with_optional_navigation_is_translated_to_sql(isAsync); AssertSql( - $@"SELECT DISTINCT `g`.`HasSoulPatch` + @"SELECT DISTINCT `g`.`HasSoulPatch` FROM `Gears` AS `g` LEFT JOIN `Tags` AS `t` ON (`g`.`Nickname` = `t`.`GearNickName`) AND (`g`.`SquadId` = `t`.`GearSquadId`) -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`t`.`Note` <> 'Foo') OR `t`.`Note` IS NULL)"); +WHERE (`t`.`Note` <> 'Foo') OR (`t`.`Note` IS NULL)"); } public override async Task Sum_with_optional_navigation_is_translated_to_sql(bool isAsync) @@ -2797,10 +2505,10 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`t`.`Note` <> 'Foo') OR ` await base.Sum_with_optional_navigation_is_translated_to_sql(isAsync); AssertSql( - $@"SELECT SUM(`g`.`SquadId`) + @"SELECT IIF(SUM(`g`.`SquadId`) IS NULL, 0, SUM(`g`.`SquadId`)) FROM `Gears` AS `g` LEFT JOIN `Tags` AS `t` ON (`g`.`Nickname` = `t`.`GearNickName`) AND (`g`.`SquadId` = `t`.`GearSquadId`) -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`t`.`Note` <> 'Foo') OR `t`.`Note` IS NULL)"); +WHERE (`t`.`Note` <> 'Foo') OR (`t`.`Note` IS NULL)"); } public override async Task Count_with_optional_navigation_is_translated_to_sql(bool isAsync) @@ -2808,10 +2516,10 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`t`.`Note` <> 'Foo') OR ` await base.Count_with_optional_navigation_is_translated_to_sql(isAsync); AssertSql( - $@"SELECT COUNT(*) + @"SELECT COUNT(*) FROM `Gears` AS `g` LEFT JOIN `Tags` AS `t` ON (`g`.`Nickname` = `t`.`GearNickName`) AND (`g`.`SquadId` = `t`.`GearSquadId`) -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`t`.`Note` <> 'Foo') OR `t`.`Note` IS NULL)"); +WHERE (`t`.`Note` <> 'Foo') OR (`t`.`Note` IS NULL)"); } public override async Task FirstOrDefault_with_manually_created_groupjoin_is_translated_to_sql(bool isAsync) @@ -2819,13 +2527,9 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`t`.`Note` <> 'Foo') OR ` await base.FirstOrDefault_with_manually_created_groupjoin_is_translated_to_sql(isAsync); AssertSql( - $@"SELECT TOP 1 `s`.`Id`, `s`.`InternalNumber`, `s`.`Name` + @"SELECT TOP 1 `s`.`Id`, `s`.`Banner`, `s`.`Banner5`, `s`.`InternalNumber`, `s`.`Name` FROM `Squads` AS `s` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t` ON `s`.`Id` = `t`.`SquadId` +LEFT JOIN `Gears` AS `g` ON `s`.`Id` = `g`.`SquadId` WHERE `s`.`Name` = 'Kilo'"); } @@ -2834,13 +2538,13 @@ WHERE `s`.`Name` = 'Kilo'"); await base.Any_with_optional_navigation_as_subquery_predicate_is_translated_to_sql(isAsync); AssertSql( - $@"SELECT `s`.`Name` + @"SELECT `s`.`Name` FROM `Squads` AS `s` WHERE NOT (EXISTS ( SELECT 1 FROM `Gears` AS `g` LEFT JOIN `Tags` AS `t` ON (`g`.`Nickname` = `t`.`GearNickName`) AND (`g`.`SquadId` = `t`.`GearSquadId`) - WHERE (`g`.`Discriminator` IN ('Gear', 'Officer') AND (`s`.`Id` = `g`.`SquadId`)) AND (`t`.`Note` = 'Dom''s Tag')))"); + WHERE (`s`.`Id` = `g`.`SquadId`) AND (`t`.`Note` = 'Dom''s Tag')))"); } public override async Task All_with_optional_navigation_is_translated_to_sql(bool isAsync) @@ -2848,22 +2552,20 @@ WHERE NOT (EXISTS ( await base.All_with_optional_navigation_is_translated_to_sql(isAsync); AssertSql( - $@"SELECT CASE - WHEN NOT EXISTS ( + @"SELECT IIF(NOT EXISTS ( SELECT 1 FROM `Gears` AS `g` LEFT JOIN `Tags` AS `t` ON (`g`.`Nickname` = `t`.`GearNickName`) AND (`g`.`SquadId` = `t`.`GearSquadId`) - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`t`.`Note` = 'Foo') AND `t`.`Note` IS NOT NULL)) THEN True - ELSE False -END"); + WHERE (`t`.`Note` = 'Foo') AND (`t`.`Note` IS NOT NULL)), TRUE, FALSE) +FROM (SELECT COUNT(*) FROM `#Dual`)"); } - + public override async Task Contains_with_local_nullable_guid_list_closure(bool isAsync) { await base.Contains_with_local_nullable_guid_list_closure(isAsync); AssertSql( - $@"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`Note` + @"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`IssueDate`, `t`.`Note` FROM `Tags` AS `t` WHERE `t`.`Id` IN ('d2c26679-562b-44d1-ab96-23d1775e0926', '23cbcf9b-ce14-45cf-aafa-2c2667ebfdd3', 'ab1b82d7-88db-42bd-a132-7eef9aa68af4')"); } @@ -2873,9 +2575,9 @@ WHERE `t`.`Id` IN ('d2c26679-562b-44d1-ab96-23d1775e0926', '23cbcf9b-ce14-45cf-a await base.Unnecessary_include_doesnt_get_added_complex_when_projecting_EF_Property(isAsync); AssertSql( - $@"SELECT `g`.`FullName` + @"SELECT `g`.`FullName` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`HasSoulPatch` = True) +WHERE `g`.`HasSoulPatch` = TRUE ORDER BY `g`.`Rank`"); } @@ -2884,9 +2586,9 @@ ORDER BY `g`.`Rank`"); await base.Multiple_order_bys_are_properly_lifted_from_subquery_created_by_include(isAsync); AssertSql( - $@"SELECT `g`.`FullName` + @"SELECT `g`.`FullName` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`HasSoulPatch` <> True) +WHERE `g`.`HasSoulPatch` <> TRUE ORDER BY `g`.`FullName`"); } @@ -2895,9 +2597,9 @@ ORDER BY `g`.`FullName`"); await base.Order_by_is_properly_lifted_from_subquery_with_same_order_by_in_the_outer_query(isAsync); AssertSql( - $@"SELECT `g`.`FullName` + @"SELECT `g`.`FullName` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`HasSoulPatch` <> True) +WHERE `g`.`HasSoulPatch` <> TRUE ORDER BY `g`.`FullName`"); } @@ -2906,10 +2608,10 @@ ORDER BY `g`.`FullName`"); await base.Where_is_properly_lifted_from_subquery_created_by_include(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`Note` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`IssueDate`, `t`.`Note` FROM `Gears` AS `g` LEFT JOIN `Tags` AS `t` ON (`g`.`Nickname` = `t`.`GearNickName`) AND (`g`.`SquadId` = `t`.`GearSquadId`) -WHERE (`g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`FullName` <> 'Augustus Cole')) AND (`g`.`HasSoulPatch` <> True) +WHERE (`g`.`FullName` <> 'Augustus Cole') AND (`g`.`HasSoulPatch` <> TRUE) ORDER BY `g`.`FullName`"); } @@ -2918,14 +2620,10 @@ ORDER BY `g`.`FullName`"); await base.Subquery_is_lifted_from_main_from_clause_of_SelectMany(isAsync); AssertSql( - $@"SELECT `g`.`FullName` AS `Name1`, `t`.`FullName` AS `Name2` + @"SELECT `g`.`FullName` AS `Name1`, `g0`.`FullName` AS `Name2` FROM `Gears` AS `g`, -( - SELECT `g0`.`Nickname`, `g0`.`SquadId`, `g0`.`AssignedCityName`, `g0`.`CityOfBirthName`, `g0`.`Discriminator`, `g0`.`FullName`, `g0`.`HasSoulPatch`, `g0`.`LeaderNickname`, `g0`.`LeaderSquadId`, `g0`.`Rank` - FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') -) AS `t` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`g`.`HasSoulPatch` = True) AND (`t`.`HasSoulPatch` <> True)) +`Gears` AS `g0` +WHERE (`g`.`HasSoulPatch` = TRUE) AND (`g0`.`HasSoulPatch` <> TRUE) ORDER BY `g`.`FullName`"); } @@ -2934,10 +2632,10 @@ ORDER BY `g`.`FullName`"); await base.Subquery_containing_SelectMany_projecting_main_from_clause_gets_lifted(isAsync); AssertSql( - $@"SELECT `g`.`FullName` + @"SELECT `g`.`FullName` FROM `Gears` AS `g`, `Tags` AS `t` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`HasSoulPatch` = True) +WHERE `g`.`HasSoulPatch` = TRUE ORDER BY `g`.`FullName`"); } @@ -2946,10 +2644,9 @@ ORDER BY `g`.`FullName`"); await base.Subquery_containing_join_projecting_main_from_clause_gets_lifted(isAsync); AssertSql( - $@"SELECT `g`.`Nickname` + @"SELECT `g`.`Nickname` FROM `Gears` AS `g` INNER JOIN `Tags` AS `t` ON `g`.`Nickname` = `t`.`GearNickName` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') ORDER BY `g`.`Nickname`"); } @@ -2958,10 +2655,9 @@ ORDER BY `g`.`Nickname`"); await base.Subquery_containing_left_join_projecting_main_from_clause_gets_lifted(isAsync); AssertSql( - $@"SELECT `g`.`Nickname` + @"SELECT `g`.`Nickname` FROM `Gears` AS `g` LEFT JOIN `Tags` AS `t` ON `g`.`Nickname` = `t`.`GearNickName` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') ORDER BY `g`.`Nickname`"); } @@ -2970,11 +2666,11 @@ ORDER BY `g`.`Nickname`"); await base.Subquery_containing_join_gets_lifted_clashing_names(isAsync); AssertSql( - $@"SELECT `g`.`Nickname` -FROM `Gears` AS `g` -INNER JOIN `Tags` AS `t` ON `g`.`Nickname` = `t`.`GearNickName` + @"SELECT `g`.`Nickname` +FROM (`Gears` AS `g` +INNER JOIN `Tags` AS `t` ON `g`.`Nickname` = `t`.`GearNickName`) INNER JOIN `Tags` AS `t0` ON `g`.`Nickname` = `t0`.`GearNickName` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`t`.`GearNickName` <> 'Cole Train') OR `t`.`GearNickName` IS NULL) +WHERE (`t`.`GearNickName` <> 'Cole Train') OR (`t`.`GearNickName` IS NULL) ORDER BY `g`.`Nickname`, `t0`.`Id`"); } @@ -2983,13 +2679,13 @@ ORDER BY `g`.`Nickname`, `t0`.`Id`"); await base.Subquery_created_by_include_gets_lifted_nested(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `c`.`Name`, `c`.`Location`, `c`.`Nation` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `c`.`Name`, `c`.`Location`, `c`.`Nation` FROM `Gears` AS `g` INNER JOIN `Cities` AS `c` ON `g`.`CityOfBirthName` = `c`.`Name` -WHERE (`g`.`Discriminator` IN ('Gear', 'Officer') AND EXISTS ( +WHERE EXISTS ( SELECT 1 FROM `Weapons` AS `w` - WHERE `g`.`FullName` = `w`.`OwnerFullName`)) AND (`g`.`HasSoulPatch` <> True) + WHERE `g`.`FullName` = `w`.`OwnerFullName`) AND (`g`.`HasSoulPatch` <> TRUE) ORDER BY `g`.`Nickname`"); } @@ -2998,14 +2694,13 @@ ORDER BY `g`.`Nickname`"); await base.Subquery_is_lifted_from_additional_from_clause(isAsync); AssertSql( - $@"SELECT `g`.`FullName` AS `Name1`, `t`.`FullName` AS `Name2` + @"SELECT `g`.`FullName` AS `Name1`, `t`.`FullName` AS `Name2` FROM `Gears` AS `g`, ( - SELECT `g0`.`Nickname`, `g0`.`SquadId`, `g0`.`AssignedCityName`, `g0`.`CityOfBirthName`, `g0`.`Discriminator`, `g0`.`FullName`, `g0`.`HasSoulPatch`, `g0`.`LeaderNickname`, `g0`.`LeaderSquadId`, `g0`.`Rank` + SELECT `g0`.`FullName`, `g0`.`HasSoulPatch` FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') ) AS `t` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`g`.`HasSoulPatch` = True) AND (`t`.`HasSoulPatch` <> True)) +WHERE (`g`.`HasSoulPatch` = TRUE) AND (`t`.`HasSoulPatch` <> TRUE) ORDER BY `g`.`FullName`"); } @@ -3014,13 +2709,11 @@ ORDER BY `g`.`FullName`"); await base.Subquery_with_result_operator_is_not_lifted(isAsync); AssertSql( - $@"{AssertSqlHelper.Declaration("@__p_0='2'")} - -SELECT `t`.`FullName` + @"SELECT `t`.`FullName` FROM ( - SELECT TOP {AssertSqlHelper.Parameter("@__p_0")} `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` + SELECT TOP 2 `g`.`FullName`, `g`.`Rank` FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`HasSoulPatch` <> True) + WHERE `g`.`HasSoulPatch` <> TRUE ORDER BY `g`.`FullName` ) AS `t` ORDER BY `t`.`Rank`"); @@ -3081,13 +2774,11 @@ ORDER BY `t`.`Rank`"); await base.Take_without_orderby_followed_by_orderBy_is_pushed_down3(isAsync); AssertSql( - $@"{AssertSqlHelper.Declaration("@__p_0='999'")} - -SELECT `t`.`FullName` + @"SELECT `t`.`FullName` FROM ( - SELECT TOP {AssertSqlHelper.Parameter("@__p_0")} `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` + SELECT TOP 999 `g`.`FullName`, `g`.`Rank` FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`HasSoulPatch` <> True) + WHERE `g`.`HasSoulPatch` <> TRUE ) AS `t` ORDER BY `t`.`FullName`, `t`.`Rank`"); } @@ -3097,7 +2788,7 @@ ORDER BY `t`.`FullName`, `t`.`Rank`"); await base.Select_length_of_string_property(isAsync); AssertSql( - $@"SELECT `w`.`Name`, CAST(LEN(`w`.`Name`) AS int) AS `Length` + @"SELECT `w`.`Name`, CLNG(LEN(`w`.`Name`)) AS `Length` FROM `Weapons` AS `w`"); } @@ -3162,9 +2853,8 @@ WHERE {AssertSqlHelper.Parameter("@_outer_FullName")} = `w`.`OwnerFullName`"); await base.Member_access_on_derived_entity_using_cast(isAsync); AssertSql( - $@"SELECT `f`.`Name`, `f`.`Eradicated` + @"SELECT `f`.`Name`, `f`.`Eradicated` FROM `Factions` AS `f` -WHERE (`f`.`Discriminator` = 'LocustHorde') AND (`f`.`Discriminator` = 'LocustHorde') ORDER BY `f`.`Name`"); } @@ -3173,9 +2863,8 @@ ORDER BY `f`.`Name`"); await base.Member_access_on_derived_materialized_entity_using_cast(isAsync); AssertSql( - $@"SELECT `f`.`Id`, `f`.`CapitalName`, `f`.`Discriminator`, `f`.`Name`, `f`.`CommanderName`, `f`.`Eradicated` + @"SELECT `f`.`Id`, `f`.`CapitalName`, `f`.`Discriminator`, `f`.`Name`, `f`.`ServerAddress`, `f`.`CommanderName`, `f`.`Eradicated` FROM `Factions` AS `f` -WHERE (`f`.`Discriminator` = 'LocustHorde') AND (`f`.`Discriminator` = 'LocustHorde') ORDER BY `f`.`Name`"); } @@ -3184,9 +2873,8 @@ ORDER BY `f`.`Name`"); await base.Member_access_on_derived_entity_using_cast_and_let(isAsync); AssertSql( - $@"SELECT `f`.`Name`, `f`.`Eradicated` + @"SELECT `f`.`Name`, `f`.`Eradicated` FROM `Factions` AS `f` -WHERE (`f`.`Discriminator` = 'LocustHorde') AND (`f`.`Discriminator` = 'LocustHorde') ORDER BY `f`.`Name`"); } @@ -3195,9 +2883,8 @@ ORDER BY `f`.`Name`"); await base.Property_access_on_derived_entity_using_cast(isAsync); AssertSql( - $@"SELECT `f`.`Name`, `f`.`Eradicated` + @"SELECT `f`.`Name`, `f`.`Eradicated` FROM `Factions` AS `f` -WHERE (`f`.`Discriminator` = 'LocustHorde') AND (`f`.`Discriminator` = 'LocustHorde') ORDER BY `f`.`Name`"); } @@ -3206,14 +2893,13 @@ ORDER BY `f`.`Name`"); await base.Navigation_access_on_derived_entity_using_cast(isAsync); AssertSql( - $@"SELECT `f`.`Name`, `t`.`ThreatLevel` AS `Threat` + @"SELECT `f`.`Name`, `t`.`ThreatLevel` AS `Threat` FROM `Factions` AS `f` LEFT JOIN ( - SELECT `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId` + SELECT `l`.`Name`, `l`.`ThreatLevel` FROM `LocustLeaders` AS `l` WHERE `l`.`Discriminator` = 'LocustCommander' ) AS `t` ON `f`.`CommanderName` = `t`.`Name` -WHERE (`f`.`Discriminator` = 'LocustHorde') AND (`f`.`Discriminator` = 'LocustHorde') ORDER BY `f`.`Name`"); } @@ -3222,14 +2908,13 @@ ORDER BY `f`.`Name`"); await base.Navigation_access_on_derived_materialized_entity_using_cast(isAsync); AssertSql( - $@"SELECT `f`.`Id`, `f`.`CapitalName`, `f`.`Discriminator`, `f`.`Name`, `f`.`CommanderName`, `f`.`Eradicated`, `t`.`ThreatLevel` AS `Threat` + @"SELECT `f`.`Id`, `f`.`CapitalName`, `f`.`Discriminator`, `f`.`Name`, `f`.`ServerAddress`, `f`.`CommanderName`, `f`.`Eradicated`, `t`.`ThreatLevel` AS `Threat` FROM `Factions` AS `f` LEFT JOIN ( - SELECT `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId` + SELECT `l`.`Name`, `l`.`ThreatLevel` FROM `LocustLeaders` AS `l` WHERE `l`.`Discriminator` = 'LocustCommander' ) AS `t` ON `f`.`CommanderName` = `t`.`Name` -WHERE (`f`.`Discriminator` = 'LocustHorde') AND (`f`.`Discriminator` = 'LocustHorde') ORDER BY `f`.`Name`"); } @@ -3238,14 +2923,13 @@ ORDER BY `f`.`Name`"); await base.Navigation_access_via_EFProperty_on_derived_entity_using_cast(isAsync); AssertSql( - $@"SELECT `f`.`Name`, `t`.`ThreatLevel` AS `Threat` + @"SELECT `f`.`Name`, `t`.`ThreatLevel` AS `Threat` FROM `Factions` AS `f` LEFT JOIN ( - SELECT `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId` + SELECT `l`.`Name`, `l`.`ThreatLevel` FROM `LocustLeaders` AS `l` WHERE `l`.`Discriminator` = 'LocustCommander' ) AS `t` ON `f`.`CommanderName` = `t`.`Name` -WHERE (`f`.`Discriminator` = 'LocustHorde') AND (`f`.`Discriminator` = 'LocustHorde') ORDER BY `f`.`Name`"); } @@ -3254,14 +2938,13 @@ ORDER BY `f`.`Name`"); await base.Navigation_access_fk_on_derived_entity_using_cast(isAsync); AssertSql( - $@"SELECT `f`.`Name`, `t`.`Name` AS `CommanderName` + @"SELECT `f`.`Name`, `t`.`Name` AS `CommanderName` FROM `Factions` AS `f` LEFT JOIN ( - SELECT `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId` + SELECT `l`.`Name` FROM `LocustLeaders` AS `l` WHERE `l`.`Discriminator` = 'LocustCommander' ) AS `t` ON `f`.`CommanderName` = `t`.`Name` -WHERE (`f`.`Discriminator` = 'LocustHorde') AND (`f`.`Discriminator` = 'LocustHorde') ORDER BY `f`.`Name`"); } @@ -3270,12 +2953,11 @@ ORDER BY `f`.`Name`"); await base.Collection_navigation_access_on_derived_entity_using_cast(isAsync); AssertSql( - $@"SELECT `f`.`Name`, ( + @"SELECT `f`.`Name`, ( SELECT COUNT(*) FROM `LocustLeaders` AS `l` - WHERE `l`.`Discriminator` IN ('LocustLeader', 'LocustCommander') AND (`f`.`Id` = `l`.`LocustHordeId`)) AS `LeadersCount` + WHERE `f`.`Id` = `l`.`LocustHordeId`) AS `LeadersCount` FROM `Factions` AS `f` -WHERE (`f`.`Discriminator` = 'LocustHorde') AND (`f`.`Discriminator` = 'LocustHorde') ORDER BY `f`.`Name`"); } @@ -3284,15 +2966,10 @@ ORDER BY `f`.`Name`"); await base.Collection_navigation_access_on_derived_entity_using_cast_in_SelectMany(isAsync); AssertSql( - $@"SELECT `f`.`Name`, `t`.`Name` AS `LeaderName` + @"SELECT `f`.`Name`, `l`.`Name` AS `LeaderName` FROM `Factions` AS `f` -INNER JOIN ( - SELECT `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId` - FROM `LocustLeaders` AS `l` - WHERE `l`.`Discriminator` IN ('LocustLeader', 'LocustCommander') -) AS `t` ON `f`.`Id` = `t`.`LocustHordeId` -WHERE (`f`.`Discriminator` = 'LocustHorde') AND (`f`.`Discriminator` = 'LocustHorde') -ORDER BY `t`.`Name`"); +INNER JOIN `LocustLeaders` AS `l` ON `f`.`Id` = `l`.`LocustHordeId` +ORDER BY `l`.`Name`"); } public override async Task Include_on_derived_entity_using_OfType(bool isAsync) @@ -3300,129 +2977,123 @@ ORDER BY `t`.`Name`"); await base.Include_on_derived_entity_using_OfType(isAsync); AssertSql( - $@"SELECT `f`.`Id`, `f`.`CapitalName`, `f`.`Discriminator`, `f`.`Name`, `f`.`CommanderName`, `f`.`Eradicated`, `t`.`Name`, `t`.`Discriminator`, `t`.`LocustHordeId`, `t`.`ThreatLevel`, `t`.`DefeatedByNickname`, `t`.`DefeatedBySquadId`, `t`.`HighCommandId`, `t0`.`Name`, `t0`.`Discriminator`, `t0`.`LocustHordeId`, `t0`.`ThreatLevel`, `t0`.`DefeatedByNickname`, `t0`.`DefeatedBySquadId`, `t0`.`HighCommandId` -FROM `Factions` AS `f` + @"SELECT `f`.`Id`, `f`.`CapitalName`, `f`.`Discriminator`, `f`.`Name`, `f`.`ServerAddress`, `f`.`CommanderName`, `f`.`Eradicated`, `t`.`Name`, `t`.`Discriminator`, `t`.`LocustHordeId`, `t`.`ThreatLevel`, `t`.`ThreatLevelByte`, `t`.`ThreatLevelNullableByte`, `t`.`DefeatedByNickname`, `t`.`DefeatedBySquadId`, `t`.`HighCommandId`, `l0`.`Name`, `l0`.`Discriminator`, `l0`.`LocustHordeId`, `l0`.`ThreatLevel`, `l0`.`ThreatLevelByte`, `l0`.`ThreatLevelNullableByte`, `l0`.`DefeatedByNickname`, `l0`.`DefeatedBySquadId`, `l0`.`HighCommandId` +FROM (`Factions` AS `f` LEFT JOIN ( - SELECT `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId` + SELECT `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`ThreatLevelByte`, `l`.`ThreatLevelNullableByte`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId` FROM `LocustLeaders` AS `l` WHERE `l`.`Discriminator` = 'LocustCommander' -) AS `t` ON `f`.`CommanderName` = `t`.`Name` -LEFT JOIN ( - SELECT `l0`.`Name`, `l0`.`Discriminator`, `l0`.`LocustHordeId`, `l0`.`ThreatLevel`, `l0`.`DefeatedByNickname`, `l0`.`DefeatedBySquadId`, `l0`.`HighCommandId` - FROM `LocustLeaders` AS `l0` - WHERE `l0`.`Discriminator` IN ('LocustLeader', 'LocustCommander') -) AS `t0` ON `f`.`Id` = `t0`.`LocustHordeId` -WHERE (`f`.`Discriminator` = 'LocustHorde') AND (`f`.`Discriminator` = 'LocustHorde') -ORDER BY `f`.`Name`, `f`.`Id`, `t0`.`Name`"); - } - -// public override async Task Include_on_derived_entity_using_subquery_with_cast(bool isAsync) -// { -// await base.Include_on_derived_entity_using_subquery_with_cast(isAsync); - -// AssertSql( -// $@"SELECT `f`.`Id`, `f`.`CapitalName`, `f`.`Discriminator`, `f`.`Name`, `f`.`CommanderName`, `f`.`Eradicated`, `t`.`Name`, `t`.`Discriminator`, `t`.`LocustHordeId`, `t`.`ThreatLevel`, `t`.`DefeatedByNickname`, `t`.`DefeatedBySquadId`, `t`.`HighCommandId` -//FROM `Factions` AS `f` -//LEFT JOIN ( -// SELECT [f.Commander].* -// FROM `LocustLeaders` AS [f.Commander] -// WHERE [f.Commander].`Discriminator` = 'LocustCommander' -//) AS `t` ON (`f`.`Discriminator` = 'LocustHorde') AND (`f`.`CommanderName` = `t`.`Name`) -//WHERE (`f`.`Discriminator` = 'LocustHorde') AND (`f`.`Discriminator` = 'LocustHorde') -//ORDER BY `f`.`Name`, `f`.`Id`", -// // -// $@"SELECT [f.Leaders].`Name`, [f.Leaders].`Discriminator`, [f.Leaders].`LocustHordeId`, [f.Leaders].`ThreatLevel`, [f.Leaders].`DefeatedByNickname`, [f.Leaders].`DefeatedBySquadId`, [f.Leaders].`HighCommandId` -//FROM `LocustLeaders` AS [f.Leaders] -//INNER JOIN ( -// SELECT DISTINCT `f0`.`Id`, `f0`.`Name` -// FROM `Factions` AS `f0` -// LEFT JOIN ( -// SELECT [f.Commander0].* -// FROM `LocustLeaders` AS [f.Commander0] -// WHERE [f.Commander0].`Discriminator` = 'LocustCommander' -// ) AS `t0` ON (`f0`.`Discriminator` = 'LocustHorde') AND (`f0`.`CommanderName` = `t0`.`Name`) -// WHERE (`f0`.`Discriminator` = 'LocustHorde') AND (`f0`.`Discriminator` = 'LocustHorde') -//) AS `t1` ON [f.Leaders].`LocustHordeId` = `t1`.`Id` -//WHERE [f.Leaders].`Discriminator` IN ('LocustCommander', 'LocustLeader') -//ORDER BY `t1`.`Name`, `t1`.`Id`"); -// } - -// public override async Task Include_on_derived_entity_using_subquery_with_cast_AsNoTracking(bool isAsync) -// { -// await base.Include_on_derived_entity_using_subquery_with_cast_AsNoTracking(isAsync); - -// AssertSql( -// $@"SELECT `f`.`Id`, `f`.`CapitalName`, `f`.`Discriminator`, `f`.`Name`, `f`.`CommanderName`, `f`.`Eradicated`, `t`.`Name`, `t`.`Discriminator`, `t`.`LocustHordeId`, `t`.`ThreatLevel`, `t`.`DefeatedByNickname`, `t`.`DefeatedBySquadId`, `t`.`HighCommandId` -//FROM `Factions` AS `f` -//LEFT JOIN ( -// SELECT [f.Commander].* -// FROM `LocustLeaders` AS [f.Commander] -// WHERE [f.Commander].`Discriminator` = 'LocustCommander' -//) AS `t` ON (`f`.`Discriminator` = 'LocustHorde') AND (`f`.`CommanderName` = `t`.`Name`) -//WHERE (`f`.`Discriminator` = 'LocustHorde') AND (`f`.`Discriminator` = 'LocustHorde') -//ORDER BY `f`.`Name`, `f`.`Id`", -// // -// $@"SELECT [f.Leaders].`Name`, [f.Leaders].`Discriminator`, [f.Leaders].`LocustHordeId`, [f.Leaders].`ThreatLevel`, [f.Leaders].`DefeatedByNickname`, [f.Leaders].`DefeatedBySquadId`, [f.Leaders].`HighCommandId` -//FROM `LocustLeaders` AS [f.Leaders] -//INNER JOIN ( -// SELECT DISTINCT `f0`.`Id`, `f0`.`Name` -// FROM `Factions` AS `f0` -// LEFT JOIN ( -// SELECT [f.Commander0].* -// FROM `LocustLeaders` AS [f.Commander0] -// WHERE [f.Commander0].`Discriminator` = 'LocustCommander' -// ) AS `t0` ON (`f0`.`Discriminator` = 'LocustHorde') AND (`f0`.`CommanderName` = `t0`.`Name`) -// WHERE (`f0`.`Discriminator` = 'LocustHorde') AND (`f0`.`Discriminator` = 'LocustHorde') -//) AS `t1` ON [f.Leaders].`LocustHordeId` = `t1`.`Id` -//WHERE [f.Leaders].`Discriminator` IN ('LocustCommander', 'LocustLeader') -//ORDER BY `t1`.`Name`, `t1`.`Id`"); -// } - -// public override void Include_on_derived_entity_using_subquery_with_cast_cross_product_base_entity() -// { -// base.Include_on_derived_entity_using_subquery_with_cast_cross_product_base_entity(); - -// AssertSql( -// $@"SELECT `f2`.`Id`, `f2`.`CapitalName`, `f2`.`Discriminator`, `f2`.`Name`, `f2`.`CommanderName`, `f2`.`Eradicated`, `t`.`Name`, `t`.`Discriminator`, `t`.`LocustHordeId`, `t`.`ThreatLevel`, `t`.`DefeatedByNickname`, `t`.`DefeatedBySquadId`, `t`.`HighCommandId`, `ff`.`Id`, `ff`.`CapitalName`, `ff`.`Discriminator`, `ff`.`Name`, `ff`.`CommanderName`, `ff`.`Eradicated`, [ff.Capital].`Name`, [ff.Capital].`Location`, [ff.Capital].`Nation` -//FROM `Factions` AS `f2` -//LEFT JOIN ( -// SELECT [f2.Commander].* -// FROM `LocustLeaders` AS [f2.Commander] -// WHERE [f2.Commander].`Discriminator` = 'LocustCommander' -//) AS `t` ON (`f2`.`Discriminator` = 'LocustHorde') AND (`f2`.`CommanderName` = `t`.`Name`) -//CROSS JOIN `Factions` AS `ff` -//LEFT JOIN `Cities` AS [ff.Capital] ON `ff`.`CapitalName` = [ff.Capital].`Name` -//WHERE (`f2`.`Discriminator` = 'LocustHorde') AND (`f2`.`Discriminator` = 'LocustHorde') -//ORDER BY `f2`.`Name`, `ff`.`Name`, `f2`.`Id`", -// // -// $@"SELECT [f2.Leaders].`Name`, [f2.Leaders].`Discriminator`, [f2.Leaders].`LocustHordeId`, [f2.Leaders].`ThreatLevel`, [f2.Leaders].`DefeatedByNickname`, [f2.Leaders].`DefeatedBySquadId`, [f2.Leaders].`HighCommandId` -//FROM `LocustLeaders` AS [f2.Leaders] -//INNER JOIN ( -// SELECT DISTINCT `f20`.`Id`, `f20`.`Name`, `ff0`.`Name` AS `Name0` -// FROM `Factions` AS `f20` -// LEFT JOIN ( -// SELECT [f2.Commander0].* -// FROM `LocustLeaders` AS [f2.Commander0] -// WHERE [f2.Commander0].`Discriminator` = 'LocustCommander' -// ) AS `t0` ON (`f20`.`Discriminator` = 'LocustHorde') AND (`f20`.`CommanderName` = `t0`.`Name`) -// CROSS JOIN `Factions` AS `ff0` -// LEFT JOIN `Cities` AS [ff.Capital0] ON `ff0`.`CapitalName` = [ff.Capital0].`Name` -// WHERE (`f20`.`Discriminator` = 'LocustHorde') AND (`f20`.`Discriminator` = 'LocustHorde') -//) AS `t1` ON [f2.Leaders].`LocustHordeId` = `t1`.`Id` -//WHERE [f2.Leaders].`Discriminator` IN ('LocustCommander', 'LocustLeader') -//ORDER BY `t1`.`Name`, `t1`.`Name0`, `t1`.`Id`"); -// } +) AS `t` ON `f`.`CommanderName` = `t`.`Name`) +LEFT JOIN `LocustLeaders` AS `l0` ON `f`.`Id` = `l0`.`LocustHordeId` +ORDER BY `f`.`Name`, `f`.`Id`, `t`.`Name`"); + } + + // public override async Task Include_on_derived_entity_using_subquery_with_cast(bool isAsync) + // { + // await base.Include_on_derived_entity_using_subquery_with_cast(isAsync); + + // AssertSql( + // $@"SELECT `f`.`Id`, `f`.`CapitalName`, `f`.`Discriminator`, `f`.`Name`, `f`.`CommanderName`, `f`.`Eradicated`, `t`.`Name`, `t`.`Discriminator`, `t`.`LocustHordeId`, `t`.`ThreatLevel`, `t`.`DefeatedByNickname`, `t`.`DefeatedBySquadId`, `t`.`HighCommandId` + //FROM `Factions` AS `f` + //LEFT JOIN ( + // SELECT [f.Commander].* + // FROM `LocustLeaders` AS [f.Commander] + // WHERE [f.Commander].`Discriminator` = 'LocustCommander' + //) AS `t` ON (`f`.`Discriminator` = 'LocustHorde') AND (`f`.`CommanderName` = `t`.`Name`) + //WHERE (`f`.`Discriminator` = 'LocustHorde') AND (`f`.`Discriminator` = 'LocustHorde') + //ORDER BY `f`.`Name`, `f`.`Id`", + // // + // $@"SELECT [f.Leaders].`Name`, [f.Leaders].`Discriminator`, [f.Leaders].`LocustHordeId`, [f.Leaders].`ThreatLevel`, [f.Leaders].`DefeatedByNickname`, [f.Leaders].`DefeatedBySquadId`, [f.Leaders].`HighCommandId` + //FROM `LocustLeaders` AS [f.Leaders] + //INNER JOIN ( + // SELECT DISTINCT `f0`.`Id`, `f0`.`Name` + // FROM `Factions` AS `f0` + // LEFT JOIN ( + // SELECT [f.Commander0].* + // FROM `LocustLeaders` AS [f.Commander0] + // WHERE [f.Commander0].`Discriminator` = 'LocustCommander' + // ) AS `t0` ON (`f0`.`Discriminator` = 'LocustHorde') AND (`f0`.`CommanderName` = `t0`.`Name`) + // WHERE (`f0`.`Discriminator` = 'LocustHorde') AND (`f0`.`Discriminator` = 'LocustHorde') + //) AS `t1` ON [f.Leaders].`LocustHordeId` = `t1`.`Id` + //WHERE [f.Leaders].`Discriminator` IN ('LocustCommander', 'LocustLeader') + //ORDER BY `t1`.`Name`, `t1`.`Id`"); + // } + + // public override async Task Include_on_derived_entity_using_subquery_with_cast_AsNoTracking(bool isAsync) + // { + // await base.Include_on_derived_entity_using_subquery_with_cast_AsNoTracking(isAsync); + + // AssertSql( + // $@"SELECT `f`.`Id`, `f`.`CapitalName`, `f`.`Discriminator`, `f`.`Name`, `f`.`CommanderName`, `f`.`Eradicated`, `t`.`Name`, `t`.`Discriminator`, `t`.`LocustHordeId`, `t`.`ThreatLevel`, `t`.`DefeatedByNickname`, `t`.`DefeatedBySquadId`, `t`.`HighCommandId` + //FROM `Factions` AS `f` + //LEFT JOIN ( + // SELECT [f.Commander].* + // FROM `LocustLeaders` AS [f.Commander] + // WHERE [f.Commander].`Discriminator` = 'LocustCommander' + //) AS `t` ON (`f`.`Discriminator` = 'LocustHorde') AND (`f`.`CommanderName` = `t`.`Name`) + //WHERE (`f`.`Discriminator` = 'LocustHorde') AND (`f`.`Discriminator` = 'LocustHorde') + //ORDER BY `f`.`Name`, `f`.`Id`", + // // + // $@"SELECT [f.Leaders].`Name`, [f.Leaders].`Discriminator`, [f.Leaders].`LocustHordeId`, [f.Leaders].`ThreatLevel`, [f.Leaders].`DefeatedByNickname`, [f.Leaders].`DefeatedBySquadId`, [f.Leaders].`HighCommandId` + //FROM `LocustLeaders` AS [f.Leaders] + //INNER JOIN ( + // SELECT DISTINCT `f0`.`Id`, `f0`.`Name` + // FROM `Factions` AS `f0` + // LEFT JOIN ( + // SELECT [f.Commander0].* + // FROM `LocustLeaders` AS [f.Commander0] + // WHERE [f.Commander0].`Discriminator` = 'LocustCommander' + // ) AS `t0` ON (`f0`.`Discriminator` = 'LocustHorde') AND (`f0`.`CommanderName` = `t0`.`Name`) + // WHERE (`f0`.`Discriminator` = 'LocustHorde') AND (`f0`.`Discriminator` = 'LocustHorde') + //) AS `t1` ON [f.Leaders].`LocustHordeId` = `t1`.`Id` + //WHERE [f.Leaders].`Discriminator` IN ('LocustCommander', 'LocustLeader') + //ORDER BY `t1`.`Name`, `t1`.`Id`"); + // } + + // public override void Include_on_derived_entity_using_subquery_with_cast_cross_product_base_entity() + // { + // base.Include_on_derived_entity_using_subquery_with_cast_cross_product_base_entity(); + + // AssertSql( + // $@"SELECT `f2`.`Id`, `f2`.`CapitalName`, `f2`.`Discriminator`, `f2`.`Name`, `f2`.`CommanderName`, `f2`.`Eradicated`, `t`.`Name`, `t`.`Discriminator`, `t`.`LocustHordeId`, `t`.`ThreatLevel`, `t`.`DefeatedByNickname`, `t`.`DefeatedBySquadId`, `t`.`HighCommandId`, `ff`.`Id`, `ff`.`CapitalName`, `ff`.`Discriminator`, `ff`.`Name`, `ff`.`CommanderName`, `ff`.`Eradicated`, [ff.Capital].`Name`, [ff.Capital].`Location`, [ff.Capital].`Nation` + //FROM `Factions` AS `f2` + //LEFT JOIN ( + // SELECT [f2.Commander].* + // FROM `LocustLeaders` AS [f2.Commander] + // WHERE [f2.Commander].`Discriminator` = 'LocustCommander' + //) AS `t` ON (`f2`.`Discriminator` = 'LocustHorde') AND (`f2`.`CommanderName` = `t`.`Name`) + //CROSS JOIN `Factions` AS `ff` + //LEFT JOIN `Cities` AS [ff.Capital] ON `ff`.`CapitalName` = [ff.Capital].`Name` + //WHERE (`f2`.`Discriminator` = 'LocustHorde') AND (`f2`.`Discriminator` = 'LocustHorde') + //ORDER BY `f2`.`Name`, `ff`.`Name`, `f2`.`Id`", + // // + // $@"SELECT [f2.Leaders].`Name`, [f2.Leaders].`Discriminator`, [f2.Leaders].`LocustHordeId`, [f2.Leaders].`ThreatLevel`, [f2.Leaders].`DefeatedByNickname`, [f2.Leaders].`DefeatedBySquadId`, [f2.Leaders].`HighCommandId` + //FROM `LocustLeaders` AS [f2.Leaders] + //INNER JOIN ( + // SELECT DISTINCT `f20`.`Id`, `f20`.`Name`, `ff0`.`Name` AS `Name0` + // FROM `Factions` AS `f20` + // LEFT JOIN ( + // SELECT [f2.Commander0].* + // FROM `LocustLeaders` AS [f2.Commander0] + // WHERE [f2.Commander0].`Discriminator` = 'LocustCommander' + // ) AS `t0` ON (`f20`.`Discriminator` = 'LocustHorde') AND (`f20`.`CommanderName` = `t0`.`Name`) + // CROSS JOIN `Factions` AS `ff0` + // LEFT JOIN `Cities` AS [ff.Capital0] ON `ff0`.`CapitalName` = [ff.Capital0].`Name` + // WHERE (`f20`.`Discriminator` = 'LocustHorde') AND (`f20`.`Discriminator` = 'LocustHorde') + //) AS `t1` ON [f2.Leaders].`LocustHordeId` = `t1`.`Id` + //WHERE [f2.Leaders].`Discriminator` IN ('LocustCommander', 'LocustLeader') + //ORDER BY `t1`.`Name`, `t1`.`Name0`, `t1`.`Id`"); + // } public override async Task Distinct_on_subquery_doesnt_get_lifted(bool isAsync) { await base.Distinct_on_subquery_doesnt_get_lifted(isAsync); AssertSql( - $@"SELECT `t`.`HasSoulPatch` + @"SELECT `t`.`HasSoulPatch` FROM ( SELECT DISTINCT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') ) AS `t`"); } @@ -3431,9 +3102,8 @@ FROM ( await base.Cast_result_operator_on_subquery_is_properly_lifted_to_a_convert(isAsync); AssertSql( - $@"SELECT `f`.`Eradicated` -FROM `Factions` AS `f` -WHERE `f`.`Discriminator` = 'LocustHorde'"); + @"SELECT `f`.`Eradicated` +FROM `Factions` AS `f`"); } public override async Task Comparing_two_collection_navigations_composite_key(bool isAsync) @@ -3441,14 +3111,10 @@ WHERE `f`.`Discriminator` = 'LocustHorde'"); await base.Comparing_two_collection_navigations_composite_key(isAsync); AssertSql( - $@"SELECT `g`.`Nickname` AS `Nickname1`, `t`.`Nickname` AS `Nickname2` + @"SELECT `g`.`Nickname` AS `Nickname1`, `g0`.`Nickname` AS `Nickname2` FROM `Gears` AS `g`, -( - SELECT `g0`.`Nickname`, `g0`.`SquadId`, `g0`.`AssignedCityName`, `g0`.`CityOfBirthName`, `g0`.`Discriminator`, `g0`.`FullName`, `g0`.`HasSoulPatch`, `g0`.`LeaderNickname`, `g0`.`LeaderSquadId`, `g0`.`Rank` - FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') -) AS `t` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`g`.`Nickname` = `t`.`Nickname`) AND (`g`.`SquadId` = `t`.`SquadId`)) +`Gears` AS `g0` +WHERE (`g`.`Nickname` = `g0`.`Nickname`) AND (`g`.`SquadId` = `g0`.`SquadId`) ORDER BY `g`.`Nickname`"); } @@ -3482,14 +3148,14 @@ WHERE ((`f`.`Discriminator` = 'LocustHorde') AND ((`f`.`Discriminator` = 'Locust await base.Comparing_entities_using_Equals_inheritance(isAsync); AssertSql( - $@"SELECT `g`.`Nickname` AS `Nickname1`, `t`.`Nickname` AS `Nickname2` + @"SELECT `g`.`Nickname` AS `Nickname1`, `t`.`Nickname` AS `Nickname2` FROM `Gears` AS `g`, ( - SELECT `g0`.`Nickname`, `g0`.`SquadId`, `g0`.`AssignedCityName`, `g0`.`CityOfBirthName`, `g0`.`Discriminator`, `g0`.`FullName`, `g0`.`HasSoulPatch`, `g0`.`LeaderNickname`, `g0`.`LeaderSquadId`, `g0`.`Rank` + SELECT `g0`.`Nickname`, `g0`.`SquadId` FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') AND (`g0`.`Discriminator` = 'Officer') + WHERE `g0`.`Discriminator` = 'Officer' ) AS `t` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`g`.`Nickname` = `t`.`Nickname`) AND (`g`.`SquadId` = `t`.`SquadId`)) +WHERE (`g`.`Nickname` = `t`.`Nickname`) AND (`g`.`SquadId` = `t`.`SquadId`) ORDER BY `g`.`Nickname`, `t`.`Nickname`"); } @@ -3498,10 +3164,10 @@ ORDER BY `g`.`Nickname`, `t`.`Nickname`"); await base.Contains_on_nullable_array_produces_correct_sql(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` LEFT JOIN `Cities` AS `c` ON `g`.`AssignedCityName` = `c`.`Name` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`g`.`SquadId` < 2) AND (`c`.`Name` IN ('Ephyra') OR `c`.`Name` IS NULL))"); +WHERE (`g`.`SquadId` < 2) AND ((`c`.`Name` = 'Ephyra') OR (`c`.`Name` IS NULL))"); } public override async Task Optional_navigation_with_collection_composite_key(bool isAsync) @@ -3509,17 +3175,13 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`g`.`SquadId` < 2) AND (` await base.Optional_navigation_with_collection_composite_key(isAsync); AssertSql( - $@"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`Note` + @"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`IssueDate`, `t`.`Note` FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -WHERE (`t0`.`Discriminator` = 'Officer') AND (( +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`) +WHERE (`g`.`Discriminator` = 'Officer') AND (( SELECT COUNT(*) FROM `Gears` AS `g0` - WHERE (`g0`.`Discriminator` IN ('Gear', 'Officer') AND (`t0`.`Nickname` IS NOT NULL AND ((`t0`.`Nickname` = `g0`.`LeaderNickname`) AND (`t0`.`SquadId` = `g0`.`LeaderSquadId`)))) AND (`g0`.`Nickname` = 'Dom')) > 0)"); + WHERE (((`g`.`Nickname` IS NOT NULL) AND (`g`.`SquadId` IS NOT NULL)) AND ((`g`.`Nickname` = `g0`.`LeaderNickname`) AND (`g`.`SquadId` = `g0`.`LeaderSquadId`))) AND (`g0`.`Nickname` = 'Dom')) > 0)"); } public override async Task Select_null_conditional_with_inheritance(bool isAsync) @@ -3527,12 +3189,8 @@ WHERE (`t0`.`Discriminator` = 'Officer') AND (( await base.Select_null_conditional_with_inheritance(isAsync); AssertSql( - $@"SELECT CASE - WHEN `f`.`CommanderName` IS NOT NULL THEN `f`.`CommanderName` - ELSE NULL -END -FROM `Factions` AS `f` -WHERE (`f`.`Discriminator` = 'LocustHorde') AND (`f`.`Discriminator` = 'LocustHorde')"); + @"SELECT IIF(`f`.`CommanderName` IS NOT NULL, `f`.`CommanderName`, NULL) +FROM `Factions` AS `f`"); } public override async Task Select_null_conditional_with_inheritance_negative(bool isAsync) @@ -3540,12 +3198,8 @@ WHERE (`f`.`Discriminator` = 'LocustHorde') AND (`f`.`Discriminator` = 'LocustHo await base.Select_null_conditional_with_inheritance_negative(isAsync); AssertSql( - $@"SELECT CASE - WHEN `f`.`CommanderName` IS NOT NULL THEN `f`.`Eradicated` - ELSE NULL -END -FROM `Factions` AS `f` -WHERE (`f`.`Discriminator` = 'LocustHorde') AND (`f`.`Discriminator` = 'LocustHorde')"); + @"SELECT IIF(`f`.`CommanderName` IS NOT NULL, `f`.`Eradicated`, NULL) +FROM `Factions` AS `f`"); } public override async Task Project_collection_navigation_with_inheritance1(bool isAsync) @@ -3553,25 +3207,16 @@ WHERE (`f`.`Discriminator` = 'LocustHorde') AND (`f`.`Discriminator` = 'LocustHo await base.Project_collection_navigation_with_inheritance1(isAsync); AssertSql( - $@"SELECT `f`.`Id`, `t1`.`Name`, `t1`.`Discriminator`, `t1`.`LocustHordeId`, `t1`.`ThreatLevel`, `t1`.`DefeatedByNickname`, `t1`.`DefeatedBySquadId`, `t1`.`HighCommandId` -FROM `Factions` AS `f` + @"SELECT `f`.`Id`, `t`.`Name`, `f0`.`Id`, `l0`.`Name`, `l0`.`Discriminator`, `l0`.`LocustHordeId`, `l0`.`ThreatLevel`, `l0`.`ThreatLevelByte`, `l0`.`ThreatLevelNullableByte`, `l0`.`DefeatedByNickname`, `l0`.`DefeatedBySquadId`, `l0`.`HighCommandId` +FROM ((`Factions` AS `f` LEFT JOIN ( - SELECT `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId` + SELECT `l`.`Name` FROM `LocustLeaders` AS `l` WHERE `l`.`Discriminator` = 'LocustCommander' -) AS `t` ON `f`.`CommanderName` = `t`.`Name` -LEFT JOIN ( - SELECT `f0`.`Id`, `f0`.`CapitalName`, `f0`.`Discriminator`, `f0`.`Name`, `f0`.`CommanderName`, `f0`.`Eradicated` - FROM `Factions` AS `f0` - WHERE `f0`.`Discriminator` = 'LocustHorde' -) AS `t0` ON `t`.`Name` = `t0`.`CommanderName` -LEFT JOIN ( - SELECT `l0`.`Name`, `l0`.`Discriminator`, `l0`.`LocustHordeId`, `l0`.`ThreatLevel`, `l0`.`DefeatedByNickname`, `l0`.`DefeatedBySquadId`, `l0`.`HighCommandId` - FROM `LocustLeaders` AS `l0` - WHERE `l0`.`Discriminator` IN ('LocustLeader', 'LocustCommander') -) AS `t1` ON `t0`.`Id` = `t1`.`LocustHordeId` -WHERE (`f`.`Discriminator` = 'LocustHorde') AND (`f`.`Discriminator` = 'LocustHorde') -ORDER BY `f`.`Id`, `t1`.`Name`"); +) AS `t` ON `f`.`CommanderName` = `t`.`Name`) +LEFT JOIN `Factions` AS `f0` ON `t`.`Name` = `f0`.`CommanderName`) +LEFT JOIN `LocustLeaders` AS `l0` ON `f0`.`Id` = `l0`.`LocustHordeId` +ORDER BY `f`.`Id`, `t`.`Name`, `f0`.`Id`"); } public override async Task Project_collection_navigation_with_inheritance2(bool isAsync) @@ -3631,14 +3276,9 @@ ORDER BY `f`.`Id`, `t1`.`Nickname`, `t1`.`SquadId`"); await base.Include_reference_on_derived_type_using_string(isAsync); AssertSql( - $@"SELECT `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId`, `t`.`Nickname`, `t`.`SquadId`, `t`.`AssignedCityName`, `t`.`CityOfBirthName`, `t`.`Discriminator`, `t`.`FullName`, `t`.`HasSoulPatch`, `t`.`LeaderNickname`, `t`.`LeaderSquadId`, `t`.`Rank` + @"SELECT `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`ThreatLevelByte`, `l`.`ThreatLevelNullableByte`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId`, `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `LocustLeaders` AS `l` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t` ON (`l`.`DefeatedByNickname` = `t`.`Nickname`) AND (`l`.`DefeatedBySquadId` = `t`.`SquadId`) -WHERE `l`.`Discriminator` IN ('LocustLeader', 'LocustCommander')"); +LEFT JOIN `Gears` AS `g` ON (`l`.`DefeatedByNickname` = `g`.`Nickname`) AND (`l`.`DefeatedBySquadId` = `g`.`SquadId`)"); } public override async Task Include_reference_on_derived_type_using_string_nested1(bool isAsync) @@ -3646,15 +3286,10 @@ WHERE `l`.`Discriminator` IN ('LocustLeader', 'LocustCommander')"); await base.Include_reference_on_derived_type_using_string_nested1(isAsync); AssertSql( - $@"SELECT `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId`, `t`.`Nickname`, `t`.`SquadId`, `t`.`AssignedCityName`, `t`.`CityOfBirthName`, `t`.`Discriminator`, `t`.`FullName`, `t`.`HasSoulPatch`, `t`.`LeaderNickname`, `t`.`LeaderSquadId`, `t`.`Rank`, `s`.`Id`, `s`.`InternalNumber`, `s`.`Name` -FROM `LocustLeaders` AS `l` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t` ON (`l`.`DefeatedByNickname` = `t`.`Nickname`) AND (`l`.`DefeatedBySquadId` = `t`.`SquadId`) -LEFT JOIN `Squads` AS `s` ON `t`.`SquadId` = `s`.`Id` -WHERE `l`.`Discriminator` IN ('LocustLeader', 'LocustCommander')"); + @"SELECT `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`ThreatLevelByte`, `l`.`ThreatLevelNullableByte`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId`, `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `s`.`Id`, `s`.`Banner`, `s`.`Banner5`, `s`.`InternalNumber`, `s`.`Name` +FROM (`LocustLeaders` AS `l` +LEFT JOIN `Gears` AS `g` ON (`l`.`DefeatedByNickname` = `g`.`Nickname`) AND (`l`.`DefeatedBySquadId` = `g`.`SquadId`)) +LEFT JOIN `Squads` AS `s` ON `g`.`SquadId` = `s`.`Id`"); } public override async Task Include_reference_on_derived_type_using_string_nested2(bool isAsync) @@ -3684,14 +3319,9 @@ ORDER BY `l`.`Name`, `t0`.`Nickname`, `t0`.`SquadId`, `t0`.`Name`"); await base.Include_reference_on_derived_type_using_lambda(isAsync); AssertSql( - $@"SELECT `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId`, `t`.`Nickname`, `t`.`SquadId`, `t`.`AssignedCityName`, `t`.`CityOfBirthName`, `t`.`Discriminator`, `t`.`FullName`, `t`.`HasSoulPatch`, `t`.`LeaderNickname`, `t`.`LeaderSquadId`, `t`.`Rank` + @"SELECT `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`ThreatLevelByte`, `l`.`ThreatLevelNullableByte`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId`, `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `LocustLeaders` AS `l` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t` ON (`l`.`DefeatedByNickname` = `t`.`Nickname`) AND (`l`.`DefeatedBySquadId` = `t`.`SquadId`) -WHERE `l`.`Discriminator` IN ('LocustLeader', 'LocustCommander')"); +LEFT JOIN `Gears` AS `g` ON (`l`.`DefeatedByNickname` = `g`.`Nickname`) AND (`l`.`DefeatedBySquadId` = `g`.`SquadId`)"); } public override async Task Include_reference_on_derived_type_using_lambda_with_soft_cast(bool isAsync) @@ -3699,14 +3329,9 @@ WHERE `l`.`Discriminator` IN ('LocustLeader', 'LocustCommander')"); await base.Include_reference_on_derived_type_using_lambda_with_soft_cast(isAsync); AssertSql( - $@"SELECT `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId`, `t`.`Nickname`, `t`.`SquadId`, `t`.`AssignedCityName`, `t`.`CityOfBirthName`, `t`.`Discriminator`, `t`.`FullName`, `t`.`HasSoulPatch`, `t`.`LeaderNickname`, `t`.`LeaderSquadId`, `t`.`Rank` + @"SELECT `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`ThreatLevelByte`, `l`.`ThreatLevelNullableByte`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId`, `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `LocustLeaders` AS `l` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t` ON (`l`.`DefeatedByNickname` = `t`.`Nickname`) AND (`l`.`DefeatedBySquadId` = `t`.`SquadId`) -WHERE `l`.`Discriminator` IN ('LocustLeader', 'LocustCommander')"); +LEFT JOIN `Gears` AS `g` ON (`l`.`DefeatedByNickname` = `g`.`Nickname`) AND (`l`.`DefeatedBySquadId` = `g`.`SquadId`)"); } public override async Task Include_reference_on_derived_type_using_lambda_with_tracking(bool isAsync) @@ -3714,14 +3339,9 @@ WHERE `l`.`Discriminator` IN ('LocustLeader', 'LocustCommander')"); await base.Include_reference_on_derived_type_using_lambda_with_tracking(isAsync); AssertSql( - $@"SELECT `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId`, `t`.`Nickname`, `t`.`SquadId`, `t`.`AssignedCityName`, `t`.`CityOfBirthName`, `t`.`Discriminator`, `t`.`FullName`, `t`.`HasSoulPatch`, `t`.`LeaderNickname`, `t`.`LeaderSquadId`, `t`.`Rank` + @"SELECT `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`ThreatLevelByte`, `l`.`ThreatLevelNullableByte`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId`, `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `LocustLeaders` AS `l` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t` ON (`l`.`DefeatedByNickname` = `t`.`Nickname`) AND (`l`.`DefeatedBySquadId` = `t`.`SquadId`) -WHERE `l`.`Discriminator` IN ('LocustLeader', 'LocustCommander')"); +LEFT JOIN `Gears` AS `g` ON (`l`.`DefeatedByNickname` = `g`.`Nickname`) AND (`l`.`DefeatedBySquadId` = `g`.`SquadId`)"); } public override async Task Include_collection_on_derived_type_using_string(bool isAsync) @@ -3777,12 +3397,11 @@ ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t`.`Nickname`, `t`.`SquadId`"); await base.Include_base_navigation_on_derived_entity(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`Note`, `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` -FROM `Gears` AS `g` -LEFT JOIN `Tags` AS `t` ON (`g`.`Nickname` = `t`.`GearNickName`) AND (`g`.`SquadId` = `t`.`GearSquadId`) + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`IssueDate`, `t`.`Note`, `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` +FROM (`Gears` AS `g` +LEFT JOIN `Tags` AS `t` ON (`g`.`Nickname` = `t`.`GearNickName`) AND (`g`.`SquadId` = `t`.`GearSquadId`)) LEFT JOIN `Weapons` AS `w` ON `g`.`FullName` = `w`.`OwnerFullName` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -ORDER BY `g`.`Nickname`, `g`.`SquadId`, `w`.`Id`"); +ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`"); } public override async Task ThenInclude_collection_on_derived_after_base_reference(bool isAsync) @@ -3790,15 +3409,11 @@ ORDER BY `g`.`Nickname`, `g`.`SquadId`, `w`.`Id`"); await base.ThenInclude_collection_on_derived_after_base_reference(isAsync); AssertSql( - $@"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`Note`, `t0`.`Nickname`, `t0`.`SquadId`, `t0`.`AssignedCityName`, `t0`.`CityOfBirthName`, `t0`.`Discriminator`, `t0`.`FullName`, `t0`.`HasSoulPatch`, `t0`.`LeaderNickname`, `t0`.`LeaderSquadId`, `t0`.`Rank`, `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` -FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -LEFT JOIN `Weapons` AS `w` ON `t0`.`FullName` = `w`.`OwnerFullName` -ORDER BY `t`.`Id`, `w`.`Id`"); + @"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`IssueDate`, `t`.`Note`, `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` +FROM (`Tags` AS `t` +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`)) +LEFT JOIN `Weapons` AS `w` ON `g`.`FullName` = `w`.`OwnerFullName` +ORDER BY `t`.`Id`, `g`.`Nickname`, `g`.`SquadId`"); } public override async Task ThenInclude_collection_on_derived_after_derived_reference(bool isAsync) @@ -3853,20 +3468,14 @@ ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t0`.`Nickname`, `t0`.`SquadId`, `t0`.`N await base.ThenInclude_reference_on_derived_after_derived_collection(isAsync); AssertSql( - $@"SELECT `f`.`Id`, `f`.`CapitalName`, `f`.`Discriminator`, `f`.`Name`, `f`.`CommanderName`, `f`.`Eradicated`, `t0`.`Name`, `t0`.`Discriminator`, `t0`.`LocustHordeId`, `t0`.`ThreatLevel`, `t0`.`DefeatedByNickname`, `t0`.`DefeatedBySquadId`, `t0`.`HighCommandId`, `t0`.`Nickname`, `t0`.`SquadId`, `t0`.`AssignedCityName`, `t0`.`CityOfBirthName`, `t0`.`Discriminator0`, `t0`.`FullName`, `t0`.`HasSoulPatch`, `t0`.`LeaderNickname`, `t0`.`LeaderSquadId`, `t0`.`Rank` + @"SELECT `f`.`Id`, `f`.`CapitalName`, `f`.`Discriminator`, `f`.`Name`, `f`.`ServerAddress`, `f`.`CommanderName`, `f`.`Eradicated`, `t`.`Name`, `t`.`Discriminator`, `t`.`LocustHordeId`, `t`.`ThreatLevel`, `t`.`ThreatLevelByte`, `t`.`ThreatLevelNullableByte`, `t`.`DefeatedByNickname`, `t`.`DefeatedBySquadId`, `t`.`HighCommandId`, `t`.`Nickname`, `t`.`SquadId`, `t`.`AssignedCityName`, `t`.`CityOfBirthName`, `t`.`Discriminator0`, `t`.`FullName`, `t`.`HasSoulPatch`, `t`.`LeaderNickname`, `t`.`LeaderSquadId`, `t`.`Rank` FROM `Factions` AS `f` LEFT JOIN ( - SELECT `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId`, `t`.`Nickname`, `t`.`SquadId`, `t`.`AssignedCityName`, `t`.`CityOfBirthName`, `t`.`Discriminator` AS `Discriminator0`, `t`.`FullName`, `t`.`HasSoulPatch`, `t`.`LeaderNickname`, `t`.`LeaderSquadId`, `t`.`Rank` + SELECT `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`ThreatLevelByte`, `l`.`ThreatLevelNullableByte`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId`, `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator` AS `Discriminator0`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `LocustLeaders` AS `l` - LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') - ) AS `t` ON (`l`.`DefeatedByNickname` = `t`.`Nickname`) AND (`l`.`DefeatedBySquadId` = `t`.`SquadId`) - WHERE `l`.`Discriminator` IN ('LocustLeader', 'LocustCommander') -) AS `t0` ON `f`.`Id` = `t0`.`LocustHordeId` -WHERE `f`.`Discriminator` = 'LocustHorde' -ORDER BY `f`.`Id`, `t0`.`Name`"); + LEFT JOIN `Gears` AS `g` ON (`l`.`DefeatedByNickname` = `g`.`Nickname`) AND (`l`.`DefeatedBySquadId` = `g`.`SquadId`) +) AS `t` ON `f`.`Id` = `t`.`LocustHordeId` +ORDER BY `f`.`Id`, `t`.`Name`, `t`.`Nickname`"); } public override async Task Multiple_derived_included_on_one_method(bool isAsync) @@ -3918,16 +3527,9 @@ ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t`.`Nickname`, `t`.`SquadId`, `t`.`Id`, await base.Projecting_nullable_bool_in_conditional_works(isAsync); AssertSql( - $@"SELECT CASE - WHEN `t0`.`Nickname` IS NOT NULL THEN `t0`.`HasSoulPatch` - ELSE False -END AS `Prop` + @"SELECT IIF((`g`.`Nickname` IS NOT NULL) AND (`g`.`SquadId` IS NOT NULL), `g`.`HasSoulPatch`, FALSE) AS `Prop` FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`)"); +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`)"); } public override async Task Enum_ToString_is_client_eval(bool isAsync) @@ -3937,7 +3539,6 @@ LEFT JOIN ( AssertSql( $@"SELECT `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') ORDER BY `g`.`SquadId`, `g`.`Nickname`"); } @@ -3946,11 +3547,11 @@ ORDER BY `g`.`SquadId`, `g`.`Nickname`"); await base.Correlated_collections_naked_navigation_with_ToList(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` FROM `Gears` AS `g` LEFT JOIN `Weapons` AS `w` ON `g`.`FullName` = `w`.`OwnerFullName` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`Nickname` <> 'Marcus') -ORDER BY `g`.`Nickname`, `g`.`SquadId`, `w`.`Id`"); +WHERE `g`.`Nickname` <> 'Marcus' +ORDER BY `g`.`Nickname`, `g`.`SquadId`"); } public override async Task Correlated_collections_naked_navigation_with_ToList_followed_by_projecting_count(bool isAsync) @@ -3958,11 +3559,13 @@ ORDER BY `g`.`Nickname`, `g`.`SquadId`, `w`.`Id`"); await base.Correlated_collections_naked_navigation_with_ToList_followed_by_projecting_count(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` + @"SELECT ( + SELECT COUNT(*) + FROM `Weapons` AS `w` + WHERE `g`.`FullName` = `w`.`OwnerFullName`) FROM `Gears` AS `g` -LEFT JOIN `Weapons` AS `w` ON `g`.`FullName` = `w`.`OwnerFullName` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`Nickname` <> 'Marcus') -ORDER BY `g`.`Nickname`, `g`.`SquadId`, `w`.`Id`"); +WHERE `g`.`Nickname` <> 'Marcus' +ORDER BY `g`.`Nickname`"); } public override async Task Correlated_collections_naked_navigation_with_ToArray(bool isAsync) @@ -3970,11 +3573,11 @@ ORDER BY `g`.`Nickname`, `g`.`SquadId`, `w`.`Id`"); await base.Correlated_collections_naked_navigation_with_ToArray(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` FROM `Gears` AS `g` LEFT JOIN `Weapons` AS `w` ON `g`.`FullName` = `w`.`OwnerFullName` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`Nickname` <> 'Marcus') -ORDER BY `g`.`Nickname`, `g`.`SquadId`, `w`.`Id`"); +WHERE `g`.`Nickname` <> 'Marcus' +ORDER BY `g`.`Nickname`, `g`.`SquadId`"); } public override async Task Correlated_collections_basic_projection(bool isAsync) @@ -3982,15 +3585,15 @@ ORDER BY `g`.`Nickname`, `g`.`SquadId`, `w`.`Id`"); await base.Correlated_collections_basic_projection(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`, `t`.`AmmunitionType`, `t`.`IsAutomatic`, `t`.`Name`, `t`.`OwnerFullName`, `t`.`SynergyWithId` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`, `t`.`AmmunitionType`, `t`.`IsAutomatic`, `t`.`Name`, `t`.`OwnerFullName`, `t`.`SynergyWithId` FROM `Gears` AS `g` LEFT JOIN ( SELECT `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` FROM `Weapons` AS `w` - WHERE (`w`.`IsAutomatic` = True) OR ((`w`.`Name` <> 'foo') OR `w`.`Name` IS NULL) + WHERE (`w`.`IsAutomatic` = TRUE) OR ((`w`.`Name` <> 'foo') OR (`w`.`Name` IS NULL)) ) AS `t` ON `g`.`FullName` = `t`.`OwnerFullName` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`Nickname` <> 'Marcus') -ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`"); +WHERE `g`.`Nickname` <> 'Marcus' +ORDER BY `g`.`Nickname`, `g`.`SquadId`"); } public override async Task Correlated_collections_basic_projection_explicit_to_list(bool isAsync) @@ -3998,15 +3601,15 @@ ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`"); await base.Correlated_collections_basic_projection_explicit_to_list(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`, `t`.`AmmunitionType`, `t`.`IsAutomatic`, `t`.`Name`, `t`.`OwnerFullName`, `t`.`SynergyWithId` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`, `t`.`AmmunitionType`, `t`.`IsAutomatic`, `t`.`Name`, `t`.`OwnerFullName`, `t`.`SynergyWithId` FROM `Gears` AS `g` LEFT JOIN ( SELECT `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` FROM `Weapons` AS `w` - WHERE (`w`.`IsAutomatic` = True) OR ((`w`.`Name` <> 'foo') OR `w`.`Name` IS NULL) + WHERE (`w`.`IsAutomatic` = TRUE) OR ((`w`.`Name` <> 'foo') OR (`w`.`Name` IS NULL)) ) AS `t` ON `g`.`FullName` = `t`.`OwnerFullName` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`Nickname` <> 'Marcus') -ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`"); +WHERE `g`.`Nickname` <> 'Marcus' +ORDER BY `g`.`Nickname`, `g`.`SquadId`"); } public override async Task Correlated_collections_basic_projection_explicit_to_array(bool isAsync) @@ -4014,15 +3617,15 @@ ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`"); await base.Correlated_collections_basic_projection_explicit_to_array(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`, `t`.`AmmunitionType`, `t`.`IsAutomatic`, `t`.`Name`, `t`.`OwnerFullName`, `t`.`SynergyWithId` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`, `t`.`AmmunitionType`, `t`.`IsAutomatic`, `t`.`Name`, `t`.`OwnerFullName`, `t`.`SynergyWithId` FROM `Gears` AS `g` LEFT JOIN ( SELECT `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` FROM `Weapons` AS `w` - WHERE (`w`.`IsAutomatic` = True) OR ((`w`.`Name` <> 'foo') OR `w`.`Name` IS NULL) + WHERE (`w`.`IsAutomatic` = TRUE) OR ((`w`.`Name` <> 'foo') OR (`w`.`Name` IS NULL)) ) AS `t` ON `g`.`FullName` = `t`.`OwnerFullName` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`Nickname` <> 'Marcus') -ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`"); +WHERE `g`.`Nickname` <> 'Marcus' +ORDER BY `g`.`Nickname`, `g`.`SquadId`"); } public override async Task Correlated_collections_basic_projection_ordered(bool isAsync) @@ -4046,15 +3649,15 @@ ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t`.`Name` DESC, `t`.`Id`"); await base.Correlated_collections_basic_projection_composite_key(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `t`.`Nickname`, `t`.`FullName`, `t`.`SquadId` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `t`.`Nickname`, `t`.`FullName`, `t`.`SquadId` FROM `Gears` AS `g` LEFT JOIN ( SELECT `g0`.`Nickname`, `g0`.`FullName`, `g0`.`SquadId`, `g0`.`LeaderNickname`, `g0`.`LeaderSquadId` FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') AND (`g0`.`HasSoulPatch` <> True) + WHERE `g0`.`HasSoulPatch` <> TRUE ) AS `t` ON (`g`.`Nickname` = `t`.`LeaderNickname`) AND (`g`.`SquadId` = `t`.`LeaderSquadId`) -WHERE (`g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`Discriminator` = 'Officer')) AND (`g`.`Nickname` <> 'Foo') -ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t`.`Nickname`, `t`.`SquadId`"); +WHERE (`g`.`Discriminator` = 'Officer') AND (`g`.`Nickname` <> 'Foo') +ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t`.`Nickname`"); } public override async Task Correlated_collections_basic_projecting_single_property(bool isAsync) @@ -4062,15 +3665,15 @@ ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t`.`Nickname`, `t`.`SquadId`"); await base.Correlated_collections_basic_projecting_single_property(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `t`.`Name`, `t`.`Id` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `t`.`Name`, `t`.`Id` FROM `Gears` AS `g` LEFT JOIN ( SELECT `w`.`Name`, `w`.`Id`, `w`.`OwnerFullName` FROM `Weapons` AS `w` - WHERE (`w`.`IsAutomatic` = True) OR ((`w`.`Name` <> 'foo') OR `w`.`Name` IS NULL) + WHERE (`w`.`IsAutomatic` = TRUE) OR ((`w`.`Name` <> 'foo') OR (`w`.`Name` IS NULL)) ) AS `t` ON `g`.`FullName` = `t`.`OwnerFullName` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`Nickname` <> 'Marcus') -ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`"); +WHERE `g`.`Nickname` <> 'Marcus' +ORDER BY `g`.`Nickname`, `g`.`SquadId`"); } public override async Task Correlated_collections_basic_projecting_constant(bool isAsync) @@ -4078,15 +3681,15 @@ ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`"); await base.Correlated_collections_basic_projecting_constant(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `t`.`c`, `t`.`Id` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `t`.`c`, `t`.`Id` FROM `Gears` AS `g` LEFT JOIN ( SELECT 'BFG' AS `c`, `w`.`Id`, `w`.`OwnerFullName` FROM `Weapons` AS `w` - WHERE (`w`.`IsAutomatic` = True) OR ((`w`.`Name` <> 'foo') OR `w`.`Name` IS NULL) + WHERE (`w`.`IsAutomatic` = TRUE) OR ((`w`.`Name` <> 'foo') OR (`w`.`Name` IS NULL)) ) AS `t` ON `g`.`FullName` = `t`.`OwnerFullName` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`Nickname` <> 'Marcus') -ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`"); +WHERE `g`.`Nickname` <> 'Marcus' +ORDER BY `g`.`Nickname`, `g`.`SquadId`"); } public override async Task Correlated_collections_basic_projecting_constant_bool(bool isAsync) @@ -4094,15 +3697,15 @@ ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`"); await base.Correlated_collections_basic_projecting_constant_bool(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `t`.`c`, `t`.`Id` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `t`.`c`, `t`.`Id` FROM `Gears` AS `g` LEFT JOIN ( - SELECT True AS `c`, `w`.`Id`, `w`.`OwnerFullName` + SELECT TRUE AS `c`, `w`.`Id`, `w`.`OwnerFullName` FROM `Weapons` AS `w` - WHERE (`w`.`IsAutomatic` = True) OR ((`w`.`Name` <> 'foo') OR `w`.`Name` IS NULL) + WHERE (`w`.`IsAutomatic` = TRUE) OR ((`w`.`Name` <> 'foo') OR (`w`.`Name` IS NULL)) ) AS `t` ON `g`.`FullName` = `t`.`OwnerFullName` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`Nickname` <> 'Marcus') -ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`"); +WHERE `g`.`Nickname` <> 'Marcus' +ORDER BY `g`.`Nickname`, `g`.`SquadId`"); } public override async Task Correlated_collections_projection_of_collection_thru_navigation(bool isAsync) @@ -4110,16 +3713,16 @@ ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`"); await base.Correlated_collections_projection_of_collection_thru_navigation(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `s`.`Id`, `t`.`SquadId`, `t`.`MissionId` -FROM `Gears` AS `g` -INNER JOIN `Squads` AS `s` ON `g`.`SquadId` = `s`.`Id` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `s`.`Id`, `t`.`SquadId`, `t`.`MissionId` +FROM (`Gears` AS `g` +INNER JOIN `Squads` AS `s` ON `g`.`SquadId` = `s`.`Id`) LEFT JOIN ( SELECT `s0`.`SquadId`, `s0`.`MissionId` FROM `SquadMissions` AS `s0` WHERE `s0`.`MissionId` <> 17 ) AS `t` ON `s`.`Id` = `t`.`SquadId` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`Nickname` <> 'Marcus') -ORDER BY `g`.`FullName`, `g`.`Nickname`, `g`.`SquadId`, `s`.`Id`, `t`.`SquadId`, `t`.`MissionId`"); +WHERE `g`.`Nickname` <> 'Marcus' +ORDER BY `g`.`FullName`, `g`.`Nickname`, `g`.`SquadId`, `s`.`Id`, `t`.`SquadId`"); } public override async Task Correlated_collections_project_anonymous_collection_result(bool isAsync) @@ -4127,15 +3730,11 @@ ORDER BY `g`.`FullName`, `g`.`Nickname`, `g`.`SquadId`, `s`.`Id`, `t`.`SquadId`, await base.Correlated_collections_project_anonymous_collection_result(isAsync); AssertSql( - $@"SELECT `s`.`Name`, `s`.`Id`, `t`.`FullName`, `t`.`Rank`, `t`.`Nickname`, `t`.`SquadId` + @"SELECT `s`.`Name`, `s`.`Id`, `g`.`FullName`, `g`.`Rank`, `g`.`Nickname`, `g`.`SquadId` FROM `Squads` AS `s` -LEFT JOIN ( - SELECT `g`.`FullName`, `g`.`Rank`, `g`.`Nickname`, `g`.`SquadId` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t` ON `s`.`Id` = `t`.`SquadId` +LEFT JOIN `Gears` AS `g` ON `s`.`Id` = `g`.`SquadId` WHERE `s`.`Id` < 20 -ORDER BY `s`.`Id`, `t`.`Nickname`, `t`.`SquadId`"); +ORDER BY `s`.`Id`, `g`.`Nickname`"); } public override async Task Correlated_collections_nested(bool isAsync) @@ -4290,13 +3889,13 @@ ORDER BY `g`.`FullName`, `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`, `t0`.`FullName await base.Multiple_orderby_with_navigation_expansion_on_one_of_the_order_bys(isAsync); AssertSql( - $@"SELECT `g`.`FullName` + @"SELECT `g`.`FullName` FROM `Gears` AS `g` LEFT JOIN `Tags` AS `t` ON (`g`.`Nickname` = `t`.`GearNickName`) AND (`g`.`SquadId` = `t`.`GearSquadId`) -WHERE (`g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`Discriminator` = 'Officer')) AND EXISTS ( +WHERE (`g`.`Discriminator` = 'Officer') AND EXISTS ( SELECT 1 FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') AND ((`g`.`Nickname` = `g0`.`LeaderNickname`) AND (`g`.`SquadId` = `g0`.`LeaderSquadId`))) + WHERE (`g`.`Nickname` = `g0`.`LeaderNickname`) AND (`g`.`SquadId` = `g0`.`LeaderSquadId`)) ORDER BY `g`.`HasSoulPatch` DESC, `t`.`Note`"); } @@ -4365,31 +3964,23 @@ ORDER BY `g`.`HasSoulPatch` DESC, `t`.`Note`, `g`.`Nickname`, `g`.`SquadId`, `t2 await base.Multiple_orderby_with_navigation_expansion_on_one_of_the_order_bys_inside_subquery_complex_orderings(isAsync); AssertSql( - $@"SELECT `g`.`FullName`, `g`.`Nickname`, `g`.`SquadId`, `t2`.`Id`, `t2`.`AmmunitionType`, `t2`.`IsAutomatic`, `t2`.`Name`, `t2`.`OwnerFullName`, `t2`.`SynergyWithId` -FROM `Gears` AS `g` -LEFT JOIN `Tags` AS `t` ON (`g`.`Nickname` = `t`.`GearNickName`) AND (`g`.`SquadId` = `t`.`GearSquadId`) -LEFT JOIN ( - SELECT `g0`.`Nickname`, `g0`.`SquadId`, `g0`.`AssignedCityName`, `g0`.`CityOfBirthName`, `g0`.`Discriminator`, `g0`.`FullName`, `g0`.`HasSoulPatch`, `g0`.`LeaderNickname`, `g0`.`LeaderSquadId`, `g0`.`Rank` - FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) + @"SELECT `g`.`FullName`, `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`, `g1`.`Nickname`, `g1`.`SquadId`, `t0`.`Id`, `t0`.`AmmunitionType`, `t0`.`IsAutomatic`, `t0`.`Name`, `t0`.`OwnerFullName`, `t0`.`SynergyWithId`, `t0`.`Nickname`, `t0`.`SquadId` +FROM ((`Gears` AS `g` +LEFT JOIN `Tags` AS `t` ON (`g`.`Nickname` = `t`.`GearNickName`) AND (`g`.`SquadId` = `t`.`GearSquadId`)) +LEFT JOIN `Gears` AS `g1` ON (`t`.`GearNickName` = `g1`.`Nickname`) AND (`t`.`GearSquadId` = `g1`.`SquadId`)) LEFT JOIN ( - SELECT `w0`.`Id`, `w0`.`AmmunitionType`, `w0`.`IsAutomatic`, `w0`.`Name`, `w0`.`OwnerFullName`, `w0`.`SynergyWithId`, ( + SELECT `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId`, `g2`.`Nickname`, `g2`.`SquadId`, ( SELECT COUNT(*) - FROM `Weapons` AS `w` - WHERE `t1`.`FullName` IS NOT NULL AND (`t1`.`FullName` = `w`.`OwnerFullName`)) AS `c` - FROM `Weapons` AS `w0` - LEFT JOIN ( - SELECT `g1`.`Nickname`, `g1`.`SquadId`, `g1`.`AssignedCityName`, `g1`.`CityOfBirthName`, `g1`.`Discriminator`, `g1`.`FullName`, `g1`.`HasSoulPatch`, `g1`.`LeaderNickname`, `g1`.`LeaderSquadId`, `g1`.`Rank` - FROM `Gears` AS `g1` - WHERE `g1`.`Discriminator` IN ('Gear', 'Officer') - ) AS `t1` ON `w0`.`OwnerFullName` = `t1`.`FullName` -) AS `t2` ON `t0`.`FullName` = `t2`.`OwnerFullName` -WHERE (`g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`Discriminator` = 'Officer')) AND EXISTS ( + FROM `Weapons` AS `w0` + WHERE (`g2`.`FullName` IS NOT NULL) AND (`g2`.`FullName` = `w0`.`OwnerFullName`)) AS `c` + FROM `Weapons` AS `w` + LEFT JOIN `Gears` AS `g2` ON `w`.`OwnerFullName` = `g2`.`FullName` +) AS `t0` ON `g1`.`FullName` = `t0`.`OwnerFullName` +WHERE (`g`.`Discriminator` = 'Officer') AND EXISTS ( SELECT 1 - FROM `Gears` AS `g2` - WHERE `g2`.`Discriminator` IN ('Gear', 'Officer') AND ((`g`.`Nickname` = `g2`.`LeaderNickname`) AND (`g`.`SquadId` = `g2`.`LeaderSquadId`))) -ORDER BY `g`.`HasSoulPatch` DESC, `t`.`Note`, `g`.`Nickname`, `g`.`SquadId`, `t2`.`Id` DESC, `t2`.`c`"); + FROM `Gears` AS `g0` + WHERE (`g`.`Nickname` = `g0`.`LeaderNickname`) AND (`g`.`SquadId` = `g0`.`LeaderSquadId`)) +ORDER BY `g`.`HasSoulPatch` DESC, `t`.`Note`, `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`, `g1`.`Nickname`, `g1`.`SquadId`, `t0`.`Id` DESC, `t0`.`c`, `t0`.`Nickname`"); } public override async Task Correlated_collections_multiple_nested_complex_collections(bool isAsync) @@ -4609,10 +4200,10 @@ ORDER BY `s`.`Name`, `s`.`Id`, `t`.`Nickname`, `t`.`SquadId`"); await base.Correlated_collections_with_FirstOrDefault(isAsync); AssertSql( - $@"SELECT ( + @"SELECT ( SELECT TOP 1 `g`.`FullName` FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`s`.`Id` = `g`.`SquadId`) + WHERE `s`.`Id` = `g`.`SquadId` ORDER BY `g`.`Nickname`) FROM `Squads` AS `s` ORDER BY `s`.`Name`"); @@ -4623,16 +4214,12 @@ ORDER BY `s`.`Name`"); await base.Correlated_collections_on_left_join_with_predicate(isAsync); AssertSql( - $@"SELECT `t0`.`Nickname`, `t`.`Id`, `w`.`Name`, `w`.`Id` -FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON `t`.`GearNickName` = `t0`.`Nickname` -LEFT JOIN `Weapons` AS `w` ON `t0`.`FullName` = `w`.`OwnerFullName` -WHERE `t0`.`HasSoulPatch` <> True -ORDER BY `t`.`Id`, `w`.`Id`"); + @"SELECT `g`.`Nickname`, `t`.`Id`, `g`.`SquadId`, `w`.`Name`, `w`.`Id` +FROM (`Tags` AS `t` +LEFT JOIN `Gears` AS `g` ON `t`.`GearNickName` = `g`.`Nickname`) +LEFT JOIN `Weapons` AS `w` ON `g`.`FullName` = `w`.`OwnerFullName` +WHERE `g`.`HasSoulPatch` <> TRUE +ORDER BY `t`.`Id`, `g`.`Nickname`, `g`.`SquadId`"); } public override async Task Correlated_collections_on_left_join_with_null_value(bool isAsync) @@ -4640,15 +4227,11 @@ ORDER BY `t`.`Id`, `w`.`Id`"); await base.Correlated_collections_on_left_join_with_null_value(isAsync); AssertSql( - $@"SELECT `t`.`Id`, `w`.`Name`, `w`.`Id` -FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON `t`.`GearNickName` = `t0`.`Nickname` -LEFT JOIN `Weapons` AS `w` ON `t0`.`FullName` = `w`.`OwnerFullName` -ORDER BY `t`.`Note`, `t`.`Id`, `w`.`Id`"); + @"SELECT `t`.`Id`, `g`.`Nickname`, `g`.`SquadId`, `w`.`Name`, `w`.`Id` +FROM (`Tags` AS `t` +LEFT JOIN `Gears` AS `g` ON `t`.`GearNickName` = `g`.`Nickname`) +LEFT JOIN `Weapons` AS `w` ON `g`.`FullName` = `w`.`OwnerFullName` +ORDER BY `t`.`Note`, `t`.`Id`, `g`.`Nickname`, `g`.`SquadId`"); } public override async Task Correlated_collections_left_join_with_self_reference(bool isAsync) @@ -4842,15 +4425,14 @@ ORDER BY `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`FullName`, `g`.`Nickname await base.Correlated_collection_with_top_level_FirstOrDefault(isAsync); AssertSql( - $@"SELECT `t`.`Nickname`, `t`.`SquadId`, `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` + @"SELECT `t`.`Nickname`, `t`.`SquadId`, `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` FROM ( SELECT TOP 1 `g`.`Nickname`, `g`.`SquadId`, `g`.`FullName` FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') ORDER BY `g`.`Nickname` ) AS `t` LEFT JOIN `Weapons` AS `w` ON `t`.`FullName` = `w`.`OwnerFullName` -ORDER BY `t`.`Nickname`, `t`.`SquadId`, `w`.`Id`"); +ORDER BY `t`.`Nickname`, `t`.`SquadId`"); } public override async Task Correlated_collection_with_top_level_Count(bool isAsync) @@ -4858,9 +4440,8 @@ ORDER BY `t`.`Nickname`, `t`.`SquadId`, `w`.`Id`"); await base.Correlated_collection_with_top_level_Count(isAsync); AssertSql( - $@"SELECT COUNT(*) -FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); + @"SELECT COUNT(*) +FROM `Gears` AS `g`"); } public override async Task Correlated_collection_with_top_level_Last_with_orderby_on_outer(bool isAsync) @@ -4868,15 +4449,14 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); await base.Correlated_collection_with_top_level_Last_with_orderby_on_outer(isAsync); AssertSql( - $@"SELECT `t`.`Nickname`, `t`.`SquadId`, `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` + @"SELECT `t`.`Nickname`, `t`.`SquadId`, `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` FROM ( SELECT TOP 1 `g`.`Nickname`, `g`.`SquadId`, `g`.`FullName` FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') ORDER BY `g`.`FullName` ) AS `t` LEFT JOIN `Weapons` AS `w` ON `t`.`FullName` = `w`.`OwnerFullName` -ORDER BY `t`.`FullName`, `t`.`Nickname`, `t`.`SquadId`, `w`.`Id`"); +ORDER BY `t`.`FullName`, `t`.`Nickname`, `t`.`SquadId`"); } public override async Task Correlated_collection_with_top_level_Last_with_order_by_on_inner(bool isAsync) @@ -4884,30 +4464,32 @@ ORDER BY `t`.`FullName`, `t`.`Nickname`, `t`.`SquadId`, `w`.`Id`"); await base.Correlated_collection_with_top_level_Last_with_order_by_on_inner(isAsync); AssertSql( - $@"SELECT `t`.`Nickname`, `t`.`SquadId`, `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` + @"SELECT `t`.`Nickname`, `t`.`SquadId`, `t0`.`Id`, `t0`.`AmmunitionType`, `t0`.`IsAutomatic`, `t0`.`Name`, `t0`.`OwnerFullName`, `t0`.`SynergyWithId` FROM ( SELECT TOP 1 `g`.`Nickname`, `g`.`SquadId`, `g`.`FullName` FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') ORDER BY `g`.`FullName` DESC ) AS `t` -LEFT JOIN `Weapons` AS `w` ON `t`.`FullName` = `w`.`OwnerFullName` -ORDER BY `t`.`FullName` DESC, `t`.`Nickname`, `t`.`SquadId`, `w`.`Name`, `w`.`Id`"); +LEFT JOIN ( + SELECT `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` + FROM `Weapons` AS `w` +) AS `t0` ON `t`.`FullName` = `t0`.`OwnerFullName` +ORDER BY `t`.`FullName` DESC, `t`.`Nickname`, `t`.`SquadId`, `t0`.`Name`"); } - + public override async Task Null_semantics_on_nullable_bool_from_inner_join_subquery_is_fully_applied(bool isAsync) { await base.Null_semantics_on_nullable_bool_from_inner_join_subquery_is_fully_applied(isAsync); AssertSql( - $@"SELECT `t`.`Id`, `t`.`CapitalName`, `t`.`Discriminator`, `t`.`Name`, `t`.`CommanderName`, `t`.`Eradicated` + @"SELECT `t`.`Id`, `t`.`CapitalName`, `t`.`Discriminator`, `t`.`Name`, `t`.`ServerAddress`, `t`.`CommanderName`, `t`.`Eradicated` FROM `LocustLeaders` AS `l` INNER JOIN ( - SELECT `f`.`Id`, `f`.`CapitalName`, `f`.`Discriminator`, `f`.`Name`, `f`.`CommanderName`, `f`.`Eradicated` + SELECT `f`.`Id`, `f`.`CapitalName`, `f`.`Discriminator`, `f`.`Name`, `f`.`ServerAddress`, `f`.`CommanderName`, `f`.`Eradicated` FROM `Factions` AS `f` - WHERE ((`f`.`Discriminator` = 'LocustHorde') AND (`f`.`Discriminator` = 'LocustHorde')) AND (`f`.`Name` = 'Swarm') + WHERE `f`.`Name` = 'Swarm' ) AS `t` ON `l`.`Name` = `t`.`CommanderName` -WHERE `l`.`Discriminator` IN ('LocustLeader', 'LocustCommander') AND ((`t`.`Eradicated` <> True) OR `t`.`Eradicated` IS NULL)"); +WHERE (`t`.`Eradicated` <> TRUE) OR (`t`.`Eradicated` IS NULL)"); } public override async Task Null_semantics_on_nullable_bool_from_left_join_subquery_is_fully_applied(bool isAsync) @@ -4915,14 +4497,14 @@ WHERE `l`.`Discriminator` IN ('LocustLeader', 'LocustCommander') AND ((`t`.`Erad await base.Null_semantics_on_nullable_bool_from_left_join_subquery_is_fully_applied(isAsync); AssertSql( - $@"SELECT `t`.`Id`, `t`.`CapitalName`, `t`.`Discriminator`, `t`.`Name`, `t`.`CommanderName`, `t`.`Eradicated` + @"SELECT `t`.`Id`, `t`.`CapitalName`, `t`.`Discriminator`, `t`.`Name`, `t`.`ServerAddress`, `t`.`CommanderName`, `t`.`Eradicated` FROM `LocustLeaders` AS `l` LEFT JOIN ( - SELECT `f`.`Id`, `f`.`CapitalName`, `f`.`Discriminator`, `f`.`Name`, `f`.`CommanderName`, `f`.`Eradicated` + SELECT `f`.`Id`, `f`.`CapitalName`, `f`.`Discriminator`, `f`.`Name`, `f`.`ServerAddress`, `f`.`CommanderName`, `f`.`Eradicated` FROM `Factions` AS `f` - WHERE ((`f`.`Discriminator` = 'LocustHorde') AND (`f`.`Discriminator` = 'LocustHorde')) AND (`f`.`Name` = 'Swarm') + WHERE `f`.`Name` = 'Swarm' ) AS `t` ON `l`.`Name` = `t`.`CommanderName` -WHERE `l`.`Discriminator` IN ('LocustLeader', 'LocustCommander') AND ((`t`.`Eradicated` <> True) OR `t`.`Eradicated` IS NULL)"); +WHERE (`t`.`Eradicated` <> TRUE) OR (`t`.`Eradicated` IS NULL)"); } public override async Task Include_on_derived_type_with_order_by_and_paging(bool isAsync) @@ -4930,28 +4512,16 @@ WHERE `l`.`Discriminator` IN ('LocustLeader', 'LocustCommander') AND ((`t`.`Erad await base.Include_on_derived_type_with_order_by_and_paging(isAsync); AssertSql( - $@"{AssertSqlHelper.Declaration("@__p_0='10'")} - -SELECT `t1`.`Name`, `t1`.`Discriminator`, `t1`.`LocustHordeId`, `t1`.`ThreatLevel`, `t1`.`DefeatedByNickname`, `t1`.`DefeatedBySquadId`, `t1`.`HighCommandId`, `t2`.`Nickname`, `t2`.`SquadId`, `t2`.`AssignedCityName`, `t2`.`CityOfBirthName`, `t2`.`Discriminator`, `t2`.`FullName`, `t2`.`HasSoulPatch`, `t2`.`LeaderNickname`, `t2`.`LeaderSquadId`, `t2`.`Rank`, `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` + @"SELECT `t0`.`Name`, `t0`.`Discriminator`, `t0`.`LocustHordeId`, `t0`.`ThreatLevel`, `t0`.`ThreatLevelByte`, `t0`.`ThreatLevelNullableByte`, `t0`.`DefeatedByNickname`, `t0`.`DefeatedBySquadId`, `t0`.`HighCommandId`, `t0`.`Nickname`, `t0`.`SquadId`, `t0`.`AssignedCityName`, `t0`.`CityOfBirthName`, `t0`.`Discriminator0`, `t0`.`FullName`, `t0`.`HasSoulPatch`, `t0`.`LeaderNickname`, `t0`.`LeaderSquadId`, `t0`.`Rank`, `t0`.`Id`, `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` FROM ( - SELECT TOP {AssertSqlHelper.Parameter("@__p_0")} `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId`, `t0`.`Note` - FROM `LocustLeaders` AS `l` - LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') - ) AS `t` ON (`l`.`DefeatedByNickname` = `t`.`Nickname`) AND (`l`.`DefeatedBySquadId` = `t`.`SquadId`) - LEFT JOIN `Tags` AS `t0` ON ((`t`.`Nickname` = `t0`.`GearNickName`) OR (`t`.`Nickname` IS NULL AND `t0`.`GearNickName` IS NULL)) AND ((`t`.`SquadId` = `t0`.`GearSquadId`) OR (`t`.`SquadId` IS NULL AND `t0`.`GearSquadId` IS NULL)) - WHERE `l`.`Discriminator` IN ('LocustLeader', 'LocustCommander') - ORDER BY `t0`.`Note` -) AS `t1` -LEFT JOIN ( - SELECT `g0`.`Nickname`, `g0`.`SquadId`, `g0`.`AssignedCityName`, `g0`.`CityOfBirthName`, `g0`.`Discriminator`, `g0`.`FullName`, `g0`.`HasSoulPatch`, `g0`.`LeaderNickname`, `g0`.`LeaderSquadId`, `g0`.`Rank` - FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') -) AS `t2` ON (`t1`.`DefeatedByNickname` = `t2`.`Nickname`) AND (`t1`.`DefeatedBySquadId` = `t2`.`SquadId`) -LEFT JOIN `Weapons` AS `w` ON `t2`.`FullName` = `w`.`OwnerFullName` -ORDER BY `t1`.`Note`, `t1`.`Name`, `w`.`Id`"); + SELECT TOP 10 `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`ThreatLevelByte`, `l`.`ThreatLevelNullableByte`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId`, `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator` AS `Discriminator0`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `t`.`Id`, `t`.`Note` + FROM (`LocustLeaders` AS `l` + LEFT JOIN `Gears` AS `g` ON (`l`.`DefeatedByNickname` = `g`.`Nickname`) AND (`l`.`DefeatedBySquadId` = `g`.`SquadId`)) + LEFT JOIN `Tags` AS `t` ON ((`g`.`Nickname` = `t`.`GearNickName`) OR ((`g`.`Nickname` IS NULL) AND (`t`.`GearNickName` IS NULL))) AND ((`g`.`SquadId` = `t`.`GearSquadId`) OR ((`g`.`SquadId` IS NULL) AND (`t`.`GearSquadId` IS NULL))) + ORDER BY `t`.`Note` +) AS `t0` +LEFT JOIN `Weapons` AS `w` ON `t0`.`FullName` = `w`.`OwnerFullName` +ORDER BY `t0`.`Note`, `t0`.`Name`, `t0`.`Nickname`, `t0`.`SquadId`, `t0`.`Id`"); } public override async Task Select_required_navigation_on_derived_type(bool isAsync) @@ -4959,10 +4529,9 @@ ORDER BY `t1`.`Note`, `t1`.`Name`, `w`.`Id`"); await base.Select_required_navigation_on_derived_type(isAsync); AssertSql( - $@"SELECT `l0`.`Name` + @"SELECT `l0`.`Name` FROM `LocustLeaders` AS `l` -LEFT JOIN `LocustHighCommands` AS `l0` ON `l`.`HighCommandId` = `l0`.`Id` -WHERE `l`.`Discriminator` IN ('LocustLeader', 'LocustCommander')"); +LEFT JOIN `LocustHighCommands` AS `l0` ON `l`.`HighCommandId` = `l0`.`Id`"); } public override async Task Select_required_navigation_on_the_same_type_with_cast(bool isAsync) @@ -4970,10 +4539,9 @@ WHERE `l`.`Discriminator` IN ('LocustLeader', 'LocustCommander')"); await base.Select_required_navigation_on_the_same_type_with_cast(isAsync); AssertSql( - $@"SELECT `c`.`Name` + @"SELECT `c`.`Name` FROM `Gears` AS `g` -INNER JOIN `Cities` AS `c` ON `g`.`CityOfBirthName` = `c`.`Name` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); +INNER JOIN `Cities` AS `c` ON `g`.`CityOfBirthName` = `c`.`Name`"); } public override async Task Where_required_navigation_on_derived_type(bool isAsync) @@ -4981,10 +4549,10 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); await base.Where_required_navigation_on_derived_type(isAsync); AssertSql( - $@"SELECT `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId` + @"SELECT `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`ThreatLevelByte`, `l`.`ThreatLevelNullableByte`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId` FROM `LocustLeaders` AS `l` LEFT JOIN `LocustHighCommands` AS `l0` ON `l`.`HighCommandId` = `l0`.`Id` -WHERE `l`.`Discriminator` IN ('LocustLeader', 'LocustCommander') AND (`l0`.`IsOperational` = True)"); +WHERE `l0`.`IsOperational` = TRUE"); } public override async Task Outer_parameter_in_join_key(bool isAsync) @@ -5026,7 +4594,7 @@ OUTER APPLY ( WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`Discriminator` = 'Officer') ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t1`.`Id`, `t1`.`Nickname`, `t1`.`SquadId`"); } - + public override async Task Outer_parameter_in_group_join_with_DefaultIfEmpty(bool isAsync) { await base.Outer_parameter_in_group_join_with_DefaultIfEmpty(isAsync); @@ -5052,19 +4620,9 @@ ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t1`.`Id`"); await base.Negated_bool_ternary_inside_anonymous_type_in_projection(isAsync); AssertSql( - $@"SELECT CASE - WHEN CASE - WHEN `t0`.`HasSoulPatch` = True THEN True - ELSE IIF(`t0`.`HasSoulPatch` IS NULL, True, `t0`.`HasSoulPatch`) - END <> True THEN True - ELSE False -END AS `c` + @"SELECT IIF(IIF(`g`.`HasSoulPatch` = TRUE, TRUE, IIF(`g`.`HasSoulPatch` IS NULL, TRUE, `g`.`HasSoulPatch`)) <> TRUE, TRUE, FALSE) AS `c` FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`)"); +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`)"); } public override async Task Order_by_entity_qsre(bool isAsync) @@ -5072,10 +4630,9 @@ LEFT JOIN ( await base.Order_by_entity_qsre(isAsync); AssertSql( - $@"SELECT `g`.`FullName` + @"SELECT `g`.`FullName` FROM `Gears` AS `g` LEFT JOIN `Cities` AS `c` ON `g`.`AssignedCityName` = `c`.`Name` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') ORDER BY `c`.`Name`, `g`.`Nickname` DESC"); } @@ -5084,10 +4641,10 @@ ORDER BY `c`.`Name`, `g`.`Nickname` DESC"); await base.Order_by_entity_qsre_with_inheritance(isAsync); AssertSql( - $@"SELECT `l`.`Name` + @"SELECT `l`.`Name` FROM `LocustLeaders` AS `l` INNER JOIN `LocustHighCommands` AS `l0` ON `l`.`HighCommandId` = `l0`.`Id` -WHERE `l`.`Discriminator` IN ('LocustLeader', 'LocustCommander') AND (`l`.`Discriminator` = 'LocustCommander') +WHERE `l`.`Discriminator` = 'LocustCommander' ORDER BY `l0`.`Id`, `l`.`Name`"); } @@ -5096,14 +4653,10 @@ ORDER BY `l0`.`Id`, `l`.`Name`"); await base.Order_by_entity_qsre_composite_key(isAsync); AssertSql( - $@"SELECT `w`.`Name` + @"SELECT `w`.`Name` FROM `Weapons` AS `w` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t` ON `w`.`OwnerFullName` = `t`.`FullName` -ORDER BY `t`.`Nickname`, `t`.`SquadId`, `w`.`Id`"); +LEFT JOIN `Gears` AS `g` ON `w`.`OwnerFullName` = `g`.`FullName` +ORDER BY `g`.`Nickname`, `g`.`SquadId`, `w`.`Id`"); } public override async Task Order_by_entity_qsre_with_other_orderbys(bool isAsync) @@ -5137,14 +4690,9 @@ INNER JOIN `Weapons` AS `w0` ON `w`.`Id` = `w0`.`Id`"); await base.Join_on_entity_qsre_keys_composite_key(isAsync); AssertSql( - $@"SELECT `g`.`FullName` AS `GearName1`, `t`.`FullName` AS `GearName2` + @"SELECT `g`.`FullName` AS `GearName1`, `g0`.`FullName` AS `GearName2` FROM `Gears` AS `g` -INNER JOIN ( - SELECT `g0`.`Nickname`, `g0`.`SquadId`, `g0`.`AssignedCityName`, `g0`.`CityOfBirthName`, `g0`.`Discriminator`, `g0`.`FullName`, `g0`.`HasSoulPatch`, `g0`.`LeaderNickname`, `g0`.`LeaderSquadId`, `g0`.`Rank` - FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') -) AS `t` ON (`g`.`Nickname` = `t`.`Nickname`) AND (`g`.`SquadId` = `t`.`SquadId`) -WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); +INNER JOIN `Gears` AS `g0` ON (`g`.`Nickname` = `g0`.`Nickname`) AND (`g`.`SquadId` = `g0`.`SquadId`)"); } public override async Task Join_on_entity_qsre_keys_inheritance(bool isAsync) @@ -5152,14 +4700,13 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); await base.Join_on_entity_qsre_keys_inheritance(isAsync); AssertSql( - $@"SELECT `g`.`FullName` AS `GearName`, `t`.`FullName` AS `OfficerName` + @"SELECT `g`.`FullName` AS `GearName`, `t`.`FullName` AS `OfficerName` FROM `Gears` AS `g` INNER JOIN ( - SELECT `g0`.`Nickname`, `g0`.`SquadId`, `g0`.`AssignedCityName`, `g0`.`CityOfBirthName`, `g0`.`Discriminator`, `g0`.`FullName`, `g0`.`HasSoulPatch`, `g0`.`LeaderNickname`, `g0`.`LeaderSquadId`, `g0`.`Rank` + SELECT `g0`.`Nickname`, `g0`.`SquadId`, `g0`.`FullName` FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') AND (`g0`.`Discriminator` = 'Officer') -) AS `t` ON (`g`.`Nickname` = `t`.`Nickname`) AND (`g`.`SquadId` = `t`.`SquadId`) -WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); + WHERE `g0`.`Discriminator` = 'Officer' +) AS `t` ON (`g`.`Nickname` = `t`.`Nickname`) AND (`g`.`SquadId` = `t`.`SquadId`)"); } public override async Task Join_on_entity_qsre_keys_outer_key_is_navigation(bool isAsync) @@ -5178,13 +4725,12 @@ INNER JOIN `Weapons` AS `w1` ON `w0`.`Id` = `w1`.`Id`"); await base.Join_on_entity_qsre_keys_inner_key_is_navigation(isAsync); AssertSql( - $@"SELECT `c`.`Name` AS `CityName`, `t`.`Nickname` AS `GearNickname` + @"SELECT `c`.`Name` AS `CityName`, `t`.`Nickname` AS `GearNickname` FROM `Cities` AS `c` INNER JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `c0`.`Name`, `c0`.`Location`, `c0`.`Nation` + SELECT `g`.`Nickname`, `c0`.`Name` FROM `Gears` AS `g` LEFT JOIN `Cities` AS `c0` ON `g`.`AssignedCityName` = `c0`.`Name` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') ) AS `t` ON `c`.`Name` = `t`.`Name`"); } @@ -5193,19 +4739,14 @@ INNER JOIN ( await base.Join_on_entity_qsre_keys_inner_key_is_navigation_composite_key(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `t1`.`Note` + @"SELECT `g`.`Nickname`, `t0`.`Note` FROM `Gears` AS `g` INNER JOIN ( - SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`Note`, `t0`.`Nickname`, `t0`.`SquadId`, `t0`.`AssignedCityName`, `t0`.`CityOfBirthName`, `t0`.`Discriminator`, `t0`.`FullName`, `t0`.`HasSoulPatch`, `t0`.`LeaderNickname`, `t0`.`LeaderSquadId`, `t0`.`Rank` + SELECT `t`.`Note`, `g0`.`Nickname`, `g0`.`SquadId` FROM `Tags` AS `t` - LEFT JOIN ( - SELECT `g0`.`Nickname`, `g0`.`SquadId`, `g0`.`AssignedCityName`, `g0`.`CityOfBirthName`, `g0`.`Discriminator`, `g0`.`FullName`, `g0`.`HasSoulPatch`, `g0`.`LeaderNickname`, `g0`.`LeaderSquadId`, `g0`.`Rank` - FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') - ) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) - WHERE (`t`.`Note` = 'Cole''s Tag') OR (`t`.`Note` = 'Dom''s Tag') -) AS `t1` ON (`g`.`Nickname` = `t1`.`Nickname`) AND (`g`.`SquadId` = `t1`.`SquadId`) -WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); + LEFT JOIN `Gears` AS `g0` ON (`t`.`GearNickName` = `g0`.`Nickname`) AND (`t`.`GearSquadId` = `g0`.`SquadId`) + WHERE `t`.`Note` IN ('Cole''s Tag', 'Dom''s Tag') +) AS `t0` ON (`g`.`Nickname` = `t0`.`Nickname`) AND (`g`.`SquadId` = `t0`.`SquadId`)"); } public override async Task Join_on_entity_qsre_keys_inner_key_is_nested_navigation(bool isAsync) @@ -5213,19 +4754,15 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); await base.Join_on_entity_qsre_keys_inner_key_is_nested_navigation(isAsync); AssertSql( - $@"SELECT `s`.`Name` AS `SquadName`, `t0`.`Name` AS `WeaponName` + @"SELECT `s`.`Name` AS `SquadName`, `t`.`Name` AS `WeaponName` FROM `Squads` AS `s` INNER JOIN ( - SELECT `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId`, `t`.`Nickname`, `t`.`SquadId`, `t`.`AssignedCityName`, `t`.`CityOfBirthName`, `t`.`Discriminator`, `t`.`FullName`, `t`.`HasSoulPatch`, `t`.`LeaderNickname`, `t`.`LeaderSquadId`, `t`.`Rank`, `s0`.`Id` AS `Id0`, `s0`.`InternalNumber`, `s0`.`Name` AS `Name0` - FROM `Weapons` AS `w` - LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') - ) AS `t` ON `w`.`OwnerFullName` = `t`.`FullName` - LEFT JOIN `Squads` AS `s0` ON `t`.`SquadId` = `s0`.`Id` - WHERE `w`.`IsAutomatic` = True -) AS `t0` ON `s`.`Id` = `t0`.`Id0`"); + SELECT `w`.`Name`, `s0`.`Id` AS `Id0` + FROM (`Weapons` AS `w` + LEFT JOIN `Gears` AS `g` ON `w`.`OwnerFullName` = `g`.`FullName`) + LEFT JOIN `Squads` AS `s0` ON `g`.`SquadId` = `s0`.`Id` + WHERE `w`.`IsAutomatic` = TRUE +) AS `t` ON `s`.`Id` = `t`.`Id0`"); } public override async Task GroupJoin_on_entity_qsre_keys_inner_key_is_nested_navigation(bool isAsync) @@ -5233,36 +4770,33 @@ INNER JOIN ( await base.GroupJoin_on_entity_qsre_keys_inner_key_is_nested_navigation(isAsync); AssertSql( - $@"SELECT `s`.`Name` AS `SquadName`, `t0`.`Name` AS `WeaponName` + @"SELECT `s`.`Name` AS `SquadName`, `t`.`Name` AS `WeaponName` FROM `Squads` AS `s` LEFT JOIN ( - SELECT `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId`, `t`.`Nickname`, `t`.`SquadId`, `t`.`AssignedCityName`, `t`.`CityOfBirthName`, `t`.`Discriminator`, `t`.`FullName`, `t`.`HasSoulPatch`, `t`.`LeaderNickname`, `t`.`LeaderSquadId`, `t`.`Rank`, `s0`.`Id` AS `Id0`, `s0`.`InternalNumber`, `s0`.`Name` AS `Name0` - FROM `Weapons` AS `w` - LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') - ) AS `t` ON `w`.`OwnerFullName` = `t`.`FullName` - LEFT JOIN `Squads` AS `s0` ON `t`.`SquadId` = `s0`.`Id` -) AS `t0` ON `s`.`Id` = `t0`.`Id0`"); + SELECT `w`.`Name`, `s0`.`Id` AS `Id0` + FROM (`Weapons` AS `w` + LEFT JOIN `Gears` AS `g` ON `w`.`OwnerFullName` = `g`.`FullName`) + LEFT JOIN `Squads` AS `s0` ON `g`.`SquadId` = `s0`.`Id` +) AS `t` ON `s`.`Id` = `t`.`Id0`"); } - + public override async Task Streaming_correlated_collection_issue_11403(bool isAsync) { await base.Streaming_correlated_collection_issue_11403(isAsync); AssertSql( - $@"SELECT TOP 1 `g`.`FullName` -FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Officer', 'Gear') -ORDER BY `g`.`Nickname`", - // - $@"{AssertSqlHelper.Declaration("@_outer_FullName='Damon Baird' (Size = 450)")} - -SELECT `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` -FROM `Weapons` AS `w` -WHERE ({AssertSqlHelper.Parameter("@_outer_FullName")} = `w`.`OwnerFullName`) AND (`w`.`IsAutomatic` = False) -ORDER BY `w`.`Id`"); + @"SELECT `t`.`Nickname`, `t`.`SquadId`, `t0`.`Id`, `t0`.`AmmunitionType`, `t0`.`IsAutomatic`, `t0`.`Name`, `t0`.`OwnerFullName`, `t0`.`SynergyWithId` +FROM ( + SELECT TOP 1 `g`.`Nickname`, `g`.`SquadId`, `g`.`FullName` + FROM `Gears` AS `g` + ORDER BY `g`.`Nickname` +) AS `t` +LEFT JOIN ( + SELECT `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` + FROM `Weapons` AS `w` + WHERE `w`.`IsAutomatic` <> TRUE +) AS `t0` ON `t`.`FullName` = `t0`.`OwnerFullName` +ORDER BY `t`.`Nickname`, `t`.`SquadId`, `t0`.`Id`"); } public override async Task Project_one_value_type_from_empty_collection(bool isAsync) @@ -5270,10 +4804,13 @@ ORDER BY `w`.`Id`"); await base.Project_one_value_type_from_empty_collection(isAsync); AssertSql( - $@"SELECT `s`.`Name`, ( - SELECT TOP 1 `g`.`SquadId` - FROM `Gears` AS `g` - WHERE (`g`.`Discriminator` IN ('Gear', 'Officer') AND (`s`.`Id` = `g`.`SquadId`)) AND (`g`.`HasSoulPatch` = True)) AS `SquadId` + @"SELECT `s`.`Name`, IIF(( + SELECT TOP 1 `g`.`SquadId` + FROM `Gears` AS `g` + WHERE (`s`.`Id` = `g`.`SquadId`) AND (`g`.`HasSoulPatch` = TRUE)) IS NULL, 0, ( + SELECT TOP 1 `g`.`SquadId` + FROM `Gears` AS `g` + WHERE (`s`.`Id` = `g`.`SquadId`) AND (`g`.`HasSoulPatch` = TRUE))) AS `SquadId` FROM `Squads` AS `s` WHERE `s`.`Name` = 'Kilo'"); } @@ -5283,10 +4820,10 @@ WHERE `s`.`Name` = 'Kilo'"); await base.Project_one_value_type_converted_to_nullable_from_empty_collection(isAsync); AssertSql( - $@"SELECT `s`.`Name`, ( + @"SELECT `s`.`Name`, ( SELECT TOP 1 `g`.`SquadId` FROM `Gears` AS `g` - WHERE (`g`.`Discriminator` IN ('Gear', 'Officer') AND (`s`.`Id` = `g`.`SquadId`)) AND (`g`.`HasSoulPatch` = True)) AS `SquadId` + WHERE (`s`.`Id` = `g`.`SquadId`) AND (`g`.`HasSoulPatch` = TRUE)) AS `SquadId` FROM `Squads` AS `s` WHERE `s`.`Name` = 'Kilo'"); } @@ -5329,10 +4866,13 @@ WHERE (`s`.`Name` = 'Kilo') AND (COALESCE(( await base.Select_subquery_projecting_single_constant_int(isAsync); AssertSql( - $@"SELECT `s`.`Name`, ( - SELECT TOP 1 42 - FROM `Gears` AS `g` - WHERE (`g`.`Discriminator` IN ('Gear', 'Officer') AND (`s`.`Id` = `g`.`SquadId`)) AND (`g`.`HasSoulPatch` = True)) AS `Gear` + @"SELECT `s`.`Name`, IIF(( + SELECT TOP 1 42 + FROM `Gears` AS `g` + WHERE (`s`.`Id` = `g`.`SquadId`) AND (`g`.`HasSoulPatch` = TRUE)) IS NULL, 0, ( + SELECT TOP 1 42 + FROM `Gears` AS `g` + WHERE (`s`.`Id` = `g`.`SquadId`) AND (`g`.`HasSoulPatch` = TRUE))) AS `Gear` FROM `Squads` AS `s`"); } @@ -5341,10 +4881,10 @@ FROM `Squads` AS `s`"); await base.Select_subquery_projecting_single_constant_string(isAsync); AssertSql( - $@"SELECT `s`.`Name`, ( + @"SELECT `s`.`Name`, ( SELECT TOP 1 'Foo' FROM `Gears` AS `g` - WHERE (`g`.`Discriminator` IN ('Gear', 'Officer') AND (`s`.`Id` = `g`.`SquadId`)) AND (`g`.`HasSoulPatch` = True)) AS `Gear` + WHERE (`s`.`Id` = `g`.`SquadId`) AND (`g`.`HasSoulPatch` = TRUE)) AS `Gear` FROM `Squads` AS `s`"); } @@ -5353,10 +4893,13 @@ FROM `Squads` AS `s`"); await base.Select_subquery_projecting_single_constant_bool(isAsync); AssertSql( - $@"SELECT `s`.`Name`, ( - SELECT TOP 1 True - FROM `Gears` AS `g` - WHERE (`g`.`Discriminator` IN ('Gear', 'Officer') AND (`s`.`Id` = `g`.`SquadId`)) AND (`g`.`HasSoulPatch` = True)) AS `Gear` + @"SELECT `s`.`Name`, IIF(( + SELECT TOP 1 TRUE + FROM `Gears` AS `g` + WHERE (`s`.`Id` = `g`.`SquadId`) AND (`g`.`HasSoulPatch` = TRUE)) IS NULL, FALSE, ( + SELECT TOP 1 TRUE + FROM `Gears` AS `g` + WHERE (`s`.`Id` = `g`.`SquadId`) AND (`g`.`HasSoulPatch` = TRUE))) AS `Gear` FROM `Squads` AS `s`"); } @@ -5401,26 +4944,21 @@ LEFT JOIN ( await base.Include_with_order_by_constant(isAsync); AssertSql( - $@"SELECT `s`.`Id`, `s`.`InternalNumber`, `s`.`Name`, `t`.`Nickname`, `t`.`SquadId`, `t`.`AssignedCityName`, `t`.`CityOfBirthName`, `t`.`Discriminator`, `t`.`FullName`, `t`.`HasSoulPatch`, `t`.`LeaderNickname`, `t`.`LeaderSquadId`, `t`.`Rank` + @"SELECT `s`.`Id`, `s`.`Banner`, `s`.`Banner5`, `s`.`InternalNumber`, `s`.`Name`, `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Squads` AS `s` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t` ON `s`.`Id` = `t`.`SquadId` -ORDER BY `s`.`Id`, `t`.`Nickname`, `t`.`SquadId`"); +LEFT JOIN `Gears` AS `g` ON `s`.`Id` = `g`.`SquadId` +ORDER BY `s`.`Id`, `g`.`Nickname`"); } - + public override async Task Correlated_collection_order_by_constant(bool isAsync) { await base.Correlated_collection_order_by_constant(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `w`.`Name`, `w`.`Id` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `w`.`Name`, `w`.`Id` FROM `Gears` AS `g` LEFT JOIN `Weapons` AS `w` ON `g`.`FullName` = `w`.`OwnerFullName` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -ORDER BY `g`.`Nickname`, `g`.`SquadId`, `w`.`Id`"); +ORDER BY `g`.`Nickname`, `g`.`SquadId`"); } public override async Task Select_subquery_projecting_single_constant_null_of_non_mapped_type(bool isAsync) @@ -5458,7 +4996,7 @@ LEFT JOIN ( WHERE `t`.`row` <= 1 ) AS `t0` ON `s`.`Id` = `t0`.`SquadId`"); } - + public override async Task Include_collection_OrderBy_aggregate(bool isAsync) { await base.Include_collection_OrderBy_aggregate(isAsync); @@ -5564,9 +5102,9 @@ ORDER BY ( await base.Cast_to_derived_type_after_OfType_works(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`Discriminator` = 'Officer')"); +WHERE `g`.`Discriminator` = 'Officer'"); } public override async Task Select_subquery_boolean(bool isAsync) @@ -5574,13 +5112,16 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`Discriminator` = 'Off await base.Select_subquery_boolean(isAsync); AssertSql( - $@"SELECT ( - SELECT TOP 1 `w`.`IsAutomatic` - FROM `Weapons` AS `w` - WHERE `g`.`FullName` = `w`.`OwnerFullName` - ORDER BY `w`.`Id`) -FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); + @"SELECT IIF(( + SELECT TOP 1 `w`.`IsAutomatic` + FROM `Weapons` AS `w` + WHERE `g`.`FullName` = `w`.`OwnerFullName` + ORDER BY `w`.`Id`) IS NULL, FALSE, ( + SELECT TOP 1 `w`.`IsAutomatic` + FROM `Weapons` AS `w` + WHERE `g`.`FullName` = `w`.`OwnerFullName` + ORDER BY `w`.`Id`)) +FROM `Gears` AS `g`"); } public override async Task Select_subquery_boolean_with_pushdown(bool isAsync) @@ -5588,13 +5129,12 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); await base.Select_subquery_boolean_with_pushdown(isAsync); AssertSql( - $@"SELECT ( + @"SELECT ( SELECT TOP 1 `w`.`IsAutomatic` FROM `Weapons` AS `w` WHERE `g`.`FullName` = `w`.`OwnerFullName` ORDER BY `w`.`Id`) -FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); +FROM `Gears` AS `g`"); } public override async Task Select_subquery_int_with_inside_cast_and_coalesce(bool isAsync) @@ -5602,13 +5142,16 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); await base.Select_subquery_int_with_inside_cast_and_coalesce(isAsync); AssertSql( - $@"SELECT COALESCE(( - SELECT TOP 1 `w`.`Id` - FROM `Weapons` AS `w` - WHERE `g`.`FullName` = `w`.`OwnerFullName` - ORDER BY `w`.`Id`), 42) -FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); + @"SELECT IIF(( + SELECT TOP 1 `w`.`Id` + FROM `Weapons` AS `w` + WHERE `g`.`FullName` = `w`.`OwnerFullName` + ORDER BY `w`.`Id`) IS NULL, 42, ( + SELECT TOP 1 `w`.`Id` + FROM `Weapons` AS `w` + WHERE `g`.`FullName` = `w`.`OwnerFullName` + ORDER BY `w`.`Id`)) +FROM `Gears` AS `g`"); } public override async Task Select_subquery_int_with_outside_cast_and_coalesce(bool isAsync) @@ -5616,13 +5159,24 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); await base.Select_subquery_int_with_outside_cast_and_coalesce(isAsync); AssertSql( - $@"SELECT COALESCE(( - SELECT TOP 1 `w`.`Id` - FROM `Weapons` AS `w` - WHERE `g`.`FullName` = `w`.`OwnerFullName` - ORDER BY `w`.`Id`), 42) -FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); + @"SELECT IIF(IIF(( + SELECT TOP 1 `w`.`Id` + FROM `Weapons` AS `w` + WHERE `g`.`FullName` = `w`.`OwnerFullName` + ORDER BY `w`.`Id`) IS NULL, 0, ( + SELECT TOP 1 `w`.`Id` + FROM `Weapons` AS `w` + WHERE `g`.`FullName` = `w`.`OwnerFullName` + ORDER BY `w`.`Id`)) IS NULL, 42, IIF(( + SELECT TOP 1 `w`.`Id` + FROM `Weapons` AS `w` + WHERE `g`.`FullName` = `w`.`OwnerFullName` + ORDER BY `w`.`Id`) IS NULL, 0, ( + SELECT TOP 1 `w`.`Id` + FROM `Weapons` AS `w` + WHERE `g`.`FullName` = `w`.`OwnerFullName` + ORDER BY `w`.`Id`))) +FROM `Gears` AS `g`"); } public override async Task Select_subquery_int_with_pushdown_and_coalesce(bool isAsync) @@ -5630,13 +5184,16 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); await base.Select_subquery_int_with_pushdown_and_coalesce(isAsync); AssertSql( - $@"SELECT COALESCE(( - SELECT TOP 1 `w`.`Id` - FROM `Weapons` AS `w` - WHERE `g`.`FullName` = `w`.`OwnerFullName` - ORDER BY `w`.`Id`), 42) -FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); + @"SELECT IIF(( + SELECT TOP 1 `w`.`Id` + FROM `Weapons` AS `w` + WHERE `g`.`FullName` = `w`.`OwnerFullName` + ORDER BY `w`.`Id`) IS NULL, 42, ( + SELECT TOP 1 `w`.`Id` + FROM `Weapons` AS `w` + WHERE `g`.`FullName` = `w`.`OwnerFullName` + ORDER BY `w`.`Id`)) +FROM `Gears` AS `g`"); } public override async Task Select_subquery_int_with_pushdown_and_coalesce2(bool isAsync) @@ -5644,17 +5201,20 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); await base.Select_subquery_int_with_pushdown_and_coalesce2(isAsync); AssertSql( - $@"SELECT COALESCE(( - SELECT TOP 1 `w`.`Id` - FROM `Weapons` AS `w` - WHERE `g`.`FullName` = `w`.`OwnerFullName` - ORDER BY `w`.`Id`), ( - SELECT TOP 1 `w0`.`Id` - FROM `Weapons` AS `w0` - WHERE `g`.`FullName` = `w0`.`OwnerFullName` - ORDER BY `w0`.`Id`)) -FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); + @"SELECT IIF(( + SELECT TOP 1 `w`.`Id` + FROM `Weapons` AS `w` + WHERE `g`.`FullName` = `w`.`OwnerFullName` + ORDER BY `w`.`Id`) IS NULL, ( + SELECT TOP 1 `w0`.`Id` + FROM `Weapons` AS `w0` + WHERE `g`.`FullName` = `w0`.`OwnerFullName` + ORDER BY `w0`.`Id`), ( + SELECT TOP 1 `w`.`Id` + FROM `Weapons` AS `w` + WHERE `g`.`FullName` = `w`.`OwnerFullName` + ORDER BY `w`.`Id`)) +FROM `Gears` AS `g`"); } public override async Task Select_subquery_boolean_empty(bool isAsync) @@ -5662,13 +5222,16 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); await base.Select_subquery_boolean_empty(isAsync); AssertSql( - $@"SELECT ( - SELECT TOP 1 `w`.`IsAutomatic` - FROM `Weapons` AS `w` - WHERE (`g`.`FullName` = `w`.`OwnerFullName`) AND (`w`.`Name` = 'BFG') - ORDER BY `w`.`Id`) -FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); + @"SELECT IIF(( + SELECT TOP 1 `w`.`IsAutomatic` + FROM `Weapons` AS `w` + WHERE (`g`.`FullName` = `w`.`OwnerFullName`) AND (`w`.`Name` = 'BFG') + ORDER BY `w`.`Id`) IS NULL, FALSE, ( + SELECT TOP 1 `w`.`IsAutomatic` + FROM `Weapons` AS `w` + WHERE (`g`.`FullName` = `w`.`OwnerFullName`) AND (`w`.`Name` = 'BFG') + ORDER BY `w`.`Id`)) +FROM `Gears` AS `g`"); } public override async Task Select_subquery_boolean_empty_with_pushdown(bool isAsync) @@ -5676,15 +5239,14 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); await base.Select_subquery_boolean_empty_with_pushdown(isAsync); AssertSql( - $@"SELECT ( + @"SELECT ( SELECT TOP 1 `w`.`IsAutomatic` FROM `Weapons` AS `w` WHERE (`g`.`FullName` = `w`.`OwnerFullName`) AND (`w`.`Name` = 'BFG') ORDER BY `w`.`Id`) -FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); +FROM `Gears` AS `g`"); } - + public override async Task Select_subquery_distinct_singleordefault_boolean1(bool isAsync) { await base.Select_subquery_distinct_singleordefault_boolean1(isAsync); @@ -5706,12 +5268,15 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`HasSoulPatch` = True) await base.Select_subquery_distinct_singleordefault_boolean2(isAsync); AssertSql( - $@"SELECT ( - SELECT DISTINCT TOP 1 `w`.`IsAutomatic` - FROM `Weapons` AS `w` - WHERE (`g`.`FullName` = `w`.`OwnerFullName`) AND (CHARINDEX('Lancer', `w`.`Name`) > 0)) + @"SELECT IIF(( + SELECT DISTINCT TOP 1 `w`.`IsAutomatic` + FROM `Weapons` AS `w` + WHERE (`g`.`FullName` = `w`.`OwnerFullName`) AND (`w`.`Name` LIKE '%Lancer%')) IS NULL, FALSE, ( + SELECT DISTINCT TOP 1 `w`.`IsAutomatic` + FROM `Weapons` AS `w` + WHERE (`g`.`FullName` = `w`.`OwnerFullName`) AND (`w`.`Name` LIKE '%Lancer%'))) FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`HasSoulPatch` = True)"); +WHERE `g`.`HasSoulPatch` = TRUE"); } public override async Task Select_subquery_distinct_singleordefault_boolean_with_pushdown(bool isAsync) @@ -5751,12 +5316,15 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`HasSoulPatch` = True) await base.Select_subquery_distinct_singleordefault_boolean_empty2(isAsync); AssertSql( - $@"SELECT ( - SELECT DISTINCT TOP 1 `w`.`IsAutomatic` - FROM `Weapons` AS `w` - WHERE (`g`.`FullName` = `w`.`OwnerFullName`) AND (`w`.`Name` = 'BFG')) + @"SELECT IIF(( + SELECT DISTINCT TOP 1 `w`.`IsAutomatic` + FROM `Weapons` AS `w` + WHERE (`g`.`FullName` = `w`.`OwnerFullName`) AND (`w`.`Name` = 'BFG')) IS NULL, FALSE, ( + SELECT DISTINCT TOP 1 `w`.`IsAutomatic` + FROM `Weapons` AS `w` + WHERE (`g`.`FullName` = `w`.`OwnerFullName`) AND (`w`.`Name` = 'BFG'))) FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`HasSoulPatch` = True)"); +WHERE `g`.`HasSoulPatch` = TRUE"); } public override async Task Select_subquery_distinct_singleordefault_boolean_empty_with_pushdown(bool isAsync) @@ -5780,15 +5348,11 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`HasSoulPatch` = True) await base.Cast_subquery_to_base_type_using_typed_ToList(isAsync); AssertSql( - $@"SELECT `c`.`Name`, `t`.`CityOfBirthName`, `t`.`FullName`, `t`.`HasSoulPatch`, `t`.`LeaderNickname`, `t`.`LeaderSquadId`, `t`.`Nickname`, `t`.`Rank`, `t`.`SquadId` + @"SELECT `c`.`Name`, `g`.`CityOfBirthName`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Nickname`, `g`.`Rank`, `g`.`SquadId` FROM `Cities` AS `c` -LEFT JOIN ( - SELECT `g`.`CityOfBirthName`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Nickname`, `g`.`Rank`, `g`.`SquadId`, `g`.`AssignedCityName` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t` ON `c`.`Name` = `t`.`AssignedCityName` +LEFT JOIN `Gears` AS `g` ON `c`.`Name` = `g`.`AssignedCityName` WHERE `c`.`Name` = 'Ephyra' -ORDER BY `c`.`Name`, `t`.`Nickname`, `t`.`SquadId`"); +ORDER BY `c`.`Name`, `g`.`Nickname`"); } public override async Task Cast_ordered_subquery_to_base_type_using_typed_ToArray(bool isAsync) @@ -5796,15 +5360,14 @@ ORDER BY `c`.`Name`, `t`.`Nickname`, `t`.`SquadId`"); await base.Cast_ordered_subquery_to_base_type_using_typed_ToArray(isAsync); AssertSql( - $@"SELECT `c`.`Name`, `t`.`CityOfBirthName`, `t`.`FullName`, `t`.`HasSoulPatch`, `t`.`LeaderNickname`, `t`.`LeaderSquadId`, `t`.`Nickname`, `t`.`Rank`, `t`.`SquadId` + @"SELECT `c`.`Name`, `t`.`CityOfBirthName`, `t`.`FullName`, `t`.`HasSoulPatch`, `t`.`LeaderNickname`, `t`.`LeaderSquadId`, `t`.`Nickname`, `t`.`Rank`, `t`.`SquadId` FROM `Cities` AS `c` LEFT JOIN ( SELECT `g`.`CityOfBirthName`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Nickname`, `g`.`Rank`, `g`.`SquadId`, `g`.`AssignedCityName` FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') ) AS `t` ON `c`.`Name` = `t`.`AssignedCityName` WHERE `c`.`Name` = 'Ephyra' -ORDER BY `c`.`Name`, `t`.`Nickname` DESC, `t`.`SquadId`"); +ORDER BY `c`.`Name`, `t`.`Nickname` DESC"); } public override async Task Correlated_collection_with_complex_order_by_funcletized_to_constant_bool(bool isAsync) @@ -5843,10 +5406,10 @@ ORDER BY `w0`.`IsAutomatic`, `w0`.`Id`"); await base.Double_order_by_on_Like(isAsync); AssertSql( - $@"SELECT `w0`.`Id`, `w0`.`AmmunitionType`, `w0`.`IsAutomatic`, `w0`.`Name`, `w0`.`OwnerFullName`, `w0`.`SynergyWithId` + @"SELECT `w0`.`Id`, `w0`.`AmmunitionType`, `w0`.`IsAutomatic`, `w0`.`Name`, `w0`.`OwnerFullName`, `w0`.`SynergyWithId` FROM `Weapons` AS `w` LEFT JOIN `Weapons` AS `w0` ON `w`.`SynergyWithId` = `w0`.`Id` -ORDER BY IIF(`w0`.`Name` LIKE '%Lancer', 1, 0)"); +ORDER BY IIF(`w0`.`Name` LIKE '%Lancer', TRUE, FALSE) DESC"); } public override async Task Double_order_by_on_is_null(bool isAsync) @@ -5854,24 +5417,20 @@ ORDER BY IIF(`w0`.`Name` LIKE '%Lancer', 1, 0)"); await base.Double_order_by_on_is_null(isAsync); AssertSql( - $@"SELECT `w0`.`Id`, `w0`.`AmmunitionType`, `w0`.`IsAutomatic`, `w0`.`Name`, `w0`.`OwnerFullName`, `w0`.`SynergyWithId` + @"SELECT `w0`.`Id`, `w0`.`AmmunitionType`, `w0`.`IsAutomatic`, `w0`.`Name`, `w0`.`OwnerFullName`, `w0`.`SynergyWithId` FROM `Weapons` AS `w` LEFT JOIN `Weapons` AS `w0` ON `w`.`SynergyWithId` = `w0`.`Id` -ORDER BY IIF(`w0`.`Name` IS NULL, 1, 0)"); +ORDER BY IIF(`w0`.`Name` IS NULL, TRUE, FALSE) DESC"); } public override async Task Double_order_by_on_string_compare(bool isAsync) { await base.Double_order_by_on_string_compare(isAsync); - // issue #16092 - // AssertSql( - // $@"SELECT `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` - //FROM `Weapons` AS `w` - //ORDER BY CASE - // WHEN `w`.`Name` = 'Marcus'' Lancer' - // THEN True ELSE False - //END, `w`.`Id`"); + AssertSql( + @"SELECT `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` +FROM `Weapons` AS `w` +ORDER BY IIF((`w`.`Name` = 'Marcus'' Lancer') AND (`w`.`Name` IS NOT NULL), TRUE, FALSE) DESC, `w`.`Id`"); } public override async Task Double_order_by_binary_expression(bool isAsync) @@ -5888,30 +5447,22 @@ ORDER BY `w`.`Id` + 2"); { await base.String_compare_with_null_conditional_argument(isAsync); - // issue #16092 - // AssertSql( - // $@"SELECT [w.SynergyWith].`Id`, [w.SynergyWith].`AmmunitionType`, [w.SynergyWith].`IsAutomatic`, [w.SynergyWith].`Name`, [w.SynergyWith].`OwnerFullName`, [w.SynergyWith].`SynergyWithId` - //FROM `Weapons` AS `w` - //LEFT JOIN `Weapons` AS [w.SynergyWith] ON `w`.`SynergyWithId` = [w.SynergyWith].`Id` - //ORDER BY CASE - // WHEN [w.SynergyWith].`Name` = 'Marcus'' Lancer' - // THEN True ELSE False - //END"); + AssertSql( + @"SELECT `w0`.`Id`, `w0`.`AmmunitionType`, `w0`.`IsAutomatic`, `w0`.`Name`, `w0`.`OwnerFullName`, `w0`.`SynergyWithId` +FROM `Weapons` AS `w` +LEFT JOIN `Weapons` AS `w0` ON `w`.`SynergyWithId` = `w0`.`Id` +ORDER BY IIF((`w0`.`Name` = 'Marcus'' Lancer') AND (`w0`.`Name` IS NOT NULL), TRUE, FALSE) DESC"); } public override async Task String_compare_with_null_conditional_argument2(bool isAsync) { await base.String_compare_with_null_conditional_argument2(isAsync); - // issue #16092 - // AssertSql( - // $@"SELECT [w.SynergyWith].`Id`, [w.SynergyWith].`AmmunitionType`, [w.SynergyWith].`IsAutomatic`, [w.SynergyWith].`Name`, [w.SynergyWith].`OwnerFullName`, [w.SynergyWith].`SynergyWithId` - //FROM `Weapons` AS `w` - //LEFT JOIN `Weapons` AS [w.SynergyWith] ON `w`.`SynergyWithId` = [w.SynergyWith].`Id` - //ORDER BY CASE - // WHEN 'Marcus'' Lancer' = [w.SynergyWith].`Name` - // THEN True ELSE False - //END"); + AssertSql( + @"SELECT `w0`.`Id`, `w0`.`AmmunitionType`, `w0`.`IsAutomatic`, `w0`.`Name`, `w0`.`OwnerFullName`, `w0`.`SynergyWithId` +FROM `Weapons` AS `w` +LEFT JOIN `Weapons` AS `w0` ON `w`.`SynergyWithId` = `w0`.`Id` +ORDER BY IIF(('Marcus'' Lancer' = `w0`.`Name`) AND (`w0`.`Name` IS NOT NULL), TRUE, FALSE) DESC"); } public override async Task String_concat_with_null_conditional_argument(bool isAsync) @@ -5919,10 +5470,10 @@ ORDER BY `w`.`Id` + 2"); await base.String_concat_with_null_conditional_argument(isAsync); AssertSql( - $@"SELECT `w0`.`Id`, `w0`.`AmmunitionType`, `w0`.`IsAutomatic`, `w0`.`Name`, `w0`.`OwnerFullName`, `w0`.`SynergyWithId` + @"SELECT `w0`.`Id`, `w0`.`AmmunitionType`, `w0`.`IsAutomatic`, `w0`.`Name`, `w0`.`OwnerFullName`, `w0`.`SynergyWithId` FROM `Weapons` AS `w` LEFT JOIN `Weapons` AS `w0` ON `w`.`SynergyWithId` = `w0`.`Id` -ORDER BY `w0`.`Name` + CAST(5 AS nvarchar(max))"); +ORDER BY IIF(`w0`.`Name` IS NULL, '', `w0`.`Name`) & (5 & '')"); } public override async Task String_concat_with_null_conditional_argument2(bool isAsync) @@ -5930,10 +5481,10 @@ ORDER BY `w0`.`Name` + CAST(5 AS nvarchar(max))"); await base.String_concat_with_null_conditional_argument2(isAsync); AssertSql( - $@"SELECT `w0`.`Id`, `w0`.`AmmunitionType`, `w0`.`IsAutomatic`, `w0`.`Name`, `w0`.`OwnerFullName`, `w0`.`SynergyWithId` + @"SELECT `w0`.`Id`, `w0`.`AmmunitionType`, `w0`.`IsAutomatic`, `w0`.`Name`, `w0`.`OwnerFullName`, `w0`.`SynergyWithId` FROM `Weapons` AS `w` LEFT JOIN `Weapons` AS `w0` ON `w`.`SynergyWithId` = `w0`.`Id` -ORDER BY `w0`.`Name` + 'Marcus'' Lancer'"); +ORDER BY IIF(`w0`.`Name` IS NULL, '', `w0`.`Name`) & 'Marcus'' Lancer'"); } public override async Task String_concat_on_various_types(bool isAsync) @@ -5958,9 +5509,8 @@ FROM `Missions` AS `m`"); await base.GroupBy_Property_Include_Select_Average(isAsync); AssertSql( - $@"SELECT AVG(IIF(`g`.`SquadId` IS NULL, NULL, CDBL(`g`.`SquadId`))) + @"SELECT AVG(CDBL(`g`.`SquadId`)) FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') GROUP BY `g`.`Rank`"); } @@ -5969,9 +5519,8 @@ GROUP BY `g`.`Rank`"); await base.GroupBy_Property_Include_Select_Sum(isAsync); AssertSql( - $@"SELECT SUM(`g`.`SquadId`) + @"SELECT IIF(SUM(`g`.`SquadId`) IS NULL, 0, SUM(`g`.`SquadId`)) FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') GROUP BY `g`.`Rank`"); } @@ -5980,9 +5529,8 @@ GROUP BY `g`.`Rank`"); await base.GroupBy_Property_Include_Select_Count(isAsync); AssertSql( - $@"SELECT COUNT(*) + @"SELECT COUNT(*) FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') GROUP BY `g`.`Rank`"); } @@ -5991,9 +5539,8 @@ GROUP BY `g`.`Rank`"); await base.GroupBy_Property_Include_Select_LongCount(isAsync); AssertSql( - $@"SELECT COUNT_BIG(*) + @"SELECT COUNT(*) FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') GROUP BY `g`.`Rank`"); } @@ -6002,9 +5549,8 @@ GROUP BY `g`.`Rank`"); await base.GroupBy_Property_Include_Select_Min(isAsync); AssertSql( - $@"SELECT MIN(`g`.`SquadId`) + @"SELECT MIN(`g`.`SquadId`) FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') GROUP BY `g`.`Rank`"); } @@ -6013,9 +5559,8 @@ GROUP BY `g`.`Rank`"); await base.GroupBy_Property_Include_Aggregate_with_anonymous_selector(isAsync); AssertSql( - $@"SELECT `g`.`Nickname` AS `Key`, COUNT(*) AS `c` + @"SELECT `g`.`Nickname` AS `Key`, COUNT(*) AS `c` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') GROUP BY `g`.`Nickname` ORDER BY `g`.`Nickname`"); } @@ -6037,9 +5582,8 @@ ORDER BY `g`.`Rank`"); await base.GroupBy_Property_Include_Select_Max(isAsync); AssertSql( - $@"SELECT MAX(`g`.`SquadId`) + @"SELECT MAX(`g`.`SquadId`) FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') GROUP BY `g`.`Rank`"); } @@ -6060,11 +5604,11 @@ ORDER BY `g`.`Rank`"); await base.Include_collection_with_Cast_to_base(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` FROM `Gears` AS `g` LEFT JOIN `Weapons` AS `w` ON `g`.`FullName` = `w`.`OwnerFullName` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`Discriminator` = 'Officer') -ORDER BY `g`.`Nickname`, `g`.`SquadId`, `w`.`Id`"); +WHERE `g`.`Discriminator` = 'Officer' +ORDER BY `g`.`Nickname`, `g`.`SquadId`"); } public override async Task Include_with_client_method_and_member_access_still_applies_includes(bool isAsync) @@ -6072,10 +5616,9 @@ ORDER BY `g`.`Nickname`, `g`.`SquadId`, `w`.`Id`"); await base.Include_with_client_method_and_member_access_still_applies_includes(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`Note` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`IssueDate`, `t`.`Note` FROM `Gears` AS `g` -LEFT JOIN `Tags` AS `t` ON (`g`.`Nickname` = `t`.`GearNickName`) AND (`g`.`SquadId` = `t`.`GearSquadId`) -WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); +LEFT JOIN `Tags` AS `t` ON (`g`.`Nickname` = `t`.`GearNickName`) AND (`g`.`SquadId` = `t`.`GearSquadId`)"); } public override async Task Include_with_projection_of_unmapped_property_still_gets_applied(bool isAsync) @@ -6083,11 +5626,10 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); await base.Include_with_projection_of_unmapped_property_still_gets_applied(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` FROM `Gears` AS `g` LEFT JOIN `Weapons` AS `w` ON `g`.`FullName` = `w`.`OwnerFullName` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -ORDER BY `g`.`Nickname`, `g`.`SquadId`, `w`.`Id`"); +ORDER BY `g`.`Nickname`, `g`.`SquadId`"); } public override async Task Multiple_includes_with_client_method_around_entity_and_also_projecting_included_collection() @@ -6112,20 +5654,9 @@ ORDER BY `s`.`Id`, `t`.`Nickname`, `t`.`SquadId`, `t`.`Id`"); await base.OrderBy_same_expression_containing_IsNull_correctly_deduplicates_the_ordering(isAsync); AssertSql( - $@"SELECT CASE - WHEN `g`.`LeaderNickname` IS NOT NULL THEN IIF((CAST(LEN(`g`.`Nickname`) AS int) = 5) AND LEN(`g`.`Nickname`) IS NOT NULL, 1, 0) - ELSE NULL -END + @"SELECT IIF(`g`.`LeaderNickname` IS NOT NULL, IIF(CLNG(LEN(`g`.`Nickname`)) = 5, TRUE, FALSE), NULL) FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -ORDER BY CASE - WHEN CASE - WHEN `g`.`LeaderNickname` IS NOT NULL THEN IIF((CAST(LEN(`g`.`Nickname`) AS int) = 5) AND LEN(`g`.`Nickname`) IS NOT NULL, 1, 0) - ELSE NULL - END IS NOT NULL THEN True - ELSE False -END"); - +ORDER BY IIF(IIF(`g`.`LeaderNickname` IS NOT NULL, IIF(CLNG(LEN(`g`.`Nickname`)) = 5, TRUE, FALSE), NULL) IS NOT NULL, TRUE, FALSE) DESC"); } public override async Task GetValueOrDefault_in_projection(bool isAsync) @@ -6172,9 +5703,9 @@ ORDER BY IIF(`w`.`SynergyWithId` IS NULL, 0, `w`.`SynergyWithId`), `w`.`Id`"); await base.GetValueOrDefault_with_argument(isAsync); AssertSql( - $@"SELECT `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` + @"SELECT `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` FROM `Weapons` AS `w` -WHERE IIF(`w`.`SynergyWithId` IS NULL, 0, `w`.`SynergyWithId`) = 1"); +WHERE IIF(`w`.`SynergyWithId` IS NULL, `w`.`Id`, `w`.`SynergyWithId`) = 1"); } public override async Task GetValueOrDefault_with_argument_complex(bool isAsync) @@ -6182,9 +5713,9 @@ WHERE IIF(`w`.`SynergyWithId` IS NULL, 0, `w`.`SynergyWithId`) = 1"); await base.GetValueOrDefault_with_argument_complex(isAsync); AssertSql( - $@"SELECT `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` + @"SELECT `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` FROM `Weapons` AS `w` -WHERE IIF(`w`.`SynergyWithId` IS NULL, 0, `w`.`SynergyWithId`) AS int) + 42) > 10"); +WHERE IIF(`w`.`SynergyWithId` IS NULL, CLNG(LEN(`w`.`Name`)) + 42, `w`.`SynergyWithId`) > 10"); } public override async Task Filter_with_complex_predicate_containing_subquery(bool isAsync) @@ -6192,13 +5723,12 @@ WHERE IIF(`w`.`SynergyWithId` IS NULL, 0, `w`.`SynergyWithId`) AS int) + 42) > 1 await base.Filter_with_complex_predicate_containing_subquery(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`g`.`FullName` <> 'Dom') AND ( - SELECT TOP 1 `w`.`Id` +WHERE (`g`.`FullName` <> 'Dom') AND EXISTS ( + SELECT 1 FROM `Weapons` AS `w` - WHERE (`g`.`FullName` = `w`.`OwnerFullName`) AND (`w`.`IsAutomatic` = True) - ORDER BY `w`.`Id`) IS NOT NULL)"); + WHERE (`g`.`FullName` = `w`.`OwnerFullName`) AND (`w`.`IsAutomatic` = TRUE))"); } public override async Task Query_with_complex_let_containing_ordering_and_filter_projecting_firstOrDefault_element_of_let( @@ -6232,15 +5762,11 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`Nickname` <> 'Dom')") isAsync); AssertSql( - $@"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`Note` -FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -LEFT JOIN `Squads` AS `s` ON `t0`.`SquadId` = `s`.`Id` -WHERE (SUBSTRING(`t`.`Note`, 0 + 1, CAST(LEN(`s`.`Name`) AS int)) = `t`.`GearNickName`) OR (SUBSTRING(`t`.`Note`, 0 + 1, CAST(LEN(`s`.`Name`) AS int)) IS NULL AND `t`.`GearNickName` IS NULL)"); + @"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`IssueDate`, `t`.`Note` +FROM (`Tags` AS `t` +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`)) +LEFT JOIN `Squads` AS `s` ON `g`.`SquadId` = `s`.`Id` +WHERE (IIF(LEN(`s`.`Name`) IS NULL, NULL, MID(`t`.`Note`, 0 + 1, CLNG(LEN(`s`.`Name`)))) = `t`.`GearNickName`) OR (((`t`.`Note` IS NULL) OR (`s`.`Name` IS NULL)) AND (`t`.`GearNickName` IS NULL))"); } public override async Task Filter_with_new_Guid(bool isAsync) @@ -6248,7 +5774,7 @@ WHERE (SUBSTRING(`t`.`Note`, 0 + 1, CAST(LEN(`s`.`Name`) AS int)) = `t`.`GearNic await base.Filter_with_new_Guid(isAsync); AssertSql( - $@"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`Note` + @"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`IssueDate`, `t`.`Note` FROM `Tags` AS `t` WHERE `t`.`Id` = 'df36f493-463f-4123-83f9-6b135deeb7ba'"); } @@ -6276,11 +5802,11 @@ WHERE `t`.`Id` = {AssertSqlHelper.Parameter("@__p_0")}"); await base.OfTypeNav1(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` -FROM `Gears` AS `g` -LEFT JOIN `Tags` AS `t` ON (`g`.`Nickname` = `t`.`GearNickName`) AND (`g`.`SquadId` = `t`.`GearSquadId`) + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` +FROM (`Gears` AS `g` +LEFT JOIN `Tags` AS `t` ON (`g`.`Nickname` = `t`.`GearNickName`) AND (`g`.`SquadId` = `t`.`GearSquadId`)) LEFT JOIN `Tags` AS `t0` ON (`g`.`Nickname` = `t0`.`GearNickName`) AND (`g`.`SquadId` = `t0`.`GearSquadId`) -WHERE ((`g`.`Discriminator` IN ('Gear', 'Officer') AND ((`t`.`Note` <> 'Foo') OR `t`.`Note` IS NULL)) AND (`g`.`Discriminator` = 'Officer')) AND ((`t0`.`Note` <> 'Bar') OR `t0`.`Note` IS NULL)"); +WHERE (((`t`.`Note` <> 'Foo') OR (`t`.`Note` IS NULL)) AND (`g`.`Discriminator` = 'Officer')) AND ((`t0`.`Note` <> 'Bar') OR (`t0`.`Note` IS NULL))"); } public override async Task OfTypeNav2(bool isAsync) @@ -6288,11 +5814,11 @@ WHERE ((`g`.`Discriminator` IN ('Gear', 'Officer') AND ((`t`.`Note` <> 'Foo') OR await base.OfTypeNav2(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` -FROM `Gears` AS `g` -LEFT JOIN `Tags` AS `t` ON (`g`.`Nickname` = `t`.`GearNickName`) AND (`g`.`SquadId` = `t`.`GearSquadId`) + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` +FROM (`Gears` AS `g` +LEFT JOIN `Tags` AS `t` ON (`g`.`Nickname` = `t`.`GearNickName`) AND (`g`.`SquadId` = `t`.`GearSquadId`)) LEFT JOIN `Cities` AS `c` ON `g`.`AssignedCityName` = `c`.`Name` -WHERE ((`g`.`Discriminator` IN ('Gear', 'Officer') AND ((`t`.`Note` <> 'Foo') OR `t`.`Note` IS NULL)) AND (`g`.`Discriminator` = 'Officer')) AND ((`c`.`Location` <> 'Bar') OR `c`.`Location` IS NULL)"); +WHERE (((`t`.`Note` <> 'Foo') OR (`t`.`Note` IS NULL)) AND (`g`.`Discriminator` = 'Officer')) AND ((`c`.`Location` <> 'Bar') OR (`c`.`Location` IS NULL))"); } public override async Task OfTypeNav3(bool isAsync) @@ -6300,12 +5826,12 @@ WHERE ((`g`.`Discriminator` IN ('Gear', 'Officer') AND ((`t`.`Note` <> 'Foo') OR await base.OfTypeNav3(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` -FROM `Gears` AS `g` -LEFT JOIN `Tags` AS `t` ON (`g`.`Nickname` = `t`.`GearNickName`) AND (`g`.`SquadId` = `t`.`GearSquadId`) -INNER JOIN `Weapons` AS `w` ON `g`.`FullName` = `w`.`OwnerFullName` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` +FROM ((`Gears` AS `g` +LEFT JOIN `Tags` AS `t` ON (`g`.`Nickname` = `t`.`GearNickName`) AND (`g`.`SquadId` = `t`.`GearSquadId`)) +INNER JOIN `Weapons` AS `w` ON `g`.`FullName` = `w`.`OwnerFullName`) LEFT JOIN `Tags` AS `t0` ON (`g`.`Nickname` = `t0`.`GearNickName`) AND (`g`.`SquadId` = `t0`.`GearSquadId`) -WHERE ((`g`.`Discriminator` IN ('Gear', 'Officer') AND ((`t`.`Note` <> 'Foo') OR `t`.`Note` IS NULL)) AND (`g`.`Discriminator` = 'Officer')) AND ((`t0`.`Note` <> 'Bar') OR `t0`.`Note` IS NULL)"); +WHERE (((`t`.`Note` <> 'Foo') OR (`t`.`Note` IS NULL)) AND (`g`.`Discriminator` = 'Officer')) AND ((`t0`.`Note` <> 'Bar') OR (`t0`.`Note` IS NULL))"); } public override void Nav_rewrite_Distinct_with_convert() @@ -6329,15 +5855,15 @@ WHERE ((`g`.`Discriminator` IN ('Gear', 'Officer') AND ((`t`.`Note` <> 'Foo') OR await base.Nav_rewrite_with_convert1(isAsync); AssertSql( - $@"SELECT `t`.`Name`, `t`.`Discriminator`, `t`.`LocustHordeId`, `t`.`ThreatLevel`, `t`.`DefeatedByNickname`, `t`.`DefeatedBySquadId`, `t`.`HighCommandId` -FROM `Factions` AS `f` -LEFT JOIN `Cities` AS `c` ON `f`.`CapitalName` = `c`.`Name` + @"SELECT `t`.`Name`, `t`.`Discriminator`, `t`.`LocustHordeId`, `t`.`ThreatLevel`, `t`.`ThreatLevelByte`, `t`.`ThreatLevelNullableByte`, `t`.`DefeatedByNickname`, `t`.`DefeatedBySquadId`, `t`.`HighCommandId` +FROM (`Factions` AS `f` +LEFT JOIN `Cities` AS `c` ON `f`.`CapitalName` = `c`.`Name`) LEFT JOIN ( - SELECT `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId` + SELECT `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`ThreatLevelByte`, `l`.`ThreatLevelNullableByte`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId` FROM `LocustLeaders` AS `l` WHERE `l`.`Discriminator` = 'LocustCommander' ) AS `t` ON `f`.`CommanderName` = `t`.`Name` -WHERE (`f`.`Discriminator` = 'LocustHorde') AND ((`c`.`Name` <> 'Foo') OR `c`.`Name` IS NULL)"); +WHERE (`c`.`Name` <> 'Foo') OR (`c`.`Name` IS NULL)"); } public override async Task Nav_rewrite_with_convert2(bool isAsync) @@ -6345,15 +5871,15 @@ WHERE (`f`.`Discriminator` = 'LocustHorde') AND ((`c`.`Name` <> 'Foo') OR `c`.`N await base.Nav_rewrite_with_convert2(isAsync); AssertSql( - $@"SELECT `f`.`Id`, `f`.`CapitalName`, `f`.`Discriminator`, `f`.`Name`, `f`.`CommanderName`, `f`.`Eradicated` -FROM `Factions` AS `f` -LEFT JOIN `Cities` AS `c` ON `f`.`CapitalName` = `c`.`Name` + @"SELECT `f`.`Id`, `f`.`CapitalName`, `f`.`Discriminator`, `f`.`Name`, `f`.`ServerAddress`, `f`.`CommanderName`, `f`.`Eradicated` +FROM (`Factions` AS `f` +LEFT JOIN `Cities` AS `c` ON `f`.`CapitalName` = `c`.`Name`) LEFT JOIN ( - SELECT `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId` + SELECT `l`.`Name` FROM `LocustLeaders` AS `l` WHERE `l`.`Discriminator` = 'LocustCommander' ) AS `t` ON `f`.`CommanderName` = `t`.`Name` -WHERE ((`f`.`Discriminator` = 'LocustHorde') AND ((`c`.`Name` <> 'Foo') OR `c`.`Name` IS NULL)) AND ((`t`.`Name` <> 'Bar') OR `t`.`Name` IS NULL)"); +WHERE ((`c`.`Name` <> 'Foo') OR (`c`.`Name` IS NULL)) AND ((`t`.`Name` <> 'Bar') OR (`t`.`Name` IS NULL))"); } public override async Task Nav_rewrite_with_convert3(bool isAsync) @@ -6361,15 +5887,15 @@ WHERE ((`f`.`Discriminator` = 'LocustHorde') AND ((`c`.`Name` <> 'Foo') OR `c`.` await base.Nav_rewrite_with_convert3(isAsync); AssertSql( - $@"SELECT `f`.`Id`, `f`.`CapitalName`, `f`.`Discriminator`, `f`.`Name`, `f`.`CommanderName`, `f`.`Eradicated` -FROM `Factions` AS `f` -LEFT JOIN `Cities` AS `c` ON `f`.`CapitalName` = `c`.`Name` + @"SELECT `f`.`Id`, `f`.`CapitalName`, `f`.`Discriminator`, `f`.`Name`, `f`.`ServerAddress`, `f`.`CommanderName`, `f`.`Eradicated` +FROM (`Factions` AS `f` +LEFT JOIN `Cities` AS `c` ON `f`.`CapitalName` = `c`.`Name`) LEFT JOIN ( - SELECT `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId` + SELECT `l`.`Name` FROM `LocustLeaders` AS `l` WHERE `l`.`Discriminator` = 'LocustCommander' ) AS `t` ON `f`.`CommanderName` = `t`.`Name` -WHERE ((`f`.`Discriminator` = 'LocustHorde') AND ((`c`.`Name` <> 'Foo') OR `c`.`Name` IS NULL)) AND ((`t`.`Name` <> 'Bar') OR `t`.`Name` IS NULL)"); +WHERE ((`c`.`Name` <> 'Foo') OR (`c`.`Name` IS NULL)) AND ((`t`.`Name` <> 'Bar') OR (`t`.`Name` IS NULL))"); } public override async Task Where_contains_on_navigation_with_composite_keys(bool isAsync) @@ -6416,13 +5942,12 @@ ORDER BY ( await base.Bool_projection_from_subquery_treated_appropriately_in_where(isAsync); AssertSql( - $@"SELECT `c`.`Name`, `c`.`Location`, `c`.`Nation` + @"SELECT `c`.`Name`, `c`.`Location`, `c`.`Nation` FROM `Cities` AS `c` WHERE ( SELECT TOP 1 `g`.`HasSoulPatch` FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') - ORDER BY `g`.`Nickname`, `g`.`SquadId`) = True"); + ORDER BY `g`.`Nickname`, `g`.`SquadId`) = TRUE"); } public override async Task DateTimeOffset_Contains_Less_than_Greater_than(bool isAsync) @@ -6444,7 +5969,7 @@ WHERE (({AssertSqlHelper.Parameter("@__start_0")} <= CAST(CONVERT(date, `m`.`Tim await base.Navigation_inside_interpolated_string_expanded(isAsync); AssertSql( - $@"SELECT IIF(`w`.`SynergyWithId` IS NOT NULL, 1, 0), `w0`.`OwnerFullName` + @"SELECT IIF(`w`.`SynergyWithId` IS NOT NULL, TRUE, FALSE), `w0`.`OwnerFullName` FROM `Weapons` AS `w` LEFT JOIN `Weapons` AS `w0` ON `w`.`SynergyWithId` = `w0`.`Id`"); } @@ -6454,14 +5979,9 @@ LEFT JOIN `Weapons` AS `w0` ON `w`.`SynergyWithId` = `w0`.`Id`"); await base.Left_join_projection_using_coalesce_tracking(isAsync); AssertSql( - $@"SELECT `t`.`Nickname`, `t`.`SquadId`, `t`.`AssignedCityName`, `t`.`CityOfBirthName`, `t`.`Discriminator`, `t`.`FullName`, `t`.`HasSoulPatch`, `t`.`LeaderNickname`, `t`.`LeaderSquadId`, `t`.`Rank`, `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` + @"SELECT `g0`.`Nickname`, `g0`.`SquadId`, `g0`.`AssignedCityName`, `g0`.`CityOfBirthName`, `g0`.`Discriminator`, `g0`.`FullName`, `g0`.`HasSoulPatch`, `g0`.`LeaderNickname`, `g0`.`LeaderSquadId`, `g0`.`Rank`, `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -LEFT JOIN ( - SELECT `g0`.`Nickname`, `g0`.`SquadId`, `g0`.`AssignedCityName`, `g0`.`CityOfBirthName`, `g0`.`Discriminator`, `g0`.`FullName`, `g0`.`HasSoulPatch`, `g0`.`LeaderNickname`, `g0`.`LeaderSquadId`, `g0`.`Rank` - FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') -) AS `t` ON `g`.`LeaderNickname` = `t`.`Nickname` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); +LEFT JOIN `Gears` AS `g0` ON `g`.`LeaderNickname` = `g0`.`Nickname`"); } public override async Task Left_join_projection_using_conditional_tracking(bool isAsync) @@ -6469,14 +5989,9 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); await base.Left_join_projection_using_conditional_tracking(isAsync); AssertSql( - $@"SELECT IIF(`t`.`Nickname` IS NULL, 1, 0), `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `t`.`Nickname`, `t`.`SquadId`, `t`.`AssignedCityName`, `t`.`CityOfBirthName`, `t`.`Discriminator`, `t`.`FullName`, `t`.`HasSoulPatch`, `t`.`LeaderNickname`, `t`.`LeaderSquadId`, `t`.`Rank` + @"SELECT IIF((`g0`.`Nickname` IS NULL) OR (`g0`.`SquadId` IS NULL), TRUE, FALSE), `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `g0`.`Nickname`, `g0`.`SquadId`, `g0`.`AssignedCityName`, `g0`.`CityOfBirthName`, `g0`.`Discriminator`, `g0`.`FullName`, `g0`.`HasSoulPatch`, `g0`.`LeaderNickname`, `g0`.`LeaderSquadId`, `g0`.`Rank` FROM `Gears` AS `g` -LEFT JOIN ( - SELECT `g0`.`Nickname`, `g0`.`SquadId`, `g0`.`AssignedCityName`, `g0`.`CityOfBirthName`, `g0`.`Discriminator`, `g0`.`FullName`, `g0`.`HasSoulPatch`, `g0`.`LeaderNickname`, `g0`.`LeaderSquadId`, `g0`.`Rank` - FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') -) AS `t` ON `g`.`LeaderNickname` = `t`.`Nickname` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); +LEFT JOIN `Gears` AS `g0` ON `g`.`LeaderNickname` = `g0`.`Nickname`"); } public override async Task Project_collection_navigation_nested_with_take_composite_key(bool isAsync) @@ -6541,16 +6056,15 @@ ORDER BY `t`.`Id`, `t0`.`Nickname`, `t0`.`SquadId`"); await base.SelectMany_Where_DefaultIfEmpty_with_navigation_in_the_collection_selector(isAsync); AssertSql( - $@"{AssertSqlHelper.Declaration("@__isAutomatic_0='True'")} + @"@__isAutomatic_0='True' -SELECT `g`.`Nickname`, `g`.`FullName`, IIF(`t`.`Id` IS NOT NULL, 1, 0) AS `Collection` +SELECT `g`.`Nickname`, `g`.`FullName`, IIF(`t`.`Id` IS NOT NULL, TRUE, FALSE) AS `Collection` FROM `Gears` AS `g` LEFT JOIN ( - SELECT `w`.`Id`, `w`.`AmmunitionType`, `w`.`IsAutomatic`, `w`.`Name`, `w`.`OwnerFullName`, `w`.`SynergyWithId` + SELECT `w`.`Id`, `w`.`OwnerFullName` FROM `Weapons` AS `w` - WHERE `w`.`IsAutomatic` = {AssertSqlHelper.Parameter("@__isAutomatic_0")} -) AS `t` ON `g`.`FullName` = `t`.`OwnerFullName` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); + WHERE `w`.`IsAutomatic` = @__isAutomatic_0 +) AS `t` ON `g`.`FullName` = `t`.`OwnerFullName`"); } public override async Task Join_with_inner_being_a_subquery_projecting_single_property(bool isAsync) @@ -6558,14 +6072,9 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); await base.Join_with_inner_being_a_subquery_projecting_single_property(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -INNER JOIN ( - SELECT `g0`.`Nickname`, `g0`.`SquadId`, `g0`.`AssignedCityName`, `g0`.`CityOfBirthName`, `g0`.`Discriminator`, `g0`.`FullName`, `g0`.`HasSoulPatch`, `g0`.`LeaderNickname`, `g0`.`LeaderSquadId`, `g0`.`Rank` - FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') -) AS `t` ON `g`.`Nickname` = `t`.`Nickname` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); +INNER JOIN `Gears` AS `g0` ON `g`.`Nickname` = `g0`.`Nickname`"); } public override async Task Join_with_inner_being_a_subquery_projecting_anonymous_type_with_single_property(bool isAsync) @@ -6573,14 +6082,9 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); await base.Join_with_inner_being_a_subquery_projecting_anonymous_type_with_single_property(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -INNER JOIN ( - SELECT `g0`.`Nickname`, `g0`.`SquadId`, `g0`.`AssignedCityName`, `g0`.`CityOfBirthName`, `g0`.`Discriminator`, `g0`.`FullName`, `g0`.`HasSoulPatch`, `g0`.`LeaderNickname`, `g0`.`LeaderSquadId`, `g0`.`Rank` - FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') -) AS `t` ON `g`.`Nickname` = `t`.`Nickname` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); +INNER JOIN `Gears` AS `g0` ON `g`.`Nickname` = `g0`.`Nickname`"); } public override async Task Navigation_based_on_complex_expression1(bool isAsync) @@ -6596,14 +6100,14 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); await base.Navigation_based_on_complex_expression2(isAsync); AssertSql( - $@"SELECT `f`.`Id`, `f`.`CapitalName`, `f`.`Discriminator`, `f`.`Name`, `f`.`CommanderName`, `f`.`Eradicated` + @"SELECT `f`.`Id`, `f`.`CapitalName`, `f`.`Discriminator`, `f`.`Name`, `f`.`ServerAddress`, `f`.`CommanderName`, `f`.`Eradicated` FROM `Factions` AS `f` LEFT JOIN ( - SELECT `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId` + SELECT `l`.`Name` FROM `LocustLeaders` AS `l` WHERE `l`.`Discriminator` = 'LocustCommander' ) AS `t` ON `f`.`CommanderName` = `t`.`Name` -WHERE ((`f`.`Discriminator` = 'LocustHorde') AND (`f`.`Discriminator` = 'LocustHorde')) AND `t`.`Name` IS NOT NULL"); +WHERE `t`.`Name` IS NOT NULL"); } public override async Task Navigation_based_on_complex_expression3(bool isAsync) @@ -6611,14 +6115,13 @@ WHERE ((`f`.`Discriminator` = 'LocustHorde') AND (`f`.`Discriminator` = 'LocustH await base.Navigation_based_on_complex_expression3(isAsync); AssertSql( - $@"SELECT `t`.`Name`, `t`.`Discriminator`, `t`.`LocustHordeId`, `t`.`ThreatLevel`, `t`.`DefeatedByNickname`, `t`.`DefeatedBySquadId`, `t`.`HighCommandId` + @"SELECT `t`.`Name`, `t`.`Discriminator`, `t`.`LocustHordeId`, `t`.`ThreatLevel`, `t`.`ThreatLevelByte`, `t`.`ThreatLevelNullableByte`, `t`.`DefeatedByNickname`, `t`.`DefeatedBySquadId`, `t`.`HighCommandId` FROM `Factions` AS `f` LEFT JOIN ( - SELECT `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId` + SELECT `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`ThreatLevelByte`, `l`.`ThreatLevelNullableByte`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId` FROM `LocustLeaders` AS `l` WHERE `l`.`Discriminator` = 'LocustCommander' -) AS `t` ON `f`.`CommanderName` = `t`.`Name` -WHERE (`f`.`Discriminator` = 'LocustHorde') AND (`f`.`Discriminator` = 'LocustHorde')"); +) AS `t` ON `f`.`CommanderName` = `t`.`Name`"); } public override async Task Navigation_based_on_complex_expression4(bool isAsync) @@ -6650,9 +6153,8 @@ WHERE (`f`.`Discriminator` = 'LocustHorde') AND (`f`.`Discriminator` = 'LocustHo await base.Select_as_operator(isAsync); AssertSql( - $@"SELECT `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId` -FROM `LocustLeaders` AS `l` -WHERE `l`.`Discriminator` IN ('LocustLeader', 'LocustCommander')"); + @"SELECT `l`.`Name`, `l`.`Discriminator`, `l`.`LocustHordeId`, `l`.`ThreatLevel`, `l`.`ThreatLevelByte`, `l`.`ThreatLevelNullableByte`, `l`.`DefeatedByNickname`, `l`.`DefeatedBySquadId`, `l`.`HighCommandId` +FROM `LocustLeaders` AS `l`"); } public override async Task Select_datetimeoffset_comparison_in_projection(bool isAsync) @@ -6685,23 +6187,21 @@ WHERE `g`.`Discriminator` = 'Officer'"); await base.Nullable_bool_comparison_is_translated_to_server(isAsync); AssertSql( - $@"SELECT IIF((`f`.`Eradicated` = True) AND `f`.`Eradicated` IS NOT NULL, 1, 0) AS `IsEradicated` -FROM `Factions` AS `f` -WHERE `f`.`Discriminator` = 'LocustHorde'"); + @"SELECT IIF((`f`.`Eradicated` = TRUE) AND (`f`.`Eradicated` IS NOT NULL), TRUE, FALSE) AS `IsEradicated` +FROM `Factions` AS `f`"); } public override async Task Accessing_reference_navigation_collection_composition_generates_single_query(bool isAsync) { await base.Accessing_reference_navigation_collection_composition_generates_single_query(isAsync); AssertSql( - $@"SELECT `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`, `t`.`IsAutomatic`, `t`.`Name` + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`, `t`.`IsAutomatic`, `t`.`Name`, `t`.`Id0` FROM `Gears` AS `g` LEFT JOIN ( - SELECT `w`.`Id`, `w`.`IsAutomatic`, `w0`.`Name`, `w`.`OwnerFullName` + SELECT `w`.`Id`, `w`.`IsAutomatic`, `w0`.`Name`, `w0`.`Id` AS `Id0`, `w`.`OwnerFullName` FROM `Weapons` AS `w` LEFT JOIN `Weapons` AS `w0` ON `w`.`SynergyWithId` = `w0`.`Id` ) AS `t` ON `g`.`FullName` = `t`.`OwnerFullName` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`"); } @@ -6710,14 +6210,10 @@ ORDER BY `g`.`Nickname`, `g`.`SquadId`, `t`.`Id`"); await base.Reference_include_chain_loads_correctly_when_middle_is_null(isAsync); AssertSql( - $@"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`Note`, `t0`.`Nickname`, `t0`.`SquadId`, `t0`.`AssignedCityName`, `t0`.`CityOfBirthName`, `t0`.`Discriminator`, `t0`.`FullName`, `t0`.`HasSoulPatch`, `t0`.`LeaderNickname`, `t0`.`LeaderSquadId`, `t0`.`Rank`, `s`.`Id`, `s`.`InternalNumber`, `s`.`Name` -FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -LEFT JOIN `Squads` AS `s` ON `t0`.`SquadId` = `s`.`Id` + @"SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`IssueDate`, `t`.`Note`, `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank`, `s`.`Id`, `s`.`Banner`, `s`.`Banner5`, `s`.`InternalNumber`, `s`.`Name` +FROM (`Tags` AS `t` +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`)) +LEFT JOIN `Squads` AS `s` ON `g`.`SquadId` = `s`.`Id` ORDER BY `t`.`Note`"); } @@ -6726,23 +6222,15 @@ ORDER BY `t`.`Note`"); await base.Accessing_property_of_optional_navigation_in_child_projection_works(isAsync); AssertSql( - $@"SELECT IIF(`t0`.`Nickname` IS NOT NULL, 1, 0), `t`.`Id`, `t2`.`Nickname`, `t2`.`Id` -FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) + @"SELECT IIF((`g`.`Nickname` IS NOT NULL) AND (`g`.`SquadId` IS NOT NULL), TRUE, FALSE), `t`.`Id`, `g`.`Nickname`, `g`.`SquadId`, `t0`.`Nickname`, `t0`.`Id`, `t0`.`SquadId` +FROM (`Tags` AS `t` +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`)) LEFT JOIN ( - SELECT `t1`.`Nickname`, `w`.`Id`, `w`.`OwnerFullName` + SELECT `g0`.`Nickname`, `w`.`Id`, `g0`.`SquadId`, `w`.`OwnerFullName` FROM `Weapons` AS `w` - LEFT JOIN ( - SELECT `g0`.`Nickname`, `g0`.`SquadId`, `g0`.`AssignedCityName`, `g0`.`CityOfBirthName`, `g0`.`Discriminator`, `g0`.`FullName`, `g0`.`HasSoulPatch`, `g0`.`LeaderNickname`, `g0`.`LeaderSquadId`, `g0`.`Rank` - FROM `Gears` AS `g0` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') - ) AS `t1` ON `w`.`OwnerFullName` = `t1`.`FullName` -) AS `t2` ON `t0`.`FullName` = `t2`.`OwnerFullName` -ORDER BY `t`.`Note`, `t`.`Id`, `t2`.`Id`"); + LEFT JOIN `Gears` AS `g0` ON `w`.`OwnerFullName` = `g0`.`FullName` +) AS `t0` ON `g`.`FullName` = `t0`.`OwnerFullName` +ORDER BY `t`.`Note`, `t`.`Id`, `g`.`Nickname`, `g`.`SquadId`, `t0`.`Id`, `t0`.`Nickname`"); } public override async Task Collection_navigation_ofType_filter_works(bool isAsync) @@ -6750,12 +6238,12 @@ ORDER BY `t`.`Note`, `t`.`Id`, `t2`.`Id`"); await base.Collection_navigation_ofType_filter_works(isAsync); AssertSql( - $@"SELECT `c`.`Name`, `c`.`Location`, `c`.`Nation` + @"SELECT `c`.`Name`, `c`.`Location`, `c`.`Nation` FROM `Cities` AS `c` WHERE EXISTS ( SELECT 1 FROM `Gears` AS `g` - WHERE ((`g`.`Discriminator` IN ('Gear', 'Officer') AND (`c`.`Name` = `g`.`CityOfBirthName`)) AND (`g`.`Discriminator` = 'Officer')) AND (`g`.`Nickname` = 'Marcus'))"); + WHERE ((`c`.`Name` = `g`.`CityOfBirthName`) AND (`g`.`Discriminator` = 'Officer')) AND (`g`.`Nickname` = 'Marcus'))"); } public override async Task Query_reusing_parameter_doesnt_declare_duplicate_parameter(bool isAsync) @@ -6763,13 +6251,14 @@ WHERE EXISTS ( await base.Query_reusing_parameter_doesnt_declare_duplicate_parameter(isAsync); AssertSql( - $@"{AssertSqlHelper.Declaration("@__prm_Inner_Nickname_0='Marcus' (Size = 450)")} + @"@__prm_Inner_Nickname_0='Marcus' (Size = 255) +@__prm_Inner_Nickname_0='Marcus' (Size = 255) SELECT `t`.`Nickname`, `t`.`SquadId`, `t`.`AssignedCityName`, `t`.`CityOfBirthName`, `t`.`Discriminator`, `t`.`FullName`, `t`.`HasSoulPatch`, `t`.`LeaderNickname`, `t`.`LeaderSquadId`, `t`.`Rank` FROM ( SELECT DISTINCT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` - WHERE (`g`.`Discriminator` IN ('Gear', 'Officer') AND (`g`.`Nickname` <> {AssertSqlHelper.Parameter("@__prm_Inner_Nickname_0")})) AND (`g`.`Nickname` <> {AssertSqlHelper.Parameter("@__prm_Inner_Nickname_0")}) + WHERE (`g`.`Nickname` <> @__prm_Inner_Nickname_0) AND (`g`.`Nickname` <> @__prm_Inner_Nickname_0) ) AS `t` ORDER BY `t`.`FullName`"); } @@ -6779,17 +6268,18 @@ ORDER BY `t`.`FullName`"); await base.Query_reusing_parameter_doesnt_declare_duplicate_parameter_complex(isAsync); AssertSql( - $@"{AssertSqlHelper.Declaration("@__entity_equality_prm_Inner_Squad_0_Id='1' (Nullable = true)")} + @"@__entity_equality_prm_Inner_Squad_0_Id='1' (Nullable = true) +@__entity_equality_prm_Inner_Squad_0_Id='1' (Nullable = true) SELECT `t`.`Nickname`, `t`.`SquadId`, `t`.`AssignedCityName`, `t`.`CityOfBirthName`, `t`.`Discriminator`, `t`.`FullName`, `t`.`HasSoulPatch`, `t`.`LeaderNickname`, `t`.`LeaderSquadId`, `t`.`Rank` FROM ( SELECT DISTINCT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` INNER JOIN `Squads` AS `s` ON `g`.`SquadId` = `s`.`Id` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (`s`.`Id` = {AssertSqlHelper.Parameter("@__entity_equality_prm_Inner_Squad_0_Id")}) + WHERE `s`.`Id` = @__entity_equality_prm_Inner_Squad_0_Id ) AS `t` INNER JOIN `Squads` AS `s0` ON `t`.`SquadId` = `s0`.`Id` -WHERE `s0`.`Id` = {AssertSqlHelper.Parameter("@__entity_equality_prm_Inner_Squad_0_Id")} +WHERE `s0`.`Id` = @__entity_equality_prm_Inner_Squad_0_Id ORDER BY `t`.`FullName`"); } @@ -6798,7 +6288,7 @@ ORDER BY `t`.`FullName`"); await base.Complex_GroupBy_after_set_operator(isAsync); AssertSql( - $@"SELECT `t`.`Name`, `t`.`Count`, SUM(`t`.`Count`) AS `Sum` + @"SELECT `t`.`Name`, `t`.`Count`, IIF(SUM(`t`.`Count`) IS NULL, 0, SUM(`t`.`Count`)) AS `Sum` FROM ( SELECT `c`.`Name`, ( SELECT COUNT(*) @@ -6806,7 +6296,6 @@ FROM ( WHERE `g`.`FullName` = `w`.`OwnerFullName`) AS `Count` FROM `Gears` AS `g` LEFT JOIN `Cities` AS `c` ON `g`.`AssignedCityName` = `c`.`Name` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') UNION ALL SELECT `c0`.`Name`, ( SELECT COUNT(*) @@ -6814,7 +6303,6 @@ FROM ( WHERE `g0`.`FullName` = `w0`.`OwnerFullName`) AS `Count` FROM `Gears` AS `g0` INNER JOIN `Cities` AS `c0` ON `g0`.`CityOfBirthName` = `c0`.`Name` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') ) AS `t` GROUP BY `t`.`Name`, `t`.`Count`"); } @@ -6824,7 +6312,7 @@ GROUP BY `t`.`Name`, `t`.`Count`"); await base.Complex_GroupBy_after_set_operator_using_result_selector(isAsync); AssertSql( - $@"SELECT `t`.`Name`, `t`.`Count`, SUM(`t`.`Count`) AS `Sum` + @"SELECT `t`.`Name`, `t`.`Count`, IIF(SUM(`t`.`Count`) IS NULL, 0, SUM(`t`.`Count`)) AS `Sum` FROM ( SELECT `c`.`Name`, ( SELECT COUNT(*) @@ -6832,7 +6320,6 @@ FROM ( WHERE `g`.`FullName` = `w`.`OwnerFullName`) AS `Count` FROM `Gears` AS `g` LEFT JOIN `Cities` AS `c` ON `g`.`AssignedCityName` = `c`.`Name` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') UNION ALL SELECT `c0`.`Name`, ( SELECT COUNT(*) @@ -6840,7 +6327,6 @@ FROM ( WHERE `g0`.`FullName` = `w0`.`OwnerFullName`) AS `Count` FROM `Gears` AS `g0` INNER JOIN `Cities` AS `c0` ON `g0`.`CityOfBirthName` = `c0`.`Name` - WHERE `g0`.`Discriminator` IN ('Gear', 'Officer') ) AS `t` GROUP BY `t`.`Name`, `t`.`Count`"); } @@ -6850,11 +6336,10 @@ GROUP BY `t`.`Name`, `t`.`Count`"); await base.Left_join_with_GroupBy_with_composite_group_key(isAsync); AssertSql( - $@"SELECT `g`.`CityOfBirthName`, `g`.`HasSoulPatch` -FROM `Gears` AS `g` -INNER JOIN `Squads` AS `s` ON `g`.`SquadId` = `s`.`Id` + @"SELECT `g`.`CityOfBirthName`, `g`.`HasSoulPatch` +FROM (`Gears` AS `g` +INNER JOIN `Squads` AS `s` ON `g`.`SquadId` = `s`.`Id`) LEFT JOIN `Tags` AS `t` ON `g`.`Nickname` = `t`.`GearNickName` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') GROUP BY `g`.`CityOfBirthName`, `g`.`HasSoulPatch`"); } @@ -6863,10 +6348,9 @@ GROUP BY `g`.`CityOfBirthName`, `g`.`HasSoulPatch`"); await base.GroupBy_with_boolean_grouping_key(isAsync); AssertSql( - $@"SELECT `g`.`CityOfBirthName`, `g`.`HasSoulPatch`, IIF(`g`.`Nickname` = 'Marcus', 1, 0) AS `IsMarcus`, COUNT(*) AS `Count` + @"SELECT `g`.`CityOfBirthName`, `g`.`HasSoulPatch`, IIF(`g`.`Nickname` = 'Marcus', TRUE, FALSE) AS `IsMarcus`, COUNT(*) AS `Count` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -GROUP BY `g`.`CityOfBirthName`, `g`.`HasSoulPatch`, IIF(`g`.`Nickname` = 'Marcus', 1, 0)"); +GROUP BY `g`.`CityOfBirthName`, `g`.`HasSoulPatch`, IIF(`g`.`Nickname` = 'Marcus', TRUE, FALSE)"); } public override async Task GroupBy_with_boolean_groupin_key_thru_navigation_access(bool isAsync) @@ -6874,15 +6358,11 @@ GROUP BY `g`.`CityOfBirthName`, `g`.`HasSoulPatch`, IIF(`g`.`Nickname` = 'Marcus await base.GroupBy_with_boolean_groupin_key_thru_navigation_access(isAsync); AssertSql( - $@"SELECT `t0`.`HasSoulPatch`, LOWER(`s`.`Name`) AS `Name` -FROM `Tags` AS `t` -LEFT JOIN ( - SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` - FROM `Gears` AS `g` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') -) AS `t0` ON (`t`.`GearNickName` = `t0`.`Nickname`) AND (`t`.`GearSquadId` = `t0`.`SquadId`) -LEFT JOIN `Squads` AS `s` ON `t0`.`SquadId` = `s`.`Id` -GROUP BY `t0`.`HasSoulPatch`, `s`.`Name`"); + @"SELECT `g`.`HasSoulPatch`, LCASE(`s`.`Name`) AS `Name` +FROM (`Tags` AS `t` +LEFT JOIN `Gears` AS `g` ON (`t`.`GearNickName` = `g`.`Nickname`) AND (`t`.`GearSquadId` = `g`.`SquadId`)) +LEFT JOIN `Squads` AS `s` ON `g`.`SquadId` = `s`.`Id` +GROUP BY `g`.`HasSoulPatch`, `s`.`Name`"); } public override async Task Group_by_over_projection_with_multiple_properties_accessed_thru_navigation(bool isAsync) @@ -6890,12 +6370,9 @@ GROUP BY `t0`.`HasSoulPatch`, `s`.`Name`"); await base.Group_by_over_projection_with_multiple_properties_accessed_thru_navigation(isAsync); AssertSql( - $@"SELECT `c`.`Name` + @"SELECT `c`.`Name` FROM `Gears` AS `g` INNER JOIN `Cities` AS `c` ON `g`.`CityOfBirthName` = `c`.`Name` -LEFT JOIN `Cities` AS `c0` ON `g`.`AssignedCityName` = `c0`.`Name` -INNER JOIN `Squads` AS `s` ON `g`.`SquadId` = `s`.`Id` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') GROUP BY `c`.`Name`"); } @@ -6904,7 +6381,8 @@ GROUP BY `c`.`Name`"); await base.Group_by_on_StartsWith_with_null_parameter_as_argument(isAsync); AssertSql( - $@""); + @"SELECT FALSE +FROM `Gears` AS `g`"); } public override async Task Group_by_with_having_StartsWith_with_null_parameter_as_argument(bool isAsync) @@ -6912,11 +6390,10 @@ GROUP BY `c`.`Name`"); await base.Group_by_with_having_StartsWith_with_null_parameter_as_argument(isAsync); AssertSql( - $@"SELECT `g`.`FullName` + @"SELECT `g`.`FullName` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') GROUP BY `g`.`FullName` -HAVING False = True"); +HAVING 0 = 1"); } public override async Task Select_StartsWith_with_null_parameter_as_argument(bool isAsync) @@ -6924,7 +6401,8 @@ HAVING False = True"); await base.Select_StartsWith_with_null_parameter_as_argument(isAsync); AssertSql( - $@""); + @"SELECT FALSE +FROM `Gears` AS `g`"); } public override async Task Select_null_parameter_is_not_null(bool isAsync) @@ -6932,11 +6410,10 @@ HAVING False = True"); await base.Select_null_parameter_is_not_null(isAsync); AssertSql( - $@"{AssertSqlHelper.Declaration("@__p_0='False'")} + @"@__p_0='False' -SELECT {AssertSqlHelper.Parameter("@__p_0")} -FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); +SELECT @__p_0 +FROM `Gears` AS `g`"); } public override async Task Where_null_parameter_is_not_null(bool isAsync) @@ -6944,11 +6421,11 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer')"); await base.Where_null_parameter_is_not_null(isAsync); AssertSql( - $@"{AssertSqlHelper.Declaration("@__p_0='False'")} + @"@__p_0='False' SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ({AssertSqlHelper.Parameter("@__p_0")} = True)"); +WHERE @__p_0 = TRUE"); } public override async Task OrderBy_StartsWith_with_null_parameter_as_argument(bool isAsync) @@ -6956,7 +6433,9 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ({AssertSqlHelper.Parameter await base.OrderBy_StartsWith_with_null_parameter_as_argument(isAsync); AssertSql( - $@""); + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` +FROM `Gears` AS `g` +ORDER BY `g`.`Nickname`"); } public override async Task Where_with_enum_flags_parameter(bool isAsync) @@ -6964,29 +6443,26 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ({AssertSqlHelper.Parameter await base.Where_with_enum_flags_parameter(isAsync); AssertSql( - $@"{AssertSqlHelper.Declaration("@__rank_0='0' (Nullable = true)")} - -SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` -FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND ((`g`.`Rank` BAND {AssertSqlHelper.Parameter("@__rank_0")}) = {AssertSqlHelper.Parameter("@__rank_0")})", - // - $@"@__rank_0=NULL (DbType = Int32) + @"@__rank_0='1' (Nullable = true) +@__rank_0='1' (Nullable = true) SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND `g`.`Rank` BAND {AssertSqlHelper.Parameter("@__rank_0")} IS NULL", - // - $@"{AssertSqlHelper.Declaration("@__rank_0='1' (Nullable = true)")} +WHERE (`g`.`Rank` BAND @__rank_0) = @__rank_0", + // + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` +FROM `Gears` AS `g`", + // + @"@__rank_0='2' (Nullable = true) +@__rank_0='2' (Nullable = true) SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND (((`g`.`Rank` BOR {AssertSqlHelper.Parameter("@__rank_0")}) <> {AssertSqlHelper.Parameter("@__rank_0")}) OR `g`.`Rank` BOR {AssertSqlHelper.Parameter("@__rank_0")} IS NULL)", - // - $@"@__rank_0=NULL (DbType = Int32) - -SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` +WHERE (`g`.`Rank` BOR @__rank_0) <> @__rank_0", + // + @"SELECT `g`.`Nickname`, `g`.`SquadId`, `g`.`AssignedCityName`, `g`.`CityOfBirthName`, `g`.`Discriminator`, `g`.`FullName`, `g`.`HasSoulPatch`, `g`.`LeaderNickname`, `g`.`LeaderSquadId`, `g`.`Rank` FROM `Gears` AS `g` -WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND `g`.`Rank` BOR {AssertSqlHelper.Parameter("@__rank_0")} IS NOT NULL"); +WHERE 0 = 1"); } public override async Task FirstOrDefault_navigation_access_entity_equality_in_where_predicate_apply_peneding_selector(bool isAsync) @@ -6994,19 +6470,17 @@ WHERE `g`.`Discriminator` IN ('Gear', 'Officer') AND `g`.`Rank` BOR {AssertSqlHe await base.FirstOrDefault_navigation_access_entity_equality_in_where_predicate_apply_peneding_selector(isAsync); AssertSql( - $@"SELECT `f`.`Id`, `f`.`CapitalName`, `f`.`Discriminator`, `f`.`Name`, `f`.`CommanderName`, `f`.`Eradicated` + @"SELECT `f`.`Id`, `f`.`CapitalName`, `f`.`Discriminator`, `f`.`Name`, `f`.`ServerAddress`, `f`.`CommanderName`, `f`.`Eradicated` FROM `Factions` AS `f` LEFT JOIN `Cities` AS `c` ON `f`.`CapitalName` = `c`.`Name` -WHERE (`f`.`Discriminator` = 'LocustHorde') AND ((`c`.`Name` = ( +WHERE (`c`.`Name` = ( SELECT TOP 1 `c0`.`Name` FROM `Gears` AS `g` INNER JOIN `Cities` AS `c0` ON `g`.`CityOfBirthName` = `c0`.`Name` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') - ORDER BY `g`.`Nickname`)) OR (`c`.`Name` IS NULL AND ( + ORDER BY `g`.`Nickname`)) OR ((`c`.`Name` IS NULL) AND (( SELECT TOP 1 `c0`.`Name` FROM `Gears` AS `g` INNER JOIN `Cities` AS `c0` ON `g`.`CityOfBirthName` = `c0`.`Name` - WHERE `g`.`Discriminator` IN ('Gear', 'Officer') ORDER BY `g`.`Nickname`) IS NULL))"); }