我有两张桌子:
Network_Clients
Clients
Network_Clients 有三列
networkClientID: Key
Name: Varchar
Description: Varchar
客户端有 4 列:
clientID: Key
networkClientId: FK to Network_Clients -> networkClientID
Name: Varchar
Description: Varchar
客户表:
clientID networkClientID name description
1 2 Client1 Client of Client2
2 3 Client1 Client of Client3
3 3 Client4 Client of Client3
4 1 Client4 Direct Placement Client
5 1 Client1 Direct Placement Client
网络客户端表:
networkClientID name description
1 Direct Placer NULL
2 Client2 Network Client Client2
3 Client3 Network Client Client3
4 Test One Test One Network Client
这是我的 LINQ 查询:
from cn in Clients_Network
join c in Clients on cn.networkClientID equals c.networkClientID
select new { cn, c }
这将返回所有内容,但Direct Placer
因为Test One
它们在 Clients 表中都没有链接字段。
怎么才能让这两个出现?