diff --git a/src/Sitko.Core.Db.Postgres/PostgresDatabaseModule.cs b/src/Sitko.Core.Db.Postgres/PostgresDatabaseModule.cs index 91214bc04..c75653f55 100644 --- a/src/Sitko.Core.Db.Postgres/PostgresDatabaseModule.cs +++ b/src/Sitko.Core.Db.Postgres/PostgresDatabaseModule.cs @@ -86,7 +86,7 @@ private void ConfigureNpgsql(DbContextOptionsBuilder options, var dataSourceBuilder = new NpgsqlDataSourceBuilder(config.CreateBuilder().ConnectionString); if (config.EnableJsonConversion) { - dataSourceBuilder.EnableDynamicJsonMappings(); + dataSourceBuilder.EnableDynamicJson(); } var dataSource = dataSourceBuilder.Build(); diff --git a/src/Sitko.Core.Storage.Metadata.Postgres/PostgresStorageMetadataModule.cs b/src/Sitko.Core.Storage.Metadata.Postgres/PostgresStorageMetadataModule.cs index d406c9720..ba7cbf015 100644 --- a/src/Sitko.Core.Storage.Metadata.Postgres/PostgresStorageMetadataModule.cs +++ b/src/Sitko.Core.Storage.Metadata.Postgres/PostgresStorageMetadataModule.cs @@ -24,7 +24,7 @@ public override void ConfigureServices(IApplicationContext applicationContext, I var options = serviceProvider .GetRequiredService>>(); var dataSourceBuilder = new NpgsqlDataSourceBuilder(options.Value.GetConnectionString()); - dataSourceBuilder.EnableDynamicJsonMappings(); + dataSourceBuilder.EnableDynamicJson(); var dataSource = dataSourceBuilder.Build(); builder.UseNpgsql(dataSource, optionsBuilder => {