Emmanuel wrote:
Walaa wrote:
Aren't the underscores get removed when you map new entities form the catalog explorer?
(I got to the customer area and got the latest build of the designer - same result)
Yes, the underscores are being removed when I map the new entities from the catalog explorer. But why? I have the setting set to false (the default is true) and so I expect underscores to NOT be removed.
I can't reproduce it. v4.2 latest build (but this code hasn't been changed lately). I have two FK fields in an entity, FK_ID1 and FK_ID2, if I add the entity and also its PK side as entities to the project using reverse engineering I get Fk_Id1 and Fk_Id2 as entity fields. Make element name pascal casing is true, Remove underscores from element name is false in the project settings. I use the default fk pattern, which isn't used here btw.
However, I realize now that my fields with underscores are being renamed because they are FKs and subject to the FK field naming pattern. So, I think it is behaving as expected.
It sure would be nice if the FK field naming pattern included an option to just leave the field name alone and not rename it. We have a convention for naming FK fields which cannot be duplicated with the LLBLGen naming pattern tokens.
The FK field pattern isn't used in reverse engineering, it's used when FK fields are auto-created when you add a new relationship and no fk field is present yet.
I've attached the project I used which doesn't reproduce it. Simply reverse engineer FkSide and PkSide. The DB schema is some scratchpad db with garbage tables,
Attachments
Filename |
File size |
Added on |
Approval |
testdb.llblgenproj
|
9,954 |
17-Jun-2015 10:42.53 |
Approved |