Example #1
0
        /// <summary>
        /// <para>Adds an <see cref="InstanceData"/> into the collection.</para>
        /// </summary>
        /// <param name="instanceData">
        /// <para>The <see cref="InstanceData"/> to add. The value can not be a <see langword="null"/> reference (Nothing in Visual Basic).</para>
        /// </param>
        /// <remarks>
        /// <para>If a reference already exists in the collection by <seealso cref="InstanceData.Name"/>, it will be replaced with the new reference.</para>
        /// </remarks>
        /// <exception cref="ArgumentNullException">
        /// <para><paramref name="instanceData"/> is a <see langword="null"/> reference (Nothing in Visual Basic).</para>
        /// </exception>
        /// <exception cref="InvalidOperationException">
        /// <para><seealso cref="InstanceData.Name"/> is a <see langword="null"/> reference (Nothing in Visual Basic).</para>
        /// </exception>
        public void Add(InstanceData instanceData)
        {
            ArgumentValidation.CheckForNullReference(instanceData, "instanceData");
            ArgumentValidation.CheckForInvalidNullNameReference(instanceData.Name, typeof(InstanceData).FullName);

            BaseAdd(instanceData.Name, instanceData);
        }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DatabaseProviderData"/> class.
 /// </summary>
 /// <param name="instance">An <see cref="InstanceData"/> object.</param>
 /// <param name="type">A <see cref="DatabaseTypeData"/> object.</param>
 /// <param name="connectionString">A <see cref="ConnectionStringData"/> object.</param>
 public DatabaseProviderData(
     InstanceData instance,
     DatabaseTypeData type,
     ConnectionStringData connectionString)
     : this(instance.Name, type.TypeName, connectionString)
 {
 }
        /// <summary>
        /// <para>Adds an <see cref="InstanceData"/> into the collection.</para>
        /// </summary>
        /// <param name="instanceData">
        /// <para>The <see cref="InstanceData"/> to add. The value can not be a <see langword="null"/> reference (Nothing in Visual Basic).</para>
        /// </param>
        /// <remarks>
        /// <para>If a reference already exists in the collection by <seealso cref="InstanceData.Name"/>, it will be replaced with the new reference.</para>
        /// </remarks>
        /// <exception cref="ArgumentNullException">
        /// <para><paramref name="instanceData"/> is a <see langword="null"/> reference (Nothing in Visual Basic).</para>
        /// </exception>
        /// <exception cref="InvalidOperationException">
        /// <para><seealso cref="InstanceData.Name"/> is a <see langword="null"/> reference (Nothing in Visual Basic).</para>
        /// </exception>
        public void Add(InstanceData instanceData)
        {
            ArgumentValidation.CheckForNullReference(instanceData, "instanceData");
            ArgumentValidation.CheckForInvalidNullNameReference(instanceData.Name, typeof(InstanceData).FullName);

            BaseAdd(instanceData.Name, instanceData);
        }
 /// <summary>
 /// <para>Copies the entire <see cref="InstanceDataCollection"/> to a compatible one-dimensional <see cref="Array"/>, starting at the specified index of the target array.</para>
 /// </summary>
 /// <param name="array">
 /// <para>The one-dimensional <see cref="InstanceDataCollection"/> array that is the destination of the elements copied from <see cref="InstanceDataCollection"/>. The <see cref="InstanceData"/> array must have zero-based indexing.</para>
 /// </param>
 /// <param name="index">
 /// <para>The zero-based index in array at which copying begins.</para>
 /// </param>
 public void CopyTo(InstanceData[] array, int index)
 {
     base.CopyTo(array, index);
 }
Example #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DatabaseProviderData"/> class.
 /// </summary>
 /// <param name="instance">An <see cref="InstanceData"/> object.</param>
 /// <param name="type">A <see cref="DatabaseTypeData"/> object.</param>
 /// <param name="connectionString">A <see cref="ConnectionStringData"/> object.</param>
 public DatabaseProviderData(
     InstanceData instance,
     DatabaseTypeData type,
     ConnectionStringData connectionString) : this(instance.Name, type.TypeName, connectionString)
 {
 }