|
Hi,
I only want to make an easy inner join of two tables, but I don't get it work.
Here is the SQL query:
SELECT *
FROM dbo.team INNER JOIN
dbo.statistik ON dbo.team.TeamID = dbo.statistik.TeamID
Table team is mapped in class Team and table statistik in class Statistik.
I tried to get it work with NHibernate, but I always get an error.
HQL:
return session.CreateQuery(@"SELECT * FROM Statistik INNER JOIN Team ON Statistik.TeamID = Team.TeamID").List();
I also tried it with CreateSQLQuery and with CreateCriteria, but it's always the same ... error.
Did somebody has an idea, how I could solve this problem?
regards,
Tribjun
|