This question is locked. New answers and comments are not allowed.
Hi,
I find that the FK Collections in the entities are far from logic. I think the name should include the entity fieldname, at least.
an example:
I have a table Orders. In that table a have, among others, 2 fields called OrderContactID and BillingContactID. Both are FK's to the Contact table.
The Entity Order does now have, among others, 2 properties:
Public Overridable ReadOnly Property Contacts As IList(Of Contact)
and
Public Overridable ReadOnly Property Contacts1 As IList(Of Contact)
So, now in code, lateron, I do not have a clue witch one is what; while BillingContactID_Contacts would be a revealing name...
is there a way to do this in the code generation template?
Thanks,
Erik
I find that the FK Collections in the entities are far from logic. I think the name should include the entity fieldname, at least.
an example:
I have a table Orders. In that table a have, among others, 2 fields called OrderContactID and BillingContactID. Both are FK's to the Contact table.
The Entity Order does now have, among others, 2 properties:
Public Overridable ReadOnly Property Contacts As IList(Of Contact)
and
Public Overridable ReadOnly Property Contacts1 As IList(Of Contact)
So, now in code, lateron, I do not have a clue witch one is what; while BillingContactID_Contacts would be a revealing name...
is there a way to do this in the code generation template?
Thanks,
Erik