Multiple foreign keys to the same table

后端 未结 4 434
伪装坚强ぢ
伪装坚强ぢ 2021-02-04 16:54

I have a reference table with all sorts of controlled value lookup data for gender, address type, contact type, etc. Many tables have multiple foreign keys to this reference tab

4条回答
  •  情深已故
    2021-02-04 17:39

    my xml from sqlmetal had much more sensible defaults. not perfect, but better. The first FK got the table name, but the second got the field name.

      
      
    

    sqlmetal version:

      C:\Program Files\Microsoft Visual Studio 9.0\VC>sqlmetal /?
      Microsoft (R) Database Mapping Generator 2008 version 1.00.21022
      for Microsoft (R) .NET Framework version 3.5
      Copyright (C) Microsoft Corporation. All rights reserved.
      ...
    

提交回复
热议问题