Skip to content

Commit

Permalink
fix(postgres): stable method name
Browse files Browse the repository at this point in the history
  • Loading branch information
SonicGD committed Jan 12, 2024
1 parent d123167 commit 7a09c36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Sitko.Core.Db.Postgres/PostgresDatabaseModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public override void ConfigureServices(IApplicationContext applicationContext, I
var options = serviceProvider
.GetRequiredService<IOptions<PostgresStorageMetadataModuleOptions<TStorageOptions>>>();
var dataSourceBuilder = new NpgsqlDataSourceBuilder(options.Value.GetConnectionString());
dataSourceBuilder.EnableDynamicJsonMappings();
dataSourceBuilder.EnableDynamicJson();
var dataSource = dataSourceBuilder.Build();
builder.UseNpgsql(dataSource, optionsBuilder =>
{
Expand Down

0 comments on commit 7a09c36

Please sign in to comment.