コード例 #1
0
        /// <summary>
        /// <para>Adds an <see cref="DatabaseTypeData"/> into the collection.</para>
        /// </summary>
        /// <param name="databaseTypeData">
        /// <para>The <see cref="DatabaseTypeData"/> 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="DatabaseTypeData.Name"/>, it will be replaced with the new reference.</para>
        /// </remarks>
        /// <exception cref="ArgumentNullException">
        /// <para><paramref name="databaseTypeData"/> is a <see langword="null"/> reference (Nothing in Visual Basic).</para>
        /// </exception>
        /// <exception cref="InvalidOperationException">
        /// <para><seealso cref="DatabaseTypeData.Name"/> is a <see langword="null"/> reference (Nothing in Visual Basic).</para>
        /// </exception>
        public void Add(DatabaseTypeData databaseTypeData)
        {
            ArgumentValidation.CheckForNullReference(databaseTypeData, "databaseTypeData");
            ArgumentValidation.CheckForInvalidNullNameReference(databaseTypeData.Name, typeof(DatabaseTypeData).FullName);

            BaseAdd(databaseTypeData.Name, databaseTypeData);
        }
コード例 #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)
 {
 }
コード例 #3
0
        /// <summary>
        /// <para>Adds an <see cref="DatabaseTypeData"/> into the collection.</para>
        /// </summary>
        /// <param name="databaseTypeData">
        /// <para>The <see cref="DatabaseTypeData"/> 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="DatabaseTypeData.Name"/>, it will be replaced with the new reference.</para>
        /// </remarks>
        /// <exception cref="ArgumentNullException">
        /// <para><paramref name="databaseTypeData"/> is a <see langword="null"/> reference (Nothing in Visual Basic).</para>
        /// </exception>
        /// <exception cref="InvalidOperationException">
        /// <para><seealso cref="DatabaseTypeData.Name"/> is a <see langword="null"/> reference (Nothing in Visual Basic).</para>
        /// </exception>
        public void Add(DatabaseTypeData databaseTypeData)
        {
            ArgumentValidation.CheckForNullReference(databaseTypeData, "databaseTypeData");
            ArgumentValidation.CheckForInvalidNullNameReference(databaseTypeData.Name, typeof(DatabaseTypeData).FullName);

            BaseAdd(databaseTypeData.Name, databaseTypeData);
        }
コード例 #4
0
 /// <summary>
 /// <para>Copies the entire <see cref="DatabaseTypeDataCollection"/> 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="DatabaseTypeDataCollection"/> array that is the destination of the elements copied from <see cref="DatabaseTypeDataCollection"/>. The <see cref="DatabaseTypeData"/> 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(DatabaseTypeData[] array, int index)
 {
     base.CopyTo(array, index);
 }
コード例 #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)
 {
 }