Esempio 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);
        }
Esempio n. 2
0
 public DatabaseFactoryConfig(DatabaseFactoryConfigOptions options)
 {
     _options = options;
 }
Esempio n. 3
0
 public DatabaseFactoryConfig Config()
 {
     _options = new DatabaseFactoryConfigOptions();
     return(new DatabaseFactoryConfig(_options));
 }