I'm writing a customer template (V3.0 Adapter)
I have three entity
UserEntity(include field Id)
UserRoleEntity(include field UserId,RoleId)
RoleEntity(include field Id)
UserEntity and RoleEntity is ManyToMany, and UserRoleEntity as an intermediate entity
I want generate code like this:
public class UserEntity()
{
// some other code
RoleFields.Id
}
public class RoleEntity()
{
// some other code
UserFields.Id
}
This means that in one class I want know the related ManyToMany entity's PK field.
I tried all day,but I can only get such as UserId, RoleId of UserRoleEntity, I can not get all three entity's field info in only one entity class.
How to achieve this,please help me