Empty ObjectID

Posts   
 
    
BlueCell avatar
BlueCell
User
Posts: 83
Joined: 12-Jul-2004
# Posted on: 01-Oct-2006 21:05:10   

When writing the following...

Dim customers As New Dal.CollectionClasses.CustomerCollection
customers .GetMulti(Nothing)
Dim id As System.Guid = customers(x).ObjectID

Why is the id, for every valid unsigned integer x, always an empty Guid? Am I missing something here?

Information: Selfservicing General 2005

Note: I've checked that the customers are indeed filled and that customers(x) gives valid entity objects

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 01-Oct-2006 23:44:23   

Do you have a field ObjectID which is a GUID? (and you got somewarnings during compilation?)

Frans Bouma | Lead developer LLBLGen Pro
BlueCell avatar
BlueCell
User
Posts: 83
Joined: 12-Jul-2004
# Posted on: 02-Oct-2006 15:28:31   

I haven't got any warning during compilation. I didn't explicitly define a field named ObjectID, as I assumed this is defined within every entity (by the EntityBase class). Or is ObjectID something you must maintain yourself?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 02-Oct-2006 15:43:59   

Could you please give us the information requested in the guidelines? We can't help you further without this information: http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=7722

The ObjectID is created when the entity is instantiated. Please be sure to use the latest vb.net templates for v2.0 if you're using v2.0. A bug was found when initializing entities in a particular case, I'm not sure if you run into this, but it could be.

Frans Bouma | Lead developer LLBLGen Pro