我试图编写一个HQL查询来选择包含子集合中的对象的对象。 例子: 竞赛对象 ContestID
ContestName
RequiredCountries -> one to many collection of Country objects
Country对象 CountryCode
CountryName
的SQL相当于我想要什么: SELECT * FROM CONTEST
我必须设置为一个具有两个属性,X和Y 关键我有一些类似的自定义类: Dim test As New List(of TestClass)
Dim key as New TestData
key._a = A
key._b = B
For Each a As TestClass In SomeCollection
If Not test.Contains(key) Then