示例#1
0
 public SqlProcedure(SqlObjectName name, string path, int startPos, int endPos, int startLine)
 {
     Name      = name;
     Path      = path;
     StartPos  = startPos;
     EndPos    = endPos;
     StartLine = startLine;
 }
示例#2
0
        public override void Visit(CreateProcedureStatement proc)
        {
            var name = new SqlObjectName();
            var son  = proc.ProcedureReference.Name;

            name.Schema = son.SchemaIdentifier?.Value.UnQuote();
            name.Object = son.BaseIdentifier?.Value.UnQuote();

            if (name.Object.ToLowerInvariant().StartsWith("test"))
            {
                Procedures.Add(new SqlProcedure(name, _path, _offset + proc.StartOffset, proc.FragmentLength, _lineOffset + proc.StartLine));
            }

            base.Visit(proc);
        }