Esempio n. 1
0
        protected override void SetParameter(string parameterName, DbParameter value)
        {
            int index = RangeCheck(parameterName);

            MdxParameterCollection.ValidateType(value);
            Replace(index, (MdxParameter)value);
        }
Esempio n. 2
0
 public override int Add(object value)
 {
     MdxParameterCollection.ValidateType(value);
     Add((MdxParameter)value);
     return(Count - 1);
 }
Esempio n. 3
0
 protected override void SetParameter(int index, DbParameter value)
 {
     MdxParameterCollection.ValidateType(value);
     this[index] = (MdxParameter)value;
 }
Esempio n. 4
0
 /// <summary>
 /// Removes the specified MdxParameter object from the collection.
 /// </summary>
 /// <param name="value">The MdxParameter object to remove.</param>
 public override void Remove(object value)
 {
     MdxParameterCollection.ValidateType(value);
     Remove((MdxParameter)value);
 }
Esempio n. 5
0
 /// <summary>
 /// Inserts the specified index of the MdxParameter object with the specified name into the collection at the specified index.
 /// </summary>
 /// <param name="index">The index at which to insert the MdxParameter object.</param>
 /// <param name="value">The MdxParameter object to insert into the collection.</param>
 public override void Insert(int index, object value)
 {
     MdxParameterCollection.ValidateType(value);
     Insert(index, (MdxParameter)value);
 }