Skip to content

Commit

Permalink
Merge pull request #54 from Lombiq/issue/OCORE-191
Browse files Browse the repository at this point in the history
OCORE-191: Adding new Schema setup property
  • Loading branch information
Piedone authored Jul 14, 2024
2 parents 3e9e5bf + e5830dd commit 8880ee9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion Lombiq.OrchardCoreApiClient.Tester/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ await apiClient.CreateAndSetupTenantAsync(
Name = name,
DatabaseProvider = "Sqlite",
ConnectionString = string.Empty,
RecipeName = "Blog",
UserName = "admin",
Email = "admin@example.com",
Password = "Password1!",
Expand Down
3 changes: 2 additions & 1 deletion Lombiq.OrchardCoreApiClient/ApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ public async Task CreateAndSetupTenantAsync(

try
{
await OrchardCoreApi.SetupAsync(setupApiViewModel).ConfigureAwait(false);
using var response = await OrchardCoreApi.SetupAsync(setupApiViewModel).ConfigureAwait(false);
await response.EnsureSuccessStatusCodeAsync();
}
catch (ApiException ex)
{
Expand Down
1 change: 1 addition & 0 deletions Lombiq.OrchardCoreApiClient/Models/TenantSetupApiModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public class TenantSetupApiModel
public string DatabaseProvider { get; set; }
public string ConnectionString { get; set; }
public string TablePrefix { get; set; }
public string Schema { get; set; }

[Required]
public string UserName { get; set; }
Expand Down

0 comments on commit 8880ee9

Please sign in to comment.