Inheritance: Descriptor
Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Parameter"/> class with the specified value and <see cref="ParameterType"/>.
        /// </summary>
        /// <param name="value">Value of the Parameter</param>
        /// <param name="type">The <see cref="ParameterType"/> that defines the single query.</param>
        public Parameter(object value, ParameterType type = null)
        {
            Name = string.Empty;

            Value = GetValue(value);

            Type = type ?? ParameterType.Value;
        }
Example #2
0
 /// <summary>
 /// Sets the method name and column name of this instance with the supplied method name and 
 /// column name.
 /// </summary>
 /// <param name="op">The supplied method name.</param>
 /// <param name="column">The supplied column name.</param>
 public SearchAttribute(string op, OperatorType operatorType, string column, ParameterType parameterType = null)
 {
     Operator = op;
     OperatorType = operatorType;
     Column = column;
     ParameterType = parameterType;
 }