コード例 #1
0
        //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));
        }
コード例 #2
0
 public object Evaluate(DataRowFieldExpression expression, object data, IEnumerable <object> parameters = null)
 {
     return(null);
     //var row = (DataRow)parameters;
     //return row.GetCell(expression.ToString()).Value;
 }