//public string ToSQL(QueryExpression expression) //{ // return ((ISQLObject)expression.Query).ToSQL(); //} public string ToSQL(DataRowFieldExpression expression) { return(expression.EntityName.IsNullOrEmpty() ? String.Format("[{0}]", expression.FieldName) : String.Format("[{0}].[{1}]", expression.EntityName, expression.FieldName)); }
public object Evaluate(DataRowFieldExpression expression, object data, IEnumerable <object> parameters = null) { return(null); //var row = (DataRow)parameters; //return row.GetCell(expression.ToString()).Value; }