/// <summary> /// Initializes the data store. /// </summary> public static Db4oDataStore InitializeDataStore(string dataStoreName, IConfiguration db4oConfiguration) { Db4oDataStore store = null; using (LogGroup logGroup = LogGroup.StartDebug("Initializing data store: " + dataStoreName)) { if (!Config.IsInitialized) throw new InvalidOperationException("The application config file is not present. Run the setup process and try again."); LogWriter.Debug("Creating new data store: " + dataStoreName); // Create a new data store store = new Db4oDataStore(db4oConfiguration); store.Name = dataStoreName; store.Open(); } return store; }
/// <summary> /// Sets the data provider and data store of the adapter. /// </summary> /// <param name="provider">The data provider of adapter.</param> /// <param name="store">The data store to tie the adapter to, or [null] to automatically select store.</param> public Db4oDataExporter(Db4oDataProvider provider, Db4oDataStore store) { Initialize(provider, store); }
/// <summary> /// Sets the data provider and data store of the adapter. /// </summary> /// <param name="provider">The data provider of adapter.</param> /// <param name="store">The data store to tie the adapter to, or [null] to automatically select store.</param> public Db4oDataReferencer(Db4oDataProvider provider, Db4oDataStore store) { Initialize(provider, store); }
/// <summary> /// Sets the data provider and data store of the adapter. /// </summary> /// <param name="provider">The data provider of adapter.</param> /// <param name="store">The data store to tie the adapter to, or [null] to automatically select store.</param> public Db4oDataActivator(Db4oDataProvider provider, Db4oDataStore store) { Initialize(provider, store); }
/// <summary> /// Sets the data provider and data store of the adapter. /// </summary> /// <param name="provider">The data provider of adapter.</param> /// <param name="store">The data store to tie the adapter to, or [null] to automatically select store.</param> public Db4oDataSchema(Db4oDataProvider provider, Db4oDataStore store) { Initialize(provider, store); }