Example #1
0
        public static string GenerateWhere <TEntity>(Expression <Func <TEntity, bool> > identifierExpression, IExpressionFunctions expressionFunctions)
        {
            // TODO: verificar se é um binary, se for um member concatenar com == true
            BinaryExpression body = identifierExpression.Body as BinaryExpression;

            return($" WHERE {body.ExpressionToString(expressionFunctions).SubstringLast(1)}");
        }