diff --git a/src/EFCore.Sqlite.NTS/Query/Internal/SqliteNetTopologySuiteAggregateMethodTranslator.cs b/src/EFCore.Sqlite.NTS/Query/Internal/SqliteNetTopologySuiteAggregateMethodTranslator.cs index 773fe7cc396..598ac741138 100644 --- a/src/EFCore.Sqlite.NTS/Query/Internal/SqliteNetTopologySuiteAggregateMethodTranslator.cs +++ b/src/EFCore.Sqlite.NTS/Query/Internal/SqliteNetTopologySuiteAggregateMethodTranslator.cs @@ -95,9 +95,6 @@ public SqliteNetTopologySuiteAggregateMethodTranslator( }, nullable: true, argumentsPropagateNullability: new[] { true }, - typeof(Geometry), - sqlExpression.TypeMapping is null - ? null - : _typeMappingSource.FindMapping(typeof(Geometry), sqlExpression.TypeMapping.StoreType)); + typeof(Geometry)); } } diff --git a/test/EFCore.Sqlite.FunctionalTests/Query/SpatialQuerySqliteTest.cs b/test/EFCore.Sqlite.FunctionalTests/Query/SpatialQuerySqliteTest.cs index 48447ee3317..98a8031b51a 100644 --- a/test/EFCore.Sqlite.FunctionalTests/Query/SpatialQuerySqliteTest.cs +++ b/test/EFCore.Sqlite.FunctionalTests/Query/SpatialQuerySqliteTest.cs @@ -193,7 +193,7 @@ public override async Task ConvexHull_aggregate(bool async) await base.ConvexHull_aggregate(async); AssertSql( - @"SELECT ""p"".""Group"" AS ""Id"", ST_ConvexHull(Collect(""p"".""Point"")) AS ""ConvexHull"" + @"SELECT ""p"".""Group"" AS ""Id"", ConvexHull(Collect(""p"".""Point"")) AS ""ConvexHull"" FROM ""PointEntity"" AS ""p"" WHERE ""p"".""Point"" IS NOT NULL GROUP BY ""p"".""Group""");