src/Inflatable/LinqExpression/WhereClauses/Constant.cs
/// <summary>
/// Gets the parameters associated with the operator.
/// </summary>
/// <returns>A list of parameters associated with the operator.</returns>
Gets the parameters associated with the operator.
Gets the parameters associated with the operator .
public List<IParameter> GetParameters()
        {
            var ReturnValue = new List<IParameter>();
            switch (Value)
            {
                case null:
                    ReturnValue.Add(new Parameter<object>(Count.ToString(), null!));
                    break;
                case string _:
                    ReturnValue.Add(new StringParameter(Count.ToString(), (Value as string)!));
                    break;
                default:
                    ReturnValue.Add(new Parameter<object>(Count.ToString(), Value.GetType().To(DbType.Int32), Value));
                    break;
            }
            return ReturnValue;
        }
public List < IParameter > GetParameters ( ) { var ReturnValue = new List < IParameter > ( ) ; switch ( Value ) { case null : ReturnValue . Add ( new Parameter < object > ( Count . ToString ( ) , null ! ) ) ; break ; case string _ : ReturnValue . Add ( new StringParameter ( Count . ToString ( ) , ( Value as string ) ! ) ) ; break ; default : ReturnValue . Add ( new Parameter < object > ( Count . ToString ( ) , Value . GetType ( ) . To ( DbType . Int32 ) , Value ) ) ; break ; } return ReturnValue ; }
Gets the parameters associated with the operator.
Gets the parameters associated with the operator .
A list of parameters associated with the operator.
A list of parameters associated with the operator .