Esempio n. 1
0
 /// <summary>
 /// Creates a valid sql expression, e.g. for a "where" clause.
 /// See IExpression.SqlExpressionString for more detail.
 /// </summary>
 public void SqlExpressionString(ISqlStatement statement, string tableNameFieldNameLeftSeparator,
                                 string tableNameFieldNameRightSeparator)
 {
     statement.Statement.Append(
         FieldFullName(tableNameFieldNameLeftSeparator, tableNameFieldNameRightSeparator) + GetSqlOperator());
     if (this.DoesntRequireParametrisedValue())
     {
         statement.Statement.Append(GetSqlStringWithNoParameters());
     }
     else
     {
         statement.AddParameterToStatement(GetParameterValueAsObject());
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Creates a valid sql expression, e.g. for a "where" clause.
 /// See IExpression.SqlExpressionString for more detail.
 /// </summary>
 public void SqlExpressionString(ISqlStatement statement, string tableNameFieldNameLeftSeparator,
                                 string tableNameFieldNameRightSeparator)
 {
     statement.Statement.Append(
         FieldFullName(tableNameFieldNameLeftSeparator, tableNameFieldNameRightSeparator) + GetSqlOperator());
     if (this.DoesntRequireParametrisedValue())
     {
         statement.Statement.Append(GetSqlStringWithNoParameters());
     }
     else
     {
         statement.AddParameterToStatement(GetParameterValueAsObject());
     }
 }