How to change ProvederFactory for OracleMembershipProvider?

How to change ProvederFactory for OracleMembershipProvider?

Postby darrin » Tue 08 Jul 2008 08:54

Hello.
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.
darrin
 
Posts: 7
Joined: Wed 11 Apr 2007 12:13

Postby 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.
AndreyR
Devart Team
 
Posts: 2919
Joined: Mon 07 Jul 2008 13:16


Return to dotConnect for Oracle