/// <summary> /// Use this constructor for non-input parameters only. /// </summary> /// <param name="name">The name of the parameter without a prefix, for example, "EmployeeID" not "@EmployeeID".</param> /// <param name="direction">The parameter direction</param> /// <param name="type">The System.Data.DbType of the parameter</param> /// <param name="size">The size. For strings the length, for most others 0 can be passed in</param> public tgParameter(string name, tgParameterDirection direction, DbType type, int size) { this.name = name; this.direction = direction; this.dbType = type; this.size = size; }
/// <summary> /// This should ONLY be used for parameters other than input parameters. /// </summary> /// <param name="name">The name of the parameter without a prefix, for example, "EmployeeID" not "@EmployeeID".</param> /// <param name="value">The value of the parameter</param> /// <param name="direction">The parameter direction</param> /// <param name="type">The System.Data.DbType of the parameter</param> /// <param name="size">The size. For strings the length, for most others 0 can be passed in</param> /// <returns>The newly created parameter</returns> public tgParameter Add(string name, object value, tgParameterDirection direction, DbType type, int size) { return(this.Add(new tgParameter(name, value, direction, type, size))); }
/// <summary> /// Use this constructor for non-input parameters only. /// </summary> /// <param name="name">The name of the parameter without a prefix, for example, "EmployeeID" not "@EmployeeID".</param> /// <param name="value">The value of the parameter</param> /// <param name="direction">The direction of the parameter</param> public tgParameter(string name, object value, tgParameterDirection direction) { this.name = name; this.value = value; this.direction = direction; }
/// <summary> /// If you need to add a parameter with an tgParameterDirection other than Input use this method. /// </summary> /// <param name="name">The name of the parameter without a prefix, for example, "EmployeeID" not "@EmployeeID".</param> /// <param name="direction">The parameter direction</param> /// <returns>The newly created parameter</returns> public tgParameter Add(string name, tgParameterDirection direction) { return(this.Add(new tgParameter(name, null, direction))); }
/// <summary> /// This should ONLY be used for parameters other than input parameters. /// </summary> /// <param name="name">The name of the parameter without a prefix, for example, "EmployeeID" not "@EmployeeID".</param> /// <param name="value">The value of the parameter</param> /// <param name="direction">The parameter direction</param> /// <returns>The newly created parameter</returns> public tgParameter Add(string name, object value, tgParameterDirection direction) { return(this.Add(new tgParameter(name, value, direction))); }
/// <summary> /// This should ONLY be used for parameters other than input parameters. /// </summary> /// <param name="name">The name of the parameter without a prefix, for example, "EmployeeID" not "@EmployeeID".</param> /// <param name="value">The value of the parameter</param> /// <param name="direction">The parameter direction</param> /// <param name="type">The System.Data.DbType of the parameter</param> /// <param name="size">The size. For strings the length, for most others 0 can be passed in</param> /// <returns>The newly created parameter</returns> public tgParameter Add(string name, object value, tgParameterDirection direction, DbType type, int size) { return this.Add(new tgParameter(name, value, direction, type, size)); }
/// <summary> /// This should ONLY be used for parameters other than input parameters. /// </summary> /// <param name="name">The name of the parameter without a prefix, for example, "EmployeeID" not "@EmployeeID".</param> /// <param name="value">The value of the parameter</param> /// <param name="direction">The parameter direction</param> /// <returns>The newly created parameter</returns> public tgParameter Add(string name, object value, tgParameterDirection direction) { return this.Add(new tgParameter(name, value, direction)); }
/// <summary> /// If you need to add a parameter with an tgParameterDirection other than Input use this method. /// </summary> /// <param name="name">The name of the parameter without a prefix, for example, "EmployeeID" not "@EmployeeID".</param> /// <param name="direction">The parameter direction</param> /// <returns>The newly created parameter</returns> public tgParameter Add(string name, tgParameterDirection direction) { return this.Add(new tgParameter(name, null, direction)); }
/// <summary> /// Use this constructor for non-input parameters only. /// </summary> /// <param name="name">The name of the parameter without a prefix, for example, "EmployeeID" not "@EmployeeID".</param> /// <param name="value">The value of the parameter</param> /// <param name="direction">The parameter direction</param> /// <param name="type">The System.Data.DbType of the parameter</param> /// <param name="size">The size. For strings the length, for most others 0 can be passed in</param> /// <returns>The newly created parameter</returns> public tgParameter(string name, object value, tgParameterDirection direction, DbType type, int size) { this.name = name; this.value = value; this.direction = direction; this.dbType = type; this.size = size; }