Skip to content

Commit fdca846

Browse files
authored
Fix store type name base for JSON-nested scalar collections (#3644)
Fixes #3642
1 parent 45e4cb1 commit fdca846

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/EFCore.PG/Storage/Internal/NpgsqlTypeMappingSource.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,8 @@ public NpgsqlTypeMappingSource(
742742
// In addition, at least in theory users may decide to map to JSON instead of array even outside JSON documents.
743743
case "jsonb" or "json" when modelClrType is not null:
744744
return base.FindCollectionMapping(
745-
new RelationalTypeMappingInfo(modelClrType, (RelationalTypeMapping?)elementMapping, storeType),
745+
new RelationalTypeMappingInfo(
746+
modelClrType, (RelationalTypeMapping?)elementMapping, storeTypeName: storeType, storeTypeNameBase: storeType),
746747
modelClrType,
747748
providerClrType,
748749
elementMapping);

0 commit comments

Comments
 (0)