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); }
public DatabaseFactoryConfig(DatabaseFactoryConfigOptions options) { _options = options; }
public DatabaseFactoryConfig Config() { _options = new DatabaseFactoryConfigOptions(); return(new DatabaseFactoryConfig(_options)); }