SQL metal for dbml how to create the correct foreign key column names

I have these 2 tables

table name: Person with columns: Personal identifier, name

table name: VisitInfo with columns: VisitPersonID, CoordinatorPersonID

both columns have a foreign key for the table

When I generate the code, I get a VisitInfo class with properties:

  • Face
  • CoordinatorPerson

But what I want is VisitInfoClass with the following properties:

  • VisitPerson
  • CoordiniatorPerson

When you create a code file, sql metal begins to refer to the column name only for the second foreign key in the same table.

any ideas?

+3
source share
1

:
VisitInfo.PersonByVisitPersonID
VisitInfo.PersonByCoordinatorPersonID
... , ?

, L2S ...

http://www.huagati.com/dbmltools/

0

Source: https://habr.com/ru/post/1728020/


All Articles