HighTechTalks DotNet Forums  

SqlProfileProvider provides custom User Info // Anything for the Application Entity?

ASP.net ASP.net discussions (microsoft.public.dotnet.framework.aspnet)


Discuss SqlProfileProvider provides custom User Info // Anything for the Application Entity? in the ASP.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
sloan
 
Posts: n/a

Default SqlProfileProvider provides custom User Info // Anything for the Application Entity? - 07-26-2007 , 01:45 PM






you can use a
ProfileProvider

( with one implmentation being the SqlProfileProvider class )

to add some custom info about a User.

(Height, Weight, EyeColor as an example)


Is there a way to add custom information to the Application (s) ?


The reason I'm asking is I'd like to have a either an Active (bool/bit)
flag, or a daterange
( StartApplicationDate and EndApplicationDate )

so I can setup my applications, but have them active or automatically be
enabled/disabled on the date.



I"m trying to find the intelligent non-hacky way to implement this feature,
instead of hacking up the default membership provider stuff.


Thanks for any hints.




<profile defaultProvider="SqlProvider">
<providers>
<clear />
<add name="SqlProvider"
type="System.Web.Profile.SqlProfileProvider"
connectionStringName="SqlServices"
applicationName="SampleApplication"
description="SqlProfileProvider for SampleApplication" />
</providers>

<properties>
<add name="Height" />
<add name="Weight" />
<add name="EyeColor" />
</properties>
</profile>



Reply With Quote
  #2  
Old   
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
 
Posts: n/a

Default RE: SqlProfileProvider provides custom User Info // Anything for the A - 07-26-2007 , 02:26 PM






If you are going to use the buit-in available providers, no. Profile of
course is specifically targeted at users.
However, there is nothing to stop you from keeping such application-specific
data in a table in your database, and writing a quasi "provider" to access
this data when an application is started.
-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
bogMetaFinder: http://www.blogmetafinder.com



"sloan" wrote:

Quote:
you can use a
ProfileProvider

( with one implmentation being the SqlProfileProvider class )

to add some custom info about a User.

(Height, Weight, EyeColor as an example)


Is there a way to add custom information to the Application (s) ?


The reason I'm asking is I'd like to have a either an Active (bool/bit)
flag, or a daterange
( StartApplicationDate and EndApplicationDate )

so I can setup my applications, but have them active or automatically be
enabled/disabled on the date.



I"m trying to find the intelligent non-hacky way to implement this feature,
instead of hacking up the default membership provider stuff.


Thanks for any hints.




profile defaultProvider="SqlProvider"
providers
clear /
add name="SqlProvider"
type="System.Web.Profile.SqlProfileProvider"
connectionStringName="SqlServices"
applicationName="SampleApplication"
description="SqlProfileProvider for SampleApplication" /
/providers

properties
add name="Height" /
add name="Weight" /
add name="EyeColor" /
/properties
/profile




Reply With Quote
  #3  
Old   
sloan
 
Posts: n/a

Default Re: SqlProfileProvider provides custom User Info // Anything for the A - 07-26-2007 , 03:32 PM



Yeah, that is what I was thinking as well.

SqlRoleProvider and SqlMembershipProvider actually look
inheritable-friendly.

.........


"Peter Bromberg [C# MVP]" <pbromberg (AT) yahoo (DOT) yohohhoandabottleofrum.com> wrote
in message news:5653A99F-6917-4C97-A802-DB898CFB3974 (AT) microsoft (DOT) com...
Quote:
If you are going to use the buit-in available providers, no. Profile of
course is specifically targeted at users.
However, there is nothing to stop you from keeping such
application-specific
data in a table in your database, and writing a quasi "provider" to access
this data when an application is started.
-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
bogMetaFinder: http://www.blogmetafinder.com



"sloan" wrote:

you can use a
ProfileProvider

( with one implmentation being the SqlProfileProvider class )

to add some custom info about a User.

(Height, Weight, EyeColor as an example)


Is there a way to add custom information to the Application (s) ?


The reason I'm asking is I'd like to have a either an Active (bool/bit)
flag, or a daterange
( StartApplicationDate and EndApplicationDate )

so I can setup my applications, but have them active or automatically be
enabled/disabled on the date.



I"m trying to find the intelligent non-hacky way to implement this
feature,
instead of hacking up the default membership provider stuff.


Thanks for any hints.




profile defaultProvider="SqlProvider"
providers
clear /
add name="SqlProvider"
type="System.Web.Profile.SqlProfileProvider"
connectionStringName="SqlServices"
applicationName="SampleApplication"
description="SqlProfileProvider for SampleApplication" /
/providers

properties
add name="Height" /
add name="Weight" /
add name="EyeColor" /
/properties
/profile






Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.