From b2615a564b5fc131ddb528697ae61f761a981d83 Mon Sep 17 00:00:00 2001 From: "Jeremy D. Miller" Date: Tue, 24 Sep 2024 15:52:57 -0500 Subject: [PATCH] Not requiring any validation of the connection string in the codegen commands. Closes GH-3421 --- src/AspNetCoreWithMarten/Program.cs | 2 +- src/Marten/StoreOptions.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AspNetCoreWithMarten/Program.cs b/src/AspNetCoreWithMarten/Program.cs index c5c8f6d464..a26482ca84 100644 --- a/src/AspNetCoreWithMarten/Program.cs +++ b/src/AspNetCoreWithMarten/Program.cs @@ -79,7 +79,7 @@ #endregion -await app.RunOaktonCommands(args); +return await app.RunOaktonCommands(args); record CreateUserRequest(string FirstName, string LastName, bool Internal); diff --git a/src/Marten/StoreOptions.cs b/src/Marten/StoreOptions.cs index 3509da0950..5b2ee9b425 100644 --- a/src/Marten/StoreOptions.cs +++ b/src/Marten/StoreOptions.cs @@ -686,7 +686,7 @@ internal void applyPostPolicies(DocumentMapping mapping) /// internal void Validate() { - if (Tenancy == null) + if (_tenancy == null) { throw new InvalidOperationException( "Tenancy not specified - provide either connection string or connection factory through Connection(..)");