You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
EntityFrameworkCore.Jet/test/EFCore.Jet.FunctionalTests/Query
Christopher Jolly 629398c76b Set CanExecuteQueryString to false. When running tests, if it is set to true, the Query Asserter will also try to create a query string from the IQueryable. While most cases are fine, the problem comes in when there are parameters. Creating the query string declares the parameters and values at the beginning of the query and the DbCommand is set up with no parameters. While this can work in Sql Server (see the DECLARE keyword), this is not supported with Jet.
The Query Asserter already runs the CreateDbCommand on the IQueryable which creates the DbCommand with the parameters all set up. Creating the query string and running that as a separate command is not really necessary.

By the looks of it this only affects the test system which specifically creates a query string from an IQueryable and creates a new DbCommand with that as the command text. It doesn't seem to affect anywhere else
2 years ago
..
ComplexNavigationsQueryJetFixture.cs
ComplexNavigationsQueryJetTest.cs Update tests for Skip...Take 3 years ago
DbFunctionsJetTest.cs Test fixes for escaping wild chars 3 years ago
FiltersInheritanceQueryJetFixture.cs
FiltersInheritanceQueryJetTest.cs
FromSqlQueryJetTest.cs
FromSqlSprocQueryJetTest.cs
FunkyDataQueryJetTest.cs Update dependencies and some test fixes 3 years ago
GearsOfWarFromSqlQueryJetTest.cs
GearsOfWarQueryJetFixture.cs
GearsOfWarQueryJetTest.cs Update tests for Skip...Take 3 years ago
IncludeOneToOneJetTest.cs
InheritanceQueryJetFixture.cs
InheritanceQueryJetTest.cs Add option to use the normal short text type when mapping against an unbounded System.String instead of long text/memo. Jet has limitations when using memo (e.g. joins are not supported) 3 years ago
InheritanceRelationshipsQueryJetFixture.cs
InheritanceRelationshipsQueryJetTest.cs
MappingQueryJetTest.cs
NavigationTest.cs
NorthwindAggregateOperatorsQueryJetTest.ResultOperators.cs Set CanExecuteQueryString to false. When running tests, if it is set to true, the Query Asserter will also try to create a query string from the IQueryable. While most cases are fine, the problem comes in when there are parameters. Creating the query string declares the parameters and values at the beginning of the query and the DbCommand is set up with no parameters. While this can work in Sql Server (see the DECLARE keyword), this is not supported with Jet. 2 years ago
NorthwindAsNoTrackingQueryJetTest.cs
NorthwindAsTrackingQueryJetTest.cs
NorthwindChangeTrackingQueryJetTest.cs
NorthwindCompiledQueryJetTest.cs
NorthwindFunctionsQueryJetTest.Functions.cs Translate the Atan2 function 2 years ago
NorthwindGroupByQueryJetTest.cs Some skip...take optimization and fix using multiple take after a skip 3 years ago
NorthwindIncludeQueryJetTest.cs Update tests for Skip...Take 3 years ago
NorthwindJoinQueryJetTest.cs Set CanExecuteQueryString to false. When running tests, if it is set to true, the Query Asserter will also try to create a query string from the IQueryable. While most cases are fine, the problem comes in when there are parameters. Creating the query string declares the parameters and values at the beginning of the query and the DbCommand is set up with no parameters. While this can work in Sql Server (see the DECLARE keyword), this is not supported with Jet. 2 years ago
NorthwindKeylessEntitiesQueryJetTest.cs Set CanExecuteQueryString to false. When running tests, if it is set to true, the Query Asserter will also try to create a query string from the IQueryable. While most cases are fine, the problem comes in when there are parameters. Creating the query string declares the parameters and values at the beginning of the query and the DbCommand is set up with no parameters. While this can work in Sql Server (see the DECLARE keyword), this is not supported with Jet. 2 years ago
NorthwindMiscellaneousQueryJetTest.cs Make sure a DateTime in a constant has a DateTime Type Mapping 2 years ago
NorthwindNavigationsQueryJetTest.cs Update tests 3 years ago
NorthwindQueryFiltersQueryJetTest.cs
NorthwindQueryJetFixture.cs Update dependencies and some test fixes 3 years ago
NorthwindQueryTaggingQueryJetTest.cs
NorthwindSelectQueryJetTest.cs Set CanExecuteQueryString to false. When running tests, if it is set to true, the Query Asserter will also try to create a query string from the IQueryable. While most cases are fine, the problem comes in when there are parameters. Creating the query string declares the parameters and values at the beginning of the query and the DbCommand is set up with no parameters. While this can work in Sql Server (see the DECLARE keyword), this is not supported with Jet. 2 years ago
NorthwindSetOperationsQueryJetTest.cs Set CanExecuteQueryString to false. When running tests, if it is set to true, the Query Asserter will also try to create a query string from the IQueryable. While most cases are fine, the problem comes in when there are parameters. Creating the query string declares the parameters and values at the beginning of the query and the DbCommand is set up with no parameters. While this can work in Sql Server (see the DECLARE keyword), this is not supported with Jet. 2 years ago
NorthwindWhereQueryJetTest.cs Set CanExecuteQueryString to false. When running tests, if it is set to true, the Query Asserter will also try to create a query string from the IQueryable. While most cases are fine, the problem comes in when there are parameters. Creating the query string declares the parameters and values at the beginning of the query and the DbCommand is set up with no parameters. While this can work in Sql Server (see the DECLARE keyword), this is not supported with Jet. 2 years ago
NullKeysJetTest.cs
NullSemanticsQueryJetFixture.cs
NullSemanticsQueryJetTest.cs Add option to use the normal short text type when mapping against an unbounded System.String instead of long text/memo. Jet has limitations when using memo (e.g. joins are not supported) 3 years ago
OwnedQueryJetTest.cs Add option to use the normal short text type when mapping against an unbounded System.String instead of long text/memo. Jet has limitations when using memo (e.g. joins are not supported) 3 years ago
QueryBugsTest.cs Update tests 3 years ago
QueryFilterFuncletizationJetTest.cs
QueryLoggingJetTest.cs
QueryNoClientEvalJetTest.cs
SqlExecutorJetTest.cs
UdfDbFunctionJetTests.cs
WarningsJetTest.cs