示例#1
0
        public MartenApp()
        {
            AlterSettings <StoreOptions>(_ =>
            {
                _.Connection(ConnectionSource.GetConnectionString());
                _.AutoCreateSchemaObjects = AutoCreate.All;
            });

            //Policies.Local.Add<TransactionalBehaviorPolicy>();
        }
示例#2
0
 public void set_up_connection_string()
 {
     ConnectionSource.SetConnectionString("Host=localhost;Username=postgres;Password=jasper;Database=marten_test");
 }