private void InitDataAdapter() { string configPath = ReturnConfigPath(); var drive = new DriveInfo(_driverLetter); if (drive.IsReady) { if (!Directory.Exists(configPath)) { Directory.CreateDirectory(configPath); } DataAdapter = new JsonFileDataAdapter(configPath); } else { DataAdapter = new EmptyDataAdapter(); } }
public MemoryContextHandler() { DataAdapter = new EmptyDataAdapter(); }