SqlJobExtension.SqlJob.GetUndoSqlScriptIfFound C# (CSharp) Method

GetUndoSqlScriptIfFound() private method

private GetUndoSqlScriptIfFound ( IEnumerable allResourceNames, string resourceName ) : string
allResourceNames IEnumerable
resourceName string
return string
        private string GetUndoSqlScriptIfFound(IEnumerable<string> allResourceNames, string resourceName)
        {
            var undoResourceName = allResourceNames.FirstOrDefault(rn => rn == resourceName + ".Undo");
            if (undoResourceName != null)
                return GetSqlScript(undoResourceName);

            return "";
        }