Beispiel #1
0
 public DataStoreOptions(HostConfigurationSection config)
 {
     DeleteDatabaseOnStartup = config.Keyword <bool>(Keys.DATABASE__DELETE_ON_STARTUP);
     CreateDatabaseOnStartup = config.Keyword <bool>(Keys.DATABASE__CREATE_ON_STARTUP);
     DatabaseFile            = config.Keyword(Keys.DATABASE__FILE);
     SchemaFile = config.Keyword(Keys.DATABASE__SCHEMA);
 }
Beispiel #2
0
 public DataStore(string databaseFile, string schemaFile, HostConfigurationSection config)
     : this(new DataStoreOptions(databaseFile, schemaFile, config))
 {
 }