17 using System.Collections.Generic;
25 discover.Visit(expression);
26 return discover.References.ToArray();
29 #region ReferenceDiscover
33 References =
new List<ObjectName>();
36 public List<ObjectName> References {
get;
private set; }
40 return base.VisitReference(reference);
44 var value = constant.
Value;
47 return base.VisitConstant(constant);
ObjectName ReferenceName
Gets the name of the object referenced by the expression.
An expression that references an object within a context.
A query to the database to select data from a set of tables and columns.
static IEnumerable< ObjectName > AllReferences(this SqlExpression expression)
override SqlExpression VisitConstant(SqlConstantExpression constant)
DataObject Value
Gets the constant value of the expression.
An expression that holds a constant value.
override SqlExpression VisitReference(SqlReferenceExpression reference)
Defines the base class for instances that represent SQL expression tree nodes.
A visitor for SqlExpression objects.