Ejemplo n.º 1
0
        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();
            }
        }
Ejemplo n.º 2
0
 public MemoryContextHandler()
 {
     DataAdapter = new EmptyDataAdapter();
 }