How to change ProvederFactory for OracleMembershipProvider?

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
Posts: 7
Joined: Wed 11 Apr 2007 12:13

How to change ProvederFactory for OracleMembershipProvider?

Post by darrin » Tue 08 Jul 2008 08:54

How can i change ProvederFactory for OracleMembershipProvider? OracleMembershipProvider (and other ASP Providers) always use oracleProvederFactory, but I need to use myProviderFactory class.
In oracleProvederFactory constuctor written:

Code: Select all

    public OracleMembershipProvider() : base("OracleMembershipProvider", "OraDirect membership provider", OracleProviderFactory.Instance)

as result, OracleProviderFactory cann't be changed.

Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Wed 09 Jul 2008 14:25

Hello, Darrin.

You can try to execute the following code before using an OracleMembershipProvider in your application:

Code: Select all

OracleProviderFactory.Instance = new MyOracleProviderFactory(); 
where MyOracleProviderFactory is an instance of your alternative implementation of OracleProviderFactory.

Regards, Andrey.

Post Reply