これらは私の実体である...Entity Frameworkの(ネストされたエンティティをロード)
Public Class Account
Public Property AccountId As Integer
Public Property AccountDescription As String
Public Property Transactions As List(Of Transaction)
End Class
Public Class Transaction
Public Property TransactionId As Integer
Public Property AccountId As Integer
Public Property TransferAccountId As Integer
Public Property TransactionDescription As String
End Class
私は今、私はこれを行うことができます知っています。 SingleOrDefault(関数(a)a.AccountId = myAccountId)
ただし、明らかにAccountId = myAccountIdのトランザクションのみが含まれます。しかし、私の場合、私は、移転に関与するものを含むすべての取引が欲しいです。そこで、AccountId = AccountIdまたはTransferAccountId = myAccountIdとなります。アカウントとそのトランザクションと転送トランザクションのリストを1回の呼び出しでどのように読み込むことができますか?