BuildText() public static method

public static BuildText ( LambdaExpression expression, string>.Func createParameterCallback, CypherCapabilities capabilities = null, bool camelCaseProperties = false ) : string
expression System.Linq.Expressions.LambdaExpression
createParameterCallback string>.Func
capabilities CypherCapabilities
camelCaseProperties bool
return string
Exemplo n.º 1
0
 internal ICypherFluentQuery WhereIf(bool condition, LambdaExpression expression)
 {
     if (condition)
     {
         return(Mutate(w =>
                       w.AppendClause("WHERE " + CypherWhereExpressionBuilder.BuildText(expression, w.CreateParameter, Client.CypherCapabilities, CamelCaseProperties))));
     }
     return(Mutate(w => w.Clone()));
 }
 internal ICypherFluentQuery OrWhere(LambdaExpression expression)
 {
     return(Mutate(w =>
                   w.AppendClause(string.Format("OR {0}", CypherWhereExpressionBuilder.BuildText(expression, w.CreateParameter, Client.CypherCapabilities, CamelCaseProperties)))));
 }
 internal ICypherFluentQuery Where(LambdaExpression expression)
 {
     return(Mutate(w =>
                   w.AppendClause("WHERE " + CypherWhereExpressionBuilder.BuildText(expression, w.CreateParameter, Client.CypherCapabilities))));
 }
 internal ICypherFluentQuery AndWhere(LambdaExpression expression)
 {
     return(Mutate(w =>
                   w.AppendClause($"AND {CypherWhereExpressionBuilder.BuildText(expression, w.CreateParameter, Client.CypherCapabilities, CamelCaseProperties)}")));
 }