Skip to content

Instantly share code, notes, and snippets.

@codehaks
Created September 3, 2021 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codehaks/ab006ca61de5231f8ca3f1ef2d12ed7b to your computer and use it in GitHub Desktop.
Save codehaks/ab006ca61de5231f8ca3f1ef2d12ed7b to your computer and use it in GitHub Desktop.
Marten Option
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