Exemple #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;
 }
Exemple #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);
        }
Exemple #3
0
 public DatabaseFactoryConfig(DatabaseFactoryConfigOptions options)
 {
     _options = options;
 }
Exemple #4
0
 public DatabaseFactoryConfig Config()
 {
     _options = new DatabaseFactoryConfigOptions();
     return new DatabaseFactoryConfig(_options);
 }
Exemple #5
0
 public DatabaseFactoryConfig(DatabaseFactoryConfigOptions options)
 {
     _options = options;
 }
Exemple #6
0
 public DatabaseFactoryConfig Config()
 {
     _options = new DatabaseFactoryConfigOptions();
     return(new DatabaseFactoryConfig(_options));
 }
 public DatabaseFactory(DatabaseFactoryConfigOptions options)
 {
     this._options = options;
 }