title: Using a Generic Repository pattern with fluent nHibernate
body: <p>I'm currently developing a medium sized application, which will access 2 or more SQL databases, on different sites etc...</p>
  
  <p>I am considering using something similar to this:
  <a href="http://mikehadlow.blogspot.com/2008/03/using-irepository-pattern-with-linq-to.html" rel="noreferrer">http://mikehadlow.blogspot.com/2008/03/using-irepository-pattern-with-linq-to.html</a></p>
  
  <p>However, I want to use fluent nHibernate, in place of Linq-to-SQL (and of course nHibernate.Linq)</p>
  
  <p>Is this viable?</p>
  
  <p>How would I go about configuring this?
  Where would my mapping definitions go etc...?</p>
  
  <p>This application will eventually have many facets - from a WebUI, WCF Library and Windows applications / services.</p>
  
  <p>Also, for example on a "product" table, would I create a "ProductManager" class, that has methods like:</p>
  
  <p>GetProduct, GetAllProducts etc...</p>
  
  <p>Any pointers are greatly received.</p>