Retrieving Data with GUID as primary key

Posts   
 
    
Anthony
User
Posts: 155
Joined: 04-Oct-2006
# Posted on: 23-Feb-2007 01:35:52   

I am using the asp.net 2 membership tables but when i generate the code, the GUIDs are empty! Any reason.

Whe i do a fetch the primary key is empty.

eg oUsers.getmulti(nothing)

for each oUser in oUsers oUser.UserId ..is empty loop

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 23-Feb-2007 06:31:50   

the GUIDs are empty

What exactly do you mean by the above words? Please elaborate more, and use code snippets if available to explain what's going on.

Anthony
User
Posts: 155
Joined: 04-Oct-2006
# Posted on: 24-Feb-2007 00:26:37   

eg oUsers.getmulti(nothing)

UserId in database is a GUID

for each oUser in oUsers
oUser.UserId ..is empty loop

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 24-Feb-2007 11:45:38   

Could you enable tracing (see using the generated code -> troubleshooting and debugging) and check what the query is that's executed? The GUID field should of course be filled.

Frans Bouma | Lead developer LLBLGen Pro
Anthony
User
Posts: 155
Joined: 04-Oct-2006
# Posted on: 06-Mar-2007 05:06:52   

don't understand how to use debugging. Have added section to web.config..added the dlls as specific..now what?

have any examples?

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 06-Mar-2007 05:32:20   

Run the application in Debug Mode (F5), open the output window in VS. Place breakpoints and watch what's get written in the output window.

Anthony
User
Posts: 155
Joined: 04-Oct-2006
# Posted on: 06-Mar-2007 07:16:43   

done that..i ran the query manually and the guids are returned but the object has an empty guid.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 06-Mar-2007 11:13:31   

I can't reproduce it. As you provided little real information (no real code, no version number) I can't proceed with this, so please provide what our guidelines say: http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=7725

Frans Bouma | Lead developer LLBLGen Pro