Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
SELECT O.*, P.* FROM ORDERS O, PRODUCT P WHERE O.ORDER_ID=P.ORDER_ID;
上記のクエリの基準表現は何でしょうか?
あなたがこのようなものを持っているなら:
public class Order { public virtual ISet<Product> Products {get;set} }
あなたがする必要があります
session.CreateCriteria(typeof(Order)) .SetFetchMode("Products", FetchMode.Eager) .List();
それでおしまい。