Exemple #1
0
        public override object Execute(System.Linq.Expressions.Expression expression)
        {
            var translater = new ExpressionTranslater <T>(expression, this.entityQuery);

            translater.Translat();
            return(translater.Execute());
        }
Exemple #2
0
        public override string GetQueryText(System.Linq.Expressions.Expression expression)
        {
            var translater = new ExpressionTranslater <T>(expression, this.entityQuery);

            translater.Translat();

            var SQLTranslater = new Liger.Data.ExpressionTranslater(entityQuery.DbProvider, translater.EntityQueryExpression);

            SQLTranslater.Translate();

            return(SQLTranslater.CommandText);
        }