v5 migration: BaseEntity: entity.LLBLGenProEntityTypeValue is inaccessible due to its protection level

Posts   
 
    
linda2016
User
Posts: 2
Joined: 22-Sep-2016
# Posted on: 22-Sep-2016 20:20:11   

Working on a v2.x to v5 migration, I have custom action code to do a delete based on the passing EntityBase parameter called 'entity', the old v2.x code needs to read the values of: (EntityType)entity.LLBLGenProEntityTypeValue With v5 I got entity.LLBLGenProEntityTypeValue is inaccessible due to its protection level

Any idea how should I fix this?

Thanks! Linda

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 23-Sep-2016 00:27:04   

Try this:

((IEntityCore)myEntity).LLBLGenProEntityTypeValue;
linda2016
User
Posts: 2
Joined: 22-Sep-2016
# Posted on: 23-Sep-2016 15:11:07   

Got it! Appreciate it!!!