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(..)");