コード例 #1
0
ファイル: tgParameters.cs プロジェクト: fushenwen/Tiraggo
 /// <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;
 }
コード例 #2
0
ファイル: tgParameters.cs プロジェクト: fushenwen/Tiraggo
 /// <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)));
 }
コード例 #3
0
ファイル: tgParameters.cs プロジェクト: fushenwen/Tiraggo
 /// <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;
 }
コード例 #4
0
ファイル: tgParameters.cs プロジェクト: fushenwen/Tiraggo
 /// <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)));
 }
コード例 #5
0
ファイル: tgParameters.cs プロジェクト: fushenwen/Tiraggo
 /// <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)));
 }
コード例 #6
0
ファイル: tgParameters.cs プロジェクト: BrewDawg/Tiraggo
 /// <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));
 }
コード例 #7
0
ファイル: tgParameters.cs プロジェクト: BrewDawg/Tiraggo
 /// <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));
 }
コード例 #8
0
ファイル: tgParameters.cs プロジェクト: BrewDawg/Tiraggo
 /// <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));
 }
コード例 #9
0
ファイル: tgParameters.cs プロジェクト: BrewDawg/Tiraggo
 /// <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;
 }
コード例 #10
0
ファイル: tgParameters.cs プロジェクト: BrewDawg/Tiraggo
 /// <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;
 }