Esempio n. 1
0
 public void DAAgregarParametro(String x_parameterName, Object x_value, System.Data.SqlDbType x_sqlDbType)
 {
     try
     {
         DASqlParameter = DASqlCommand.CreateParameter();
         DASqlParameter.ParameterName = x_parameterName;
         DASqlParameter.SqlDbType     = x_sqlDbType;
         //DASqlParameter.Size = x_size;
         DASqlParameter.Value     = x_value;
         DASqlParameter.Direction = ParameterDirection.Input;
         DASqlCommand.Parameters.Add(DASqlParameter);
     }
     catch (Exception ex)
     { throw ex; }
 }
Esempio n. 2
0
 public void DAAgregarParametro(String x_parameterName, Object x_value, System.Data.SqlDbType x_sqlDbType, byte x_precision, byte x_scale, ParameterDirection x_direction)
 {
     try
     {
         DASqlParameter = DASqlCommand.CreateParameter();
         DASqlParameter.ParameterName = x_parameterName;
         DASqlParameter.SqlDbType     = x_sqlDbType;
         DASqlParameter.Precision     = x_precision;
         DASqlParameter.Scale         = x_scale;
         DASqlParameter.Value         = x_value;
         DASqlParameter.Direction     = x_direction;
         DASqlCommand.Parameters.Add(DASqlParameter);
     }
     catch (Exception ex)
     { throw ex; }
 }