0

我想将以下查询写入 NHibernate-QUery 以获得由 PRESC.ADMINDATE 排序的 PRESC_DEL 列表

select * from PRESC_DEL, PRESC 
     where PRESC.ID = PRESC_DEL.ID_PRESC 
     and PRESC_DEL = PRESC_DEL.ID_DISTRIBUTIE
     or by PRESC.ADMINDATE

如何加入?

4

1 回答 1

0
var query = (from pd in session.Query<PrescDel>()
             where pd.??? = pd.IdDistribute
             orderby pd.AdminDate
             select pd);

var results = query.Fetch(x => x.Presc).ToList();
于 2013-07-30T13:11:15.403 回答