Ejemplo n.º 1
0
 public static DatabaseFactory Config(Action<DatabaseFactoryConfig> optionsAction)
 {
     var options = new DatabaseFactoryConfigOptions();
     var databaseFactoryConfig = new DatabaseFactoryConfig(options);
     optionsAction(databaseFactoryConfig);
     var dbFactory = new DatabaseFactory(options);
     return dbFactory;
 }
Ejemplo n.º 2
0
        public static DatabaseFactory Config(Action <DatabaseFactoryConfig> optionsAction)
        {
            var options = new DatabaseFactoryConfigOptions();
            var databaseFactoryConfig = new DatabaseFactoryConfig(options);

            optionsAction(databaseFactoryConfig);
            var dbFactory = new DatabaseFactory(options);

            return(dbFactory);
        }