Up to v2.6 the following code used to compile:
Dim p as ProductEntity
Debug.Print p.LLBLGenProEntityName
Now the above code doesn't compile anymore, unless you explicity cast de ProductEntity, e.g.:
Dim p as ProductEntity
Debug.Print DirectCast(p, IEntityCore).LLBLGenProEntityName)
I'm not willing to cast each reference to that Property along the code (the same happen with ObjectID property). The only way I found to overcome this issue is to define those properties in the CommonEntityBase class.
' __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode
Public ReadOnly Property LLBLGenProEntityName As String
Get
Return (DirectCast(Me, IEntityCore).LLBLGenProEntityName)
End Get
End Property
Public ReadOnly Property ObjectID As Guid
Get
Return (DirectCast(Me, IEntityCore).ObjectID)
End Get
End Property
' __LLBLGENPRO_USER_CODE_REGION_END
Thanks for your support