AzurePoolCrossDbGenerator/Generators.cs
/// <summary>
/// Get the mask for output file name depending on the value of paramRunOn
/// </summary>
/// <param name="paramRunOn"></param>
/// <returns></returns>
Get the mask for output file name depending on the value of paramRunOn
Get the mask for output file name depending on the value of paramRunOn
static string GetOutputFileNameMask(string paramRunOn)
        {
            switch (paramRunOn)
            {
                case "master":
                    {
                        return Program.FileNames.OutputFileNameMaskRunOnMaster;
                    }
                case "mirror":
                    {
                        return Program.FileNames.OutputFileNameMaskRunOnMirror;
                    }
            }
            Program.WriteLine();
            Program.WriteLine($"Missing parameter -o [master | mirror] to tell SqlCmd which db to run the script on.", ConsoleColor.Red);
            Program.ExitApp();
            return null; 
        }
static string GetOutputFileNameMask ( string paramRunOn ) { switch ( paramRunOn ) { case " " : { return Program . FileNames . OutputFileNameMaskRunOnMaster ; } case " " : { return Program . FileNames . OutputFileNameMaskRunOnMirror ; } } Program . WriteLine ( ) ; Program . WriteLine ( $" Missing parameter -o [master | mirror] to tell SqlCmd which db to run the script on. " , ConsoleColor . Red ) ; Program . ExitApp ( ) ; return null ; }
Get the mask for output file name depending on the value of paramRunOn
Get the mask for output file name depending on the value of paramRunOn
// this is really redundant, but keeps the lint happy
None
paramRunOn
string
None