Advertisement
Guest User

Untitled

a guest
Apr 27th, 2015
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. using (ISession session = NHibernateHelper.OpenSession())
  2. {
  3. using (ITransaction transaction = session.BeginTransaction())
  4. {
  5. session.QueryOver<T>().Where() // all ok
  6.  
  7. }
  8. }
  9.  
  10. productRepository.ExecuteQuery(over =>
  11. {
  12. IQueryOver<Product> inOtherContext = over;
  13. inOtherContext.Where // where method not exists
  14. });
  15.  
  16. IQueryOver<Product, Product>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement