public static string ToText <TSearchHeadEnum, M, P>(Expression <Func <M, P> > expression, SearchTerm <TSearchHeadEnum> term) where TSearchHeadEnum : struct, IConvertible { var me = expression.Body as MemberExpression; var alias = me.Expression.ToString(); var property = CypherFluentQuery.ApplyCamelCase(true, me.Member.Name); var whereText = $"{alias}.{property} {term.ToPredicateConditionAndBody()}"; return(whereText); }