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? 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?
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?
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?
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 :)
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 :)
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
by: Srinivas |
last post by:
hi all
how to access the outlook user profiles through VB.net
any help....
thanks in advanc
Srinivas
|
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...
|
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)...
|
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...
|
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...
|
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...
|
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...
|
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,...
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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...
|
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
|
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...
|
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...
|
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,...
|
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,...
| |