示例#1
0
        private static IEnumerable <SqlInfo> GetSqlFiles(string folderPath)
        {
            Console.WriteLine(folderPath);
            var sqlFiles = FolderManager.GetFileList(folderPath, "sql");

            foreach (var sqlFile in sqlFiles)
            {
                FolderManager.TryReadFile(sqlFile, out var sqlFileContent);
                yield return(new SqlInfo
                {
                    Path = sqlFile,
                    Content = sqlFileContent
                });
            }
        }