2
我有4個表:LINQ加入多桌
table1
id1,
fk_tbl2 //this is the foreign key to the "id" in table2
table2
id2,
fk_tbl3 //this is the foreign key to the "id" in table3
table3
id3,
fk_tbl4 //this is the foreign key to the "id" in table4
table4
id4,
name
我想打一個多表連接,當用戶輸入「ID4」,我可以在「表1」記錄列表。
如何在C#中編寫連接? 謝謝。
這取決於...這些表的對象是否具有相互引用的屬性? – David