Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Problem understanding c couple of Fields in DNN Profile TablesProblem understanding c couple of Fields in DNN Profile Tables
Previous
 
Next
New Post
5/24/2008 12:38 PM
 

I need to customize DNN Profiles in such a way, that a single user has same profile field values across Portals.

Before designing my own Profile Provider, I am studying DNN Profile architecture deeply. I could not get across 2 fields being used in the Process.

The first one is the "DefinitionID" field in the "Lists" table. This field has a value of -1 for all List entries except for some entries. All of them have a value of 107, and I feel like all of those List entries are related in some way or the other to the Forum Module. What exactly does this field denote???

Second, the "PropertyText" Field in "UserProfile" table. This field has a value of 'NULL" for all rows. Still, in the GetProfile DNN Stored Procedure, if the Value field is NULL, then this field is selected. But, nowhere this field is being updated from the code. When UpdateProfile is called, only PropertyValue is sent to the database, not PropertyText. Any help would be appreciated!!!

 
New Post
5/24/2008 4:25 PM
 

It has been a while since I played with Lists.

I think that the "-1" indicates that these are "core" defined List entries, while a number in the column indicates that these List entries are "owned" by a Module (ModuleDefinition ID).

With regard to the profile - there are two fields that hold the value - an nvarchar(3750) field called PropertyValue and an ntext field called PropertyText.  ntext fields are not very efficient to search on, and they are also an inefficient way of storing data in a SQL Server Database, so the concept is that as long as the value of the field is small (< 3750 unicode characters) it will be stored in PropertyValue.  For long fields - like Biography, which allows for any length of text, the data is stored in the ntext field.  The decision is based purely on the size of the PropertyValue when it is being saved.


Charles Nurse
Chief Architect
Evoq Content Team Lead,
DNN Corp.

Want to contribute to the Platform project? - See here
MVP (ASP.NET) and
ASPInsiders Member
View my profile on LinkedIn
 
New Post
5/25/2008 12:44 AM
 

I suspected that DefinitionID would relate to ModuleDefinitionID. However, when I checked the ModuleDefinitions table, there was no Module with DefID 107. As there is no PK/FK relationship between ModuleDefnitions & Lists on DefinitonID, I concluded that I was wrong.

However, after your reply, I checked my Admin logs, and found I had deleted a Forum module earlier, whose ID was 107, and as I said, those fields I believed are related to Forum Module, one way or the other. But, when a module is deleted, isn't it expected to clean up its trail left behind in the database???

And thanx regarding your reply on PropertyValue & Text. That cleaned up a lot of doubts. Is there any specific reason to choose the size 3750 ( I mean its not a power of 2)?

 

Also, there is one last field I couldn't get across in the entire Profile backend.

What does "ProfileData" field in Profile table mean, having entries like:

" border=0>referredTextEditor" type="System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">RICH

This RICH string is in every ProfileData field Does that make a user rich???

 
New Post
5/26/2008 12:25 AM
 

I haven't still understood the ProfileData field. It is really important for me to understand the "ProfileData" field in the "Profile table, as I have seen that field being used in the code often.

Anyone in here can help out???

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Problem understanding c couple of Fields in DNN Profile TablesProblem understanding c couple of Fields in DNN Profile Tables


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out