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