Skip to content

Commit 5d6dc5d

Browse files
committed
Adding builder.TranslateParameterizedCollectionsToConstants();
1 parent ef489df commit 5d6dc5d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

eFormAPI/Plugins/BackendConfiguration.Pn/BackendConfiguration.Pn/EformBackendConfigurationPlugin.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,7 @@ public void ConfigureDbContext(IServiceCollection services, string connectionStr
619619
{
620620
builder.EnableRetryOnFailure();
621621
builder.MigrationsAssembly(PluginAssembly().FullName);
622+
builder.TranslateParameterizedCollectionsToConstants();
622623
}));
623624

624625
services.AddDbContext<ItemsPlanningPnDbContext>(o =>
@@ -627,6 +628,7 @@ public void ConfigureDbContext(IServiceCollection services, string connectionStr
627628
{
628629
builder.EnableRetryOnFailure();
629630
builder.MigrationsAssembly(PluginAssembly().FullName);
631+
builder.TranslateParameterizedCollectionsToConstants();
630632
}));
631633

632634
services.AddDbContext<TimePlanningPnDbContext>(o =>
@@ -635,6 +637,7 @@ public void ConfigureDbContext(IServiceCollection services, string connectionStr
635637
{
636638
builder.EnableRetryOnFailure();
637639
builder.MigrationsAssembly(PluginAssembly().FullName);
640+
builder.TranslateParameterizedCollectionsToConstants();
638641
}));
639642

640643
services.AddDbContext<ChemicalsDbContext>(o =>
@@ -643,6 +646,7 @@ public void ConfigureDbContext(IServiceCollection services, string connectionStr
643646
{
644647
builder.EnableRetryOnFailure();
645648
builder.MigrationsAssembly(PluginAssembly().FullName);
649+
builder.TranslateParameterizedCollectionsToConstants();
646650
}));
647651

648652
services.AddDbContext<CaseTemplatePnDbContext>(o =>
@@ -651,6 +655,7 @@ public void ConfigureDbContext(IServiceCollection services, string connectionStr
651655
{
652656
builder.EnableRetryOnFailure();
653657
builder.MigrationsAssembly(PluginAssembly().FullName);
658+
builder.TranslateParameterizedCollectionsToConstants();
654659
}));
655660

656661
services.AddDbContext<BaseDbContext>(
@@ -659,6 +664,7 @@ public void ConfigureDbContext(IServiceCollection services, string connectionStr
659664
{
660665
builder.EnableRetryOnFailure();
661666
builder.MigrationsAssembly(PluginAssembly().FullName);
667+
builder.TranslateParameterizedCollectionsToConstants();
662668
}));
663669

664670
var chemicalsContextFactory = new ChemicalsContextFactory();

0 commit comments

Comments
 (0)