Esempio n. 1
0
        private IEnumerable <TableRef> GatherTableRefs(ProcedureStatement procedureStatement)
        {
            HashSet <TableRef> dict = new HashSet <TableRef>();

            procedureStatement.Visit(delegate(ProcedureStatement current)
            {
                ProcedureJoinStatement js = current as ProcedureJoinStatement;
                if (js != null)
                {
                    dict.Add(js.TableRef);
                }
            });
            return(dict);
        }
Esempio n. 2
0
        private IEnumerable <Table> GatherTables(ProcedureStatement procedureStatement)
        {
            HashSet <Table> dict = new HashSet <Table>();

            procedureStatement.Visit(delegate(ProcedureStatement current)
            {
                ProcedureWithJoinsStatement joins = current as ProcedureWithJoinsStatement;
                if (joins != null)
                {
                    foreach (Table table in joins.Tables)
                    {
                        dict.Add(table);
                    }
                }
            });
            return(dict);
        }
 private IEnumerable<TableRef> GatherTableRefs(ProcedureStatement procedureStatement)
 {
     HashSet<TableRef> dict = new HashSet<TableRef>();
     procedureStatement.Visit(delegate(ProcedureStatement current)
     {
         ProcedureJoinStatement js = current as ProcedureJoinStatement;
         if (js != null)
         {
             dict.Add(js.TableRef);
         }
     });
     return dict;
 }
 private IEnumerable<Table> GatherTables(ProcedureStatement procedureStatement)
 {
     HashSet<Table> dict = new HashSet<Table>();
     procedureStatement.Visit(delegate(ProcedureStatement current)
     {
         ProcedureWithJoinsStatement joins = current as ProcedureWithJoinsStatement;
         if (joins != null)
         {
             foreach (Table table in joins.Tables)
             {
                 dict.Add(table);
             }
         }
     });
     return dict;
 }