【发布时间】:2015-09-25 05:03:05
【问题描述】:
我有桌子:
- tableAnnual - 年度金额、年度货币。创建日期,ID
- tableMonthly - MonthlyAmount、MonthlyCurrency、creationDate、Id
- tableSharevalue - CurrentSharevalue、creationDate、Id
- tableMiscDetails - clientType、clientName、MarketValueAmount、creationDate
我现在必须使用 NHibernate 和 QueryOver 进行以下选择:
Select tableAnnual.AnnualAmount, tableAnnual.AnnualCurrency,
tableMonthly.MonthlyAmount, MonthlyAmount.MonthlyCurrency,
tableSharevalue.CurrentSharevalue, tableMiscDetails.clientType, tableMiscDetails.clientName, tableMiscDetails.MarketValueAmount
from tableAnnual
outer join tableMonthly on tableAnnual.creationDate = tableMonthly.creationDate
outer join tableSharevalue on tableMonthly.creationDate = tableSharevalue.creationDate
outer join tableMiscDetails on tableSharevalue.creationDate = tableMiscDetails.creationDate
Where id = 123456
谁能给我一个样品,我该怎么做? - 我的问题是,我必须加入上面提到的多个表
【问题讨论】:
标签: c# join nhibernate fluent-nhibernate queryover