SqlJobExtension.SqlJob.GetUndoSqlScriptIfFound C# (CSharp) Méthode

GetUndoSqlScriptIfFound() private méthode

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

            return "";
        }