473,387 Members | 1,485 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Design of users and profiles (MebershipUser etc.)

I'm in need of some advice. I'm in the process of designing an ASP.NET
application. The site will need to accomodate three very different
types of users. Each type of user will have different properties
associated with it, and each will basically map to a role.

I'm considering how to best do this with the role/membership feature
of ASP.NET.

I was first contemplating inheriting from MembershipUser, i.e. create
three classes that inherited from MembershipUser (one for each kind of
I user), but as far I understand it that means I will have to provide
three provider classes each inheriting from MembershipProvder,
resulting in me having to dynamically change provider at runtime, and
that seems very convoluted and far from optimal.

Instead I've come to the conclusion that I'll use composition instead.
The idea is to create three user classes, each of which has a
MembershipUser object reference in their belly. It seems much cleaner
and leaner.

But, any advice/experience on this?

Jun 21 '07 #1
5 1066
At the moment it sounds as if you're going over-board. Why not describe the
actual criteria of the roles so anybody that wants to respond can do so
intelligently.

I've looked and looked and nowhere in the framework can I find the
MindReader namespace...

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
"rohde" <ro*******@gmail.comwrote in message
news:11**********************@g4g2000hsf.googlegro ups.com...
I'm in need of some advice. I'm in the process of designing an ASP.NET
application. The site will need to accomodate three very different
types of users. Each type of user will have different properties
associated with it, and each will basically map to a role.

I'm considering how to best do this with the role/membership feature
of ASP.NET.

I was first contemplating inheriting from MembershipUser, i.e. create
three classes that inherited from MembershipUser (one for each kind of
I user), but as far I understand it that means I will have to provide
three provider classes each inheriting from MembershipProvder,
resulting in me having to dynamically change provider at runtime, and
that seems very convoluted and far from optimal.

Instead I've come to the conclusion that I'll use composition instead.
The idea is to create three user classes, each of which has a
MembershipUser object reference in their belly. It seems much cleaner
and leaner.

But, any advice/experience on this?

Jun 21 '07 #2
On 21 Jun., 15:56, "clintonG" <nob...@nowhere.comwrote:
At the moment it sounds as if you're going over-board. Why not describe the
actual criteria of the roles so anybody that wants to respond can do so
intelligently.
Uhm, well the actual attributes of the different types of users can't
really be important. The problem is that I basically will need to
create three sub tables of the main Users table, each holding the
different attributes of the three kinds of users.

So my question really is what would be the most advantageous way to
build this into the Membersip part of ASP.NET business object wise.

>
I've looked and looked and nowhere in the framework can I find the
MindReader namespace...
Oh it's coming in .NET 5.4 :)

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URLhttp://clintongallagher.metromilwaukee.com/

"rohde" <rohdes...@gmail.comwrote in message

news:11**********************@g4g2000hsf.googlegro ups.com...
I'm in need of some advice. I'm in the process of designing an ASP.NET
application. The site will need to accomodate three very different
types of users. Each type of user will have different properties
associated with it, and each will basically map to a role.
I'm considering how to best do this with the role/membership feature
of ASP.NET.
I was first contemplating inheriting from MembershipUser, i.e. create
three classes that inherited from MembershipUser (one for each kind of
I user), but as far I understand it that means I will have to provide
three provider classes each inheriting from MembershipProvder,
resulting in me having to dynamically change provider at runtime, and
that seems very convoluted and far from optimal.
Instead I've come to the conclusion that I'll use composition instead.
The idea is to create three user classes, each of which has a
MembershipUser object reference in their belly. It seems much cleaner
and leaner.
But, any advice/experience on this?

Jun 21 '07 #3

I have no idea if this will help you or not.

But
http://www.dofactory.com/Patterns/PatternDecorator.aspx

Decorator Pattern.

I'd also get the HeadFirst Book on Design Patterns. I think their duck
example is pretty good.

...
"rohde" <ro*******@gmail.comwrote in message
news:11**********************@g4g2000hsf.googlegro ups.com...
I'm in need of some advice. I'm in the process of designing an ASP.NET
application. The site will need to accomodate three very different
types of users. Each type of user will have different properties
associated with it, and each will basically map to a role.

I'm considering how to best do this with the role/membership feature
of ASP.NET.

I was first contemplating inheriting from MembershipUser, i.e. create
three classes that inherited from MembershipUser (one for each kind of
I user), but as far I understand it that means I will have to provide
three provider classes each inheriting from MembershipProvder,
resulting in me having to dynamically change provider at runtime, and
that seems very convoluted and far from optimal.

Instead I've come to the conclusion that I'll use composition instead.
The idea is to create three user classes, each of which has a
MembershipUser object reference in their belly. It seems much cleaner
and leaner.

But, any advice/experience on this?

Jun 21 '07 #4
On 21 Jun., 16:58, "sloan" <s...@ipass.netwrote:
I have no idea if this will help you or not.

Buthttp://www.dofactory.com/Patterns/PatternDecorator.aspx

Decorator Pattern.
I've just looked up the Decorator Pattern in the gang of four book,
and it's actually what I had in mind doing originally. So yes, that's
a good idea :)
Jun 21 '07 #5

I thought the idea was worthy.

I just don't know first hand if you can actually match it up to your need.

Give her the ole' college try I guess!

"rohde" <ro*******@gmail.comwrote in message
news:11**********************@k79g2000hse.googlegr oups.com...
On 21 Jun., 16:58, "sloan" <s...@ipass.netwrote:
I have no idea if this will help you or not.

Buthttp://www.dofactory.com/Patterns/PatternDecorator.aspx

Decorator Pattern.

I've just looked up the Decorator Pattern in the gang of four book,
and it's actually what I had in mind doing originally. So yes, that's
a good idea :)


Jun 21 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: MLH | last post by:
I have a RDBMS app consisting of 3 primary mdb's... 1) a front-end with a few STATIC tables and the other menagerie of objects 2) a back-end with most of my DYNAMIC tables. I'll call it my main...
9
by: Srinivas | last post by:
hi all how to access the outlook user profiles through VB.net any help.... thanks in advanc Srinivas
20
by: Keith G. Murphy | last post by:
I'm trying to get a feel for what most people are doing or consider best practice. Given a mod_perl application talking to a PostgreSQL database on the same host, where different users are...
1
by: Anurag | last post by:
Hi, I have 2 related questions. DB2 UDB ESE v8.x (8.1 till 8.2 FP2 - all fixpaks included) on AIX 5.4.x _____________________________________________________________________________ (QUESTION 1)...
0
by: YellowFin Announcements | last post by:
Introduction Usability and relevance have been identified as the major factors preventing mass adoption of Business Intelligence applications. What we have today are traditional BI tools that...
5
by: Mike P | last post by:
I am trying to get at different users inboxes programmatically (see code below). It works fine, except for the fact that the logon line seems to always logon to my local account rather than...
0
by: stevesuch | last post by:
Hi, I've just joined this site after browsing for a few months, and finally bitten the bullet! I've got a few questions as I try and get my head around the Profiling in .NET and the best way to...
1
by: itfetish | last post by:
I've been working with a web parts page, and its under constant development, the first stage is live, however there are some web parts I want to remove.... but I can't, as the users customization...
1
by: kpg* | last post by:
Hi all, Trying to use the ASP.NET 2.0 membeship API to manage users and user profiles, and of course, to provide role based security to my web app. I have several attributes I want to users,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.