-
-
Notifications
You must be signed in to change notification settings - Fork 506
Open
Description
The StoreOptions sample creates a StoreOptions
object but doesn't appear to pass that on to Marten.
marten/src/AspNetCoreWithMarten/Samples/ByStoreOptions/Startup.cs
Lines 25 to 41 in 669d665
#region sample_AddMartenByStoreOptions | |
var connectionString = Configuration.GetConnectionString("postgres"); | |
// Build a StoreOptions object yourself | |
var options = new StoreOptions(); | |
options.Connection(connectionString); | |
// In a "Production" environment, we're turning off the | |
// automatic database migrations and dynamic code generation | |
services.CritterStackDefaults(x => | |
{ | |
x.Production.GeneratedCodeMode = TypeLoadMode.Static; | |
x.Production.ResourceAutoCreate = AutoCreate.None; | |
}); | |
#endregion | |
} |
Should there be a call to services.AddMarten(options)
?
Metadata
Metadata
Assignees
Labels
No labels