Example #1
0
 /// <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;
 }
Example #2
0
 /// <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)));
 }
Example #3
0
 /// <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;
 }
Example #4
0
 /// <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)));
 }
Example #5
0
 /// <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)));
 }
Example #6
0
 /// <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));
 }
Example #7
0
 /// <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));
 }
Example #8
0
 /// <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));
 }
Example #9
0
 /// <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;
 }
Example #10
0
 /// <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;
 }