Example #1
0
        public EFDbConnect(ISQLitePlatform platform, string path,bool trace = false) : base(platform, path)
        {

            if (trace)
            {
                TraceListener = new DebugTraceListener_OutputWindow();
            }

            CreateTable<AppSetting>();
            CreateTable<LearningItem>();
            CreateTable<Statistics>();
            CreateTable<WordOfDictionary>();
            CreateTable<LearningWordStrategy>();
            CreateTable<FrequencyDictionary>();
            CreateTable<FrequencyDictionary.Item>();
            CreateTable<ProcessingWordsRules>();
            CreateTable<Dictionary>();
            CreateTable<Language>();
            CreateTable<Subtitles>();
            CreateTable<SubtitleItem>();
            CreateTable<WordOfSubtitleItem>();
            CreateTable<LanguageService>();
            CreateTable<LanguageService.LanguageOfService>();
            CreateTable<AudioTrack>();
            CreateTable<LearnedWord>();
            CreateTable<TranslationOfWord>();
            CreateTable<LearningWordStrategy.StrategyItem>();
            CreateTable<Statistics.StatisticsItem>();

            CreateSchema();

            Udpate();

            RemoveOldColumns();
        }
        public UTDbConnect(ISQLitePlatform platform, string path) : base(platform, path)
        {
            TraceListener = new DebugTraceListener_OutputWindow();

            CreateTable <User>();
            CreateTable <UserType>();
            CreateTable <UserRole>();

            CreateSchema();
        }