using System; using System.Collections.Generic; using System.Data.Entity; using System.Data.Entity.Infrastructure; using System.IO; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using Tango.Core.Helpers; namespace Tango.BL { //public class ObservablesContextConfiguration : DbConfiguration //{ // public static String FolderPath { get; private set; } // static ObservablesContextConfiguration() // { // FolderPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Twine", "Tango", "EFCache", Path.GetFileNameWithoutExtension(AppDomain.CurrentDomain.FriendlyName)); // } // public ObservablesContextConfiguration() : base() // { // Directory.CreateDirectory(FolderPath); // var modelStore = new DefaultDbModelStore(FolderPath); // SetModelStore(modelStore); // } // public static void ClearModelStore() // { // try // { // Directory.Delete(FolderPath); // } // catch { } // } //} }