Created
September 3, 2021 14:58
-
-
Save codehaks/ab006ca61de5231f8ca3f1ef2d12ed7b to your computer and use it in GitHub Desktop.
Marten Option
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private Marten.StoreOptions BuildStoreOptions() | |
{ | |
var connectionString = Configuration.GetConnectionString("Marten"); | |
var options = new Marten.StoreOptions(); | |
options.Connection(connectionString); | |
options.AutoCreateSchemaObjects = AutoCreate.CreateOrUpdate; | |
return options; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment