From 51c8083b48ff3d80cc0edef6132e1cd0059d67f1 Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Mon, 20 Oct 2025 22:34:46 +0200 Subject: [PATCH] Fix store type name base for JSON-nested scalar collections Fixes #3642 --- src/EFCore.PG/Storage/Internal/NpgsqlTypeMappingSource.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/EFCore.PG/Storage/Internal/NpgsqlTypeMappingSource.cs b/src/EFCore.PG/Storage/Internal/NpgsqlTypeMappingSource.cs index ca7140f19..c2d7adcb8 100644 --- a/src/EFCore.PG/Storage/Internal/NpgsqlTypeMappingSource.cs +++ b/src/EFCore.PG/Storage/Internal/NpgsqlTypeMappingSource.cs @@ -742,7 +742,8 @@ public NpgsqlTypeMappingSource( // In addition, at least in theory users may decide to map to JSON instead of array even outside JSON documents. case "jsonb" or "json" when modelClrType is not null: return base.FindCollectionMapping( - new RelationalTypeMappingInfo(modelClrType, (RelationalTypeMapping?)elementMapping, storeType), + new RelationalTypeMappingInfo( + modelClrType, (RelationalTypeMapping?)elementMapping, storeTypeName: storeType, storeTypeNameBase: storeType), modelClrType, providerClrType, elementMapping);