public SqlCmdParameterItem(string name, SqlCmdParameterDirection direction, object value)
 {
     Name      = name;
     RawName   = ":" + name;
     Direction = direction;
     Value     = value;
 }
Beispiel #2
0
 public void AddParameter(string name, SqlCmdParameterDirection direction, object value)
 {
     if (value != null)
     {
         Parameters.Add(name, new SqlCmdParameterItem(name, direction, value));
     }
     else
     {
         Parameters.Add(name, new SqlCmdParameterItem(name, direction, DBNull.Value));
     }
 }