/// <summary> /// Initializes a new instance of the <see cref="DataStore" /> class. /// </summary> /// <param name="dataContextProvider">The <see cref="IDataContextProvider"/> used to provide the <see cref="DbContext"/> for various items.</param> /// <exception cref="System.Exception">Database does not exist.</exception> public DataStore(IDataContextProvider dataContextProvider) { _contextProvider = dataContextProvider; DataStorePath = string.Empty; _contextProvider.Initialize(); if (!dataContextProvider.VerifyContext()) { throw new Exception("Database does not exist."); } }