1
Vote

Database Constructor Extensions (DbProviderFactory)

description

Hi,

could you please extend the database constructors with a dbProviderFactory argument? Thanks a lot!
(the code ist copy and paste ready)
        /// <summary>
        /// Initializes a new instance of the <see cref="OracleDatabase"/> class with a connection string and a list of Oracle packages.
        /// </summary>
        /// <param name="connectionString">The connection string for the database.</param>
        public OracleDatabase(string connectionString)
            : this(connectionString, emptyPackages)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="OracleDatabase"/> class with a connection string and a list of Oracle packages.
        /// </summary>
        /// <param name="connectionString">The connection string for the database.</param>
        /// <param name="packages">A list of <see cref="IOraclePackage"/> objects.</param>
#pragma warning disable 612, 618
        public OracleDatabase(string connectionString, IEnumerable<IOraclePackage> packages)
            : this(connectionString, packages, Instance)
        {
        }
#pragma warning restore 612, 618

        /// <summary>
        /// Initializes a new instance of the <see cref="OracleDatabase"/> class with a connection string and a list of Oracle packages.
        /// </summary>
        /// <param name="connectionString">The connection string for the database.</param>
        /// <param name="packages">A list of <see cref="IOraclePackage"/> objects.</param>
        /// <param name="dbProviderFactory">A custom database provider factory.</param>
        public OracleDatabase(string connectionString, IEnumerable<IOraclePackage> packages, DbProviderFactory dbProviderFactory)
            : base(connectionString, dbProviderFactory)
        {
            if (packages == null) throw new ArgumentNullException("packages");

            this.packages = packages;
        }

comments