DBMembershipProvider Inheritance

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
john.valentine
Posts: 7
Joined: Tue 09 Mar 2010 20:15

DBMembershipProvider Inheritance

Post by john.valentine » Thu 08 Apr 2010 14:49

I need to be able to inherit from the DBMembershipProvider so I can fit the dotConnect features into my MVP project.

We would like to move the function calls from our view project into our presenter project.

I spiked this as a possibility using the Microsoft Provider model, but I guess you guys are doing something a little different.

The following code should be all that I need unless I want to extend your base functionality.

Code: Select all

public class MembershipProvider : Devart.Common.Web.Providers.DbMembershipProvider
    {        
        #region Public Constructors

        public MembershipProvider(string defaultName, string defaultDescription, System.Data.Common.DbProviderFactory provider)
            : base(defaultName, defaultDescription, provider)
        {

        }

        #endregion

    }

The error I get looks like this:

Code: Select all

'MembershipProvider' does not implement inherited abstract member 'Devart.Common.Web.Providers.DbMembershipProvider.GetUsersProvider()'
Where can I find the documentation for extending all DevArt the providers?

Thanks!

John

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Mon 12 Apr 2010 14:44

The abstract GetUsersProvider() method returns an instance of the DbUsersProvider class, which includes auxiliary functionality for the OracleMembershipProvider implementation. DbMembershipProvider is intended only for an internal use at the moment. Could you please specify the exact functionality you want to get, which is not included to the OracleMembershipProvider class from the Professional edition of dotConnect for Oracle?

We will investigate the possibility of extending the base functionality of OracleMembershipProvider class.

The ASP.NET Provider Model Support article of the dotConnect for Oracle documentation is available here.

john.valentine
Posts: 7
Joined: Tue 09 Mar 2010 20:15

Post by john.valentine » Wed 14 Apr 2010 16:00

Thanks for the update. We came to the same conclusion.

Since we are using the MVP pattern as a part of our development methodology, we need to wrap all the providers into our own classes and move all the provider method calls in our various presenters.

more on MVP:
http://en.wikipedia.org/wiki/Model-view-presenter

We chose to use the Oracle classes and override them since they use the M$ classes as base classes. They also follow a more traditional table structure. This will be helpful if our customers choose to use SQL Server in the future.

Please have a look at our current problem if you get the chance.
http://www.devart.com/forums/viewtopic.php?t=17659

Thanks!

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Wed 07 Jul 2010 14:14

We have implemented capability of extending base functionality of ASP.NET providers. OracleMembershipProvider, OracleRoleProvider, etc are not sealed now. Some intermediate classes that are used by our provider (e.g., DbUsersProvider) are marked as public. This will allow to adjust our implementation for your tasks. I will post here when the corresponding build is available for download.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Wed 04 Aug 2010 16:30

New build of dotConnect for Oracle 5.70.152 is available for download.
It can be downloaded from http://www.devart.com/dotconnect/oracle/download.html (trial version) or from Registered Users' Area (for users with valid subscription only).
For more information, please refer to http://www.devart.com/forums/viewtopic.php?t=18588 .

Post Reply