public DataProvider Initialize() { Db4oDataProvider provider = new Db4oDataProvider(); using (LogGroup logGroup = LogGroup.Start("Initializing data provider", NLog.LogLevel.Info)) { provider.Initialize("Db4oDataProvider", null); DataAccess.Data = provider; // The versions and directories are set here by default but can be changed by each test to suit the situation. provider.Schema.LegacyVersion = new Version(0, 9, 0, 0); provider.Schema.ApplicationVersion = new Version(1, 0, 0, 0); provider.Exporter.ExportDirectoryPath = TestUtilities.GetTestingPath(ExecutingTestFixture) + Path.DirectorySeparatorChar + "Exported"; provider.Importer.ImportableDirectoryPath = TestUtilities.GetTestingPath(ExecutingTestFixture) + Path.DirectorySeparatorChar + "Exported"; provider.Importer.ImportedDirectoryPath = TestUtilities.GetTestingPath(ExecutingTestFixture) + Path.DirectorySeparatorChar + "Imported"; } return provider; }
public DataProvider Initialize() { Db4oDataProvider provider = new Db4oDataProvider(); using (LogGroup logGroup = LogGroup.Start("Initializing data provider", NLog.LogLevel.Info)) { provider.Initialize("Db4oDataProvider", null); DataAccess.Data = provider; // The versions and directories are set here by default but can be changed by each test to suit the situation. provider.Schema.LegacyVersion = new Version(0, 9, 0, 0); provider.Schema.ApplicationVersion = new Version(1, 0, 0, 0); provider.Exporter.ExportDirectoryPath = TestUtilities.GetTestingPath(ExecutingTestFixture) + Path.DirectorySeparatorChar + "Exported"; provider.Importer.ImportableDirectoryPath = TestUtilities.GetTestingPath(ExecutingTestFixture) + Path.DirectorySeparatorChar + "Exported"; provider.Importer.ImportedDirectoryPath = TestUtilities.GetTestingPath(ExecutingTestFixture) + Path.DirectorySeparatorChar + "Imported"; } return(provider); }
/// <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 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 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 Db4oDataSchema(Db4oDataProvider provider, Db4oDataStore store) { Initialize(provider, store); }