我有三个表:tblApplications和tblInterviews(tblDocuments简化)。
create table tblApplications(
    aplID int not null, --primary key
    aplName varchar(max) not null
)
create table tblInterviews(
    intApl int not null, --primary key & foreign key (tblApplications)
    intID int not null, --primary key
    intDate date not null
)
create table tblDocuments(
    docID int not null, --primary key
    docApl int not null, --foreign key (tblApplications & tblInterviews)
    docInt int null, --foreign key (tblInterviews)
    docPath varchar(max) not null
)
如您所见,应用程序是“顶部”条目,每次面试都必须引用一个应用程序。每个文件都必须引用一份申请,可能会或可能不会引用面试。
如果我将此模式加载到 LinqToSQL 设计器中并尝试选择文档,它只会选择引用采访的那些,因为它使用 aninner join将采访绑定到它。
但是,它应该使用outer join作为(部分)键(docInt)是可以为空的。
我如何告诉 LinqToSQL 这样做?