ObjectID and migration from 2.6 to 3.1

Posts   
 
    
Posts: 2
Joined: 03-Feb-2012
# Posted on: 03-Feb-2012 14:26:11   

Hallo. I'm trying to migrate a 2.6 project to the 3.1 version of LLBLGenPro (code generated for 2.0 version of .NET framework). The problem is that in our old code we used ObjectID property of EntityBase2 class. With the new release it seems that this property has been removed.

Maybe I'm doing something wrong but I can't understand what.

Thank you very much for any help. Best regards

Luigi Leo

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39617
Joined: 17-Aug-2003
# Posted on: 03-Feb-2012 15:14:00   

It's available in v3 as well, but you have to cast to IEntityCore or IEntity2 explicitly. We moved it to the interface explicitly to remove clutter from the public interface of an entity.

Frans Bouma | Lead developer LLBLGen Pro