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