private static void GenerateDtos() { IEnumerable <TableInfo> tables = DbHelper.GetTableInfos().Result; foreach (var table in tables) { CodeCompileUnit codeGraph = DtoBuilder.Build(table, "MyNamespace"); var srcPath = "./Dtos/" + table.Name + ".cs"; FileGenerator.CreateFile(codeGraph, srcPath); } }