/// <summary> /// Returns true if the ValueExpression represents a primitive /// </summary> protected virtual bool HandlePrimitiveValue(ValueExpression expr) { var tv = expr.Value.GetType(); return(DEFAULT_PRIMITIVE_TYPES.Contains(tv)); }
/// <summary> /// Override to create a parameter, assigning (and converting) value. /// You can throw ASTException if some unsupported value was passed-in /// </summary> protected abstract IDataParameter MakeAndAssignParameter(ValueExpression value);
/// <summary> Implements visitor pattern for ValueExpression</summary> public abstract void Visit(ValueExpression value);
/// <summary> /// Creates MySql specific parameter /// </summary> protected override IDataParameter MakeAndAssignParameter(ValueExpression value) { var p = new MySqlParameter($"{ParameterNamePrefix}{m_ParamCount++}", value.Value); return(p); }
/// <summary> /// Creates ORA specific parameter /// </summary> protected override IDataParameter MakeAndAssignParameter(ValueExpression value) { var p = new Oracle.ManagedDataAccess.Client.OracleParameter($"{ParameterNamePrefix}{m_ParamCount++}", value.Value); return(p); }