src/WeText.Common/Querying/WhereClauseBuilder.cs
/// <summary>
/// Builds the WHERE clause from the given expression object.
/// </summary>
/// <param name="expression">The expression object.</param>
/// <returns>The <c>Apworks.Storage.Builders.WhereClauseBuildResult</c> instance
/// which contains the build result.</returns>
Builds the WHERE clause from the given expression object.
Builds the WHERE clause from the given expression object .
public WhereClauseBuildResult BuildWhereClause(Expression<Func<TTableObject, bool>> expression)
        {
            this.sb.Clear();
            this.parameterValues.Clear();
            this.Visit(expression.Body);
            WhereClauseBuildResult result = new WhereClauseBuildResult
            {
                ParameterValues = parameterValues,
                WhereClause = sb.ToString()
            };
            return result;
        }
public WhereClauseBuildResult BuildWhereClause ( Expression < Func < TTableObject , bool > > expression ) { this . sb . Clear ( ) ; this . parameterValues . Clear ( ) ; this . Visit ( expression . Body ) ; WhereClauseBuildResult result = new WhereClauseBuildResult { ParameterValues = parameterValues , WhereClause = sb . ToString ( ) } ; return result ; }
Builds the WHERE clause from the given expression object.
Builds the WHERE clause from the given expression object .
None
expression
Expression<Func<TTableObject, bool>>
The expression object.
The expression object .