5
次の参加を返して、会社IDを持つ会社にアクセスできるユーザーを返す方法。 問題はUserAccessと、彼らは単に文字列プロパティのユーザー名に参加するユーザとの間のユーザオブジェクトを使用して明示的な関係があるんです:/:NHibernate QueryOver宣言されていないリレーションシップに参加する方法
User(Username, Name)
UserAccess(Username, Company)
Company(Id)
Session.QueryOver<Company>()
.Where(c => c.Id == companyId)
.JoinQueryOver<UserCompanyAccess>(u => u.UserAccessList)
.JoinQueryOver<User>(u => **Nope no property, just a string**
も参照してくださいhttpで行うことができます/stackoverflow.com/questions/6378224/nhibernate-queryover-to-join-nrelatedententities –