Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to create a join between table based on a column.

Suppose Api and Data are two tables, Data table has a column 'Id' with foreign constraint to table Api.Id

Please tell me how to write query in Nhibernate for below SQL :-

select * from Api join Status on Api.Id == Data.Id
where Api.RowStatus == 1 and Data.PubType == 2
Posted

1 solution

 
Share this answer
 
Comments
Maciej Los 15-Mar-14 12:32pm    
Great!
Abhinav S 15-Mar-14 12:34pm    
Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900