private bool IsInSet(ProcedureStatementCollection statements, Column column) { foreach (var statement in statements) { var setStatement = statement as ProcedureSetStatement; if (setStatement == null) { continue; } if (setStatement.RefColumn != null) { if (setStatement.RefColumn.Column == column) { return(true); } } if (setStatement.LeftExpression != null) { if (setStatement.LeftExpression.RefColumn != null) { if (setStatement.LeftExpression.RefColumn.Column == column) { return(true); } } } } return(false); }
private bool IsInSet(ProcedureStatementCollection statements, Column column) { foreach (var statement in statements) { var setStatement = statement as ProcedureSetStatement; if (setStatement == null) continue; if (setStatement.RefColumn != null) { if (setStatement.RefColumn.Column == column) return true; } if (setStatement.LeftExpression != null) { if (setStatement.LeftExpression.RefColumn != null) { if (setStatement.LeftExpression.RefColumn.Column == column) return true; } } } return false; }