Skip to content

Commit

Permalink
React to some obsoletions and renames in Npgsql
Browse files Browse the repository at this point in the history
  • Loading branch information
roji committed Nov 20, 2023
1 parent 9bbb19d commit 4738bab
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
9 changes: 9 additions & 0 deletions test/EFCore.PG.FunctionalTests/BuiltInDataTypesNpgsqlTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,11 @@ public virtual void Can_query_using_any_mapped_data_type()
PhysicalAddressArrayAsMacaddrArray =
new[] { PhysicalAddress.Parse("08-00-2B-01-02-03"), PhysicalAddress.Parse("08-00-2B-01-02-04") },
UintAsXid = (uint)int.MaxValue + 1,

#pragma warning disable CS0618 // Full-text search client-parsing is obsolete
SearchQuery = NpgsqlTsQuery.Parse("a & b"),
SearchVector = NpgsqlTsVector.Parse("a b"),
#pragma warning restore CS0618
RankingNormalization = NpgsqlTsRankingNormalization.DivideByLength,
Regconfig = 12724,
Mood = Mood.Sad
Expand Down Expand Up @@ -264,11 +267,13 @@ public virtual void Can_query_using_any_mapped_data_type()
var param37 = (uint)int.MaxValue + 1;
Assert.Same(entity, context.Set<MappedNullableDataTypes>().Single(e => e.Int == 999 && e.UintAsXid == param37));

#pragma warning disable CS0618 // Full-text search client-parsing is obsolete
var param38 = NpgsqlTsQuery.Parse("a & b");
Assert.Same(entity, context.Set<MappedNullableDataTypes>().Single(e => e.Int == 999 && e.SearchQuery == param38));

var param39 = NpgsqlTsVector.Parse("a b");
Assert.Same(entity, context.Set<MappedNullableDataTypes>().Single(e => e.Int == 999 && e.SearchVector == param39));
#pragma warning restore CS0618

// ReSharper disable once ConvertToConstant.Local
var param40 = NpgsqlTsRankingNormalization.DivideByLength;
Expand Down Expand Up @@ -571,8 +576,10 @@ private static void AssertMappedDataTypes(MappedDataTypes entity, int id)

Assert.Equal((uint)int.MaxValue + 1, entity.UintAsXid);

#pragma warning disable CS0618 // Full-text search client-parsing is obsolete
Assert.Equal(NpgsqlTsQuery.Parse("a & b").ToString(), entity.SearchQuery.ToString());
Assert.Equal(NpgsqlTsVector.Parse("a b").ToString(), entity.SearchVector.ToString());
#pragma warning restore CS0618
Assert.Equal(NpgsqlTsRankingNormalization.DivideByLength, entity.RankingNormalization);
}

Expand Down Expand Up @@ -620,8 +627,10 @@ private static MappedDataTypes CreateMappedDataTypes(int id)
PhysicalAddressArrayAsMacaddrArray =
new[] { PhysicalAddress.Parse("08-00-2B-01-02-03"), PhysicalAddress.Parse("08-00-2B-01-02-04") },
UintAsXid = (uint)int.MaxValue + 1,
#pragma warning disable CS0618 // Full-text search client-parsing is obsolete
SearchQuery = NpgsqlTsQuery.Parse("a & b"),
SearchVector = NpgsqlTsVector.Parse("a b"),
#pragma warning restore CS0618
RankingNormalization = NpgsqlTsRankingNormalization.DivideByLength,
Regconfig = 12724,
Mood = Mood.Sad
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

namespace Npgsql.EntityFrameworkCore.PostgreSQL.Query;

#pragma warning disable CS0618 // NpgsqlTsVector.Parse is obsolete

public class FullTextSearchDbFunctionsNpgsqlTest : IClassFixture<NorthwindQueryNpgsqlFixture<NoopModelCustomizer>>
{
protected NorthwindQueryNpgsqlFixture<NoopModelCustomizer> Fixture { get; }
Expand Down
2 changes: 1 addition & 1 deletion test/EFCore.PG.FunctionalTests/Query/JsonPocoQueryTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ static JsonPocoQueryFixture()
{
// TODO: Switch to using NpgsqlDataSource
#pragma warning disable CS0618 // Type or member is obsolete
NpgsqlConnection.GlobalTypeMapper.EnableDynamicJsonMappings();
NpgsqlConnection.GlobalTypeMapper.EnableDynamicJson();

Check failure on line 856 in test/EFCore.PG.FunctionalTests/Query/JsonPocoQueryTest.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 11, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 856 in test/EFCore.PG.FunctionalTests/Query/JsonPocoQueryTest.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 11, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 856 in test/EFCore.PG.FunctionalTests/Query/JsonPocoQueryTest.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 12, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 856 in test/EFCore.PG.FunctionalTests/Query/JsonPocoQueryTest.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 12, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 856 in test/EFCore.PG.FunctionalTests/Query/JsonPocoQueryTest.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 856 in test/EFCore.PG.FunctionalTests/Query/JsonPocoQueryTest.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 856 in test/EFCore.PG.FunctionalTests/Query/JsonPocoQueryTest.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 14, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 856 in test/EFCore.PG.FunctionalTests/Query/JsonPocoQueryTest.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 14, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 856 in test/EFCore.PG.FunctionalTests/Query/JsonPocoQueryTest.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 13, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 856 in test/EFCore.PG.FunctionalTests/Query/JsonPocoQueryTest.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 13, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 856 in test/EFCore.PG.FunctionalTests/Query/JsonPocoQueryTest.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 16, Debug)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 856 in test/EFCore.PG.FunctionalTests/Query/JsonPocoQueryTest.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 16, Debug)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 856 in test/EFCore.PG.FunctionalTests/Query/JsonPocoQueryTest.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 15, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 856 in test/EFCore.PG.FunctionalTests/Query/JsonPocoQueryTest.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 15, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 856 in test/EFCore.PG.FunctionalTests/Query/JsonPocoQueryTest.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 16, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 856 in test/EFCore.PG.FunctionalTests/Query/JsonPocoQueryTest.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 16, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 856 in test/EFCore.PG.FunctionalTests/Query/JsonPocoQueryTest.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022, 13, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 856 in test/EFCore.PG.FunctionalTests/Query/JsonPocoQueryTest.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022, 13, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 856 in test/EFCore.PG.FunctionalTests/Query/JsonPocoQueryTest.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022, 14, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 856 in test/EFCore.PG.FunctionalTests/Query/JsonPocoQueryTest.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022, 14, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 856 in test/EFCore.PG.FunctionalTests/Query/JsonPocoQueryTest.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022, 16, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 856 in test/EFCore.PG.FunctionalTests/Query/JsonPocoQueryTest.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022, 16, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 856 in test/EFCore.PG.FunctionalTests/Query/JsonPocoQueryTest.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022, 12, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 856 in test/EFCore.PG.FunctionalTests/Query/JsonPocoQueryTest.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022, 12, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 856 in test/EFCore.PG.FunctionalTests/Query/JsonPocoQueryTest.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022, 15, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 856 in test/EFCore.PG.FunctionalTests/Query/JsonPocoQueryTest.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022, 15, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 856 in test/EFCore.PG.FunctionalTests/Query/JsonPocoQueryTest.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022, 11, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 856 in test/EFCore.PG.FunctionalTests/Query/JsonPocoQueryTest.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022, 11, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)
#pragma warning restore CS0618 // Type or member is obsolete
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ static NpgsqlNorthwindTestStoreFactory()
{
// TODO: Switch to using NpgsqlDataSource
#pragma warning disable CS0618 // Type or member is obsolete
NpgsqlConnection.GlobalTypeMapper.EnableDynamicJsonMappings();
NpgsqlConnection.GlobalTypeMapper.EnableDynamicJson();

Check failure on line 13 in test/EFCore.PG.FunctionalTests/TestUtilities/NpgsqlNorthwindTestStoreFactory.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 11, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 13 in test/EFCore.PG.FunctionalTests/TestUtilities/NpgsqlNorthwindTestStoreFactory.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 11, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 13 in test/EFCore.PG.FunctionalTests/TestUtilities/NpgsqlNorthwindTestStoreFactory.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 12, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 13 in test/EFCore.PG.FunctionalTests/TestUtilities/NpgsqlNorthwindTestStoreFactory.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 12, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 13 in test/EFCore.PG.FunctionalTests/TestUtilities/NpgsqlNorthwindTestStoreFactory.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 13 in test/EFCore.PG.FunctionalTests/TestUtilities/NpgsqlNorthwindTestStoreFactory.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 13 in test/EFCore.PG.FunctionalTests/TestUtilities/NpgsqlNorthwindTestStoreFactory.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 14, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 13 in test/EFCore.PG.FunctionalTests/TestUtilities/NpgsqlNorthwindTestStoreFactory.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 14, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 13 in test/EFCore.PG.FunctionalTests/TestUtilities/NpgsqlNorthwindTestStoreFactory.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 13, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 13 in test/EFCore.PG.FunctionalTests/TestUtilities/NpgsqlNorthwindTestStoreFactory.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 13, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 13 in test/EFCore.PG.FunctionalTests/TestUtilities/NpgsqlNorthwindTestStoreFactory.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 16, Debug)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 13 in test/EFCore.PG.FunctionalTests/TestUtilities/NpgsqlNorthwindTestStoreFactory.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 16, Debug)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 13 in test/EFCore.PG.FunctionalTests/TestUtilities/NpgsqlNorthwindTestStoreFactory.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 15, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 13 in test/EFCore.PG.FunctionalTests/TestUtilities/NpgsqlNorthwindTestStoreFactory.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 15, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 13 in test/EFCore.PG.FunctionalTests/TestUtilities/NpgsqlNorthwindTestStoreFactory.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 16, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 13 in test/EFCore.PG.FunctionalTests/TestUtilities/NpgsqlNorthwindTestStoreFactory.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 16, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 13 in test/EFCore.PG.FunctionalTests/TestUtilities/NpgsqlNorthwindTestStoreFactory.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022, 13, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 13 in test/EFCore.PG.FunctionalTests/TestUtilities/NpgsqlNorthwindTestStoreFactory.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022, 13, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 13 in test/EFCore.PG.FunctionalTests/TestUtilities/NpgsqlNorthwindTestStoreFactory.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022, 14, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 13 in test/EFCore.PG.FunctionalTests/TestUtilities/NpgsqlNorthwindTestStoreFactory.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022, 14, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 13 in test/EFCore.PG.FunctionalTests/TestUtilities/NpgsqlNorthwindTestStoreFactory.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022, 16, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 13 in test/EFCore.PG.FunctionalTests/TestUtilities/NpgsqlNorthwindTestStoreFactory.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022, 16, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 13 in test/EFCore.PG.FunctionalTests/TestUtilities/NpgsqlNorthwindTestStoreFactory.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022, 12, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 13 in test/EFCore.PG.FunctionalTests/TestUtilities/NpgsqlNorthwindTestStoreFactory.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022, 12, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 13 in test/EFCore.PG.FunctionalTests/TestUtilities/NpgsqlNorthwindTestStoreFactory.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022, 15, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 13 in test/EFCore.PG.FunctionalTests/TestUtilities/NpgsqlNorthwindTestStoreFactory.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022, 15, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 13 in test/EFCore.PG.FunctionalTests/TestUtilities/NpgsqlNorthwindTestStoreFactory.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022, 11, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 13 in test/EFCore.PG.FunctionalTests/TestUtilities/NpgsqlNorthwindTestStoreFactory.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022, 11, Release)

'INpgsqlTypeMapper' does not contain a definition for 'EnableDynamicJson' and no accessible extension method 'EnableDynamicJson' accepting a first argument of type 'INpgsqlTypeMapper' could be found (are you missing a using directive or an assembly reference?)
NpgsqlConnection.GlobalTypeMapper.EnableRecordsAsTuples();
#pragma warning restore CS0618 // Type or member is obsolete
}
Expand Down
2 changes: 2 additions & 0 deletions test/EFCore.PG.Tests/Storage/NpgsqlTypeMappingTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,7 @@ public void GenerateCodeLiteral_returns_multirange_empty_array_literal()

#region Full text search

#pragma warning disable CS0618 // Full-text search client-parsing is obsolete
[Fact]
public void GenerateSqlLiteral_returns_tsquery_literal()
=> Assert.Equal(
Expand All @@ -824,6 +825,7 @@ public void GenerateSqlLiteral_returns_tsvector_literal()
=> Assert.Equal(
@"TSVECTOR '''a'' ''b'''",
GetMapping("tsvector").GenerateSqlLiteral(NpgsqlTsVector.Parse("a b")));
#pragma warning restore CS0618

[Fact]
public void GenerateSqlLiteral_returns_ranking_normalization_literal()
Expand Down

0 comments on commit 4738bab

Please sign in to comment.