Skip to content

Commit 6c9ddf9

Browse files
committed
Addded schema name per test
1 parent 3fd95e1 commit 6c9ddf9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sample/Helpdesk/Helpdesk.Api/Program.cs

+6
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@
2626
.AddSwaggerGen()
2727
.AddMarten(options =>
2828
{
29+
var schemaName = Environment.GetEnvironmentVariable("SchemaName");
30+
if (!string.IsNullOrEmpty(schemaName))
31+
{
32+
options.Events.DatabaseSchemaName = schemaName;
33+
options.DatabaseSchemaName = schemaName;
34+
}
2935
options.Connection(builder.Configuration.GetConnectionString("Incidents"));
3036
options.UseDefaultSerialization(EnumStorage.AsString, nonPublicMembersStorage: NonPublicMembersStorage.All);
3137

0 commit comments

Comments
 (0)