Example #1
0
        internal static EngineSetup ConfigureDbProvider(this EngineSetup setup, FfdbConfig config)
        {
            if (config.PostgreSql != null)
            {
                setup.UsePostgreSql(config.PostgreSql);
            }
            else if (config.Mongo != null)
            {
                setup.UseMongo(config.Mongo);
            }

            return(setup);
        }
Example #2
0
        private static FfdbEngine GetConfiguredPostgresEngine()
        {
            var setup = new EngineSetup();

            setup.UsePostgreSql(new PostgresConfig
            {
                DatabaseName = "ffdb_test_5",
                Host         = "localhost",
                Username     = "******",
                Password     = "******"
            });

            return(GetConfiguredEngine(setup));
        }