AzurePoolCrossDbGenerator/Generators.cs
/// <summary>
/// Saves the contents in outputFileName in the working directory with overwrite
/// </summary>
/// <param name="outputContents"></param>
/// <param name="outputFileName"></param>
Saves the contents in outputFileName in the working directory with overwrite
Saves the contents in outputFileName in the working directory with overwrite
static void SaveExtractedScript(string outputContents, string outputFileName)
        {
            string path = Path.Combine(Directory.GetCurrentDirectory(), outputFileName);
            Program.WriteLine($"Saving to {outputFileName}");
            try
            {
                File.WriteAllText(path, outputContents, System.Text.Encoding.UTF8);
            }
            catch (Exception ex)
            {
                Program.WriteLine(ex.Message);
            }
        }
static void SaveExtractedScript ( string outputContents , string outputFileName ) { string path = Path . Combine ( Directory . GetCurrentDirectory ( ) , outputFileName ) ; Program . WriteLine ( $" Saving to  { outputFileName } " ) ; try { File . WriteAllText ( path , outputContents , System . Text . Encoding . UTF8 ) ; } catch ( Exception ex ) { Program . WriteLine ( ex . Message ) ; } }
Saves the contents in outputFileName in the working directory with overwrite
Saves the contents in outputFileName in the working directory with overwrite
outputContents
string
None
outputFileName
string
None