AzurePoolCrossDbGenerator/SearchAndReplace.cs
/// <summary>
/// Save the file and DB name for SQLCMD generation
/// </summary>
/// <param name="sqlFileName"></param>
/// <param name="dbName"></param>
/// <param name="sqlFiles"></param>
/// <param name="sqlDBs"></param>
Save the file and DB name for SQLCMD generation
Save the file and DB name for SQLCMD generation
static void AddToBatFileList(string sqlFileName, string dbName, bool CommentOut, List<string> sqlFiles, List<string> sqlDBs, List<bool> sqlFileCommentOut)
        {
            if (!sqlFiles.Contains(sqlFileName))
            {
                sqlFiles.Add(sqlFileName);
                sqlDBs.Add(dbName.ToLower());
                sqlFileCommentOut.Add(CommentOut);
            }
        }
static void AddToBatFileList ( string sqlFileName , string dbName , bool CommentOut , List < string > sqlFiles , List < string > sqlDBs , List < bool > sqlFileCommentOut ) { if ( ! sqlFiles . Contains ( sqlFileName ) ) { sqlFiles . Add ( sqlFileName ) ; sqlDBs . Add ( dbName . ToLower ( ) ) ; sqlFileCommentOut . Add ( CommentOut ) ; } }
Save the file and DB name for SQLCMD generation
Save the file and DB name for SQLCMD generation
// save the file name for .bat generation
sqlFileName
string
None
dbName
string
None
CommentOut
bool
sqlFiles
List<string>
None
sqlDBs
List<string>
None
sqlFileCommentOut
List<bool>