Ejemplo n.º 1
0
        public void ProcessWords(string FilePath, string DocumentHash)
        {
            string FolderPath = DocumentFile.GetFileNameFromPath(FilePath);
            string FileName   = DocumentFile.GetFolderFromPath(FilePath);

            // add words
            string[] Words = DocumentFile.ExtractDocumentWords(FolderPath, FileName);
            {
                foreach (string Word in Words)
                {
                    DocumentWord dw = new DocumentWord()
                    {
                        DocumentHash = DocumentHash,
                        Word         = Word,
                        FilePath     = FilePath
                    };

                    AppContext.DocumentWords.Add(dw);
                }
            }
        }