Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ProcedureNameProvider : SqlObjectNameProvider
- {
- protected override string RegExPattern => @"((?!PROCEDURE).)*[\s]+PROCEDURE(\s*)(?<proc_name>[^\s]+)[\s]+";
- public override string GetNameFromSqlScript(string sqlObjectDefinition)
- {
- Match match = new Regex(RegExPattern, RegexOptions.IgnoreCase).Match(sqlObjectDefinition);
- return match.Success ? NormalizeBrackets(match.Groups["proc_name"].Value) : String.Empty;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement