internal static void RemoveBoundedContextData(string pathRoot)
        {
            var generalBaseDir = Path.Combine(pathRoot, SharedConstants.General);

            BaseDomainServices.RemoveBoundedContextDataCore(generalBaseDir);
            var oldLintPathname = Path.Combine(generalBaseDir, "FLExProject.lint");

            if (File.Exists(oldLintPathname + ".ChorusNotes"))
            {
                File.Delete(oldLintPathname + ".ChorusNotes");
            }
        }
        internal static void RemoveBoundedContextData(string pathRoot)
        {
            var linguisticsBaseDir = Path.Combine(pathRoot, SharedConstants.Linguistics);

            BaseDomainServices.RemoveBoundedContextDataCore(linguisticsBaseDir);

            // Remove ChorusNotes files for old lexicon file and old WFI file.
            // Lexicon.lexdb
            var lexiconDir       = Path.Combine(linguisticsBaseDir, SharedConstants.Lexicon);
            var oldNotesPathname = Path.Combine(lexiconDir, "Lexicon.lexdb.ChorusNotes");

            if (File.Exists(oldNotesPathname))
            {
                File.Delete(oldNotesPathname);
            }
            // WordformInventory.inventory
            var inventoryDir = Path.Combine(linguisticsBaseDir, SharedConstants.WordformInventoryRootFolder);

            oldNotesPathname = Path.Combine(inventoryDir, "WordformInventory.inventoryChorusNotes");
            if (File.Exists(oldNotesPathname))
            {
                File.Delete(oldNotesPathname);
            }
        }
Esempio n. 3
0
 internal static void RemoveBoundedContextData(string pathRoot)
 {
     BaseDomainServices.RemoveBoundedContextDataCore(Path.Combine(pathRoot, SharedConstants.Other));
 }