Print Page | Close Window

Change Save User Profile

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1916
Printed Date: 29-Mar-2024 at 1:00pm


Topic: Change Save User Profile
Posted By: master-of-disaster
Subject: Change Save User Profile
Date Posted: 25-Jun-2010 at 2:42am
Hello,
 
I've set ASP.NET Membership Profile to my user. I can read a profile information from an exitsting user, this works fine.
 
But I can't update and set a profile-defintion with DevForce.
 
I think, I've to create a ProfileProvider (POCO) to handle my issue. But I'm confusion, to find a working solution.
 
Has someone a sample-code? I've try to orientation on the deliverd security samples, but all I try, my profile-settings will not save or update in database.
 
Regards
Dirk
 
 
 
 
 



Replies:
Posted By: kimj
Date Posted: 29-Jun-2010 at 9:19am
We don't have a sample for updating Profile information, but you're right that using POCO is the way to go.  We do have a sample showing a POCO provider for registration information, which might help.  You may want to refactor any Profile properties defined in your UserBase into a separate class so that you can then issue queries and saves for instances of that type.  The EntityManager has no means of updating the UserBase, since it's not an Entity it's handled outside of the usual query/save logic.



Print Page | Close Window