NHibernate code snippet

Here is a sample code snippet that you can use to generate a standard call to use an nHibernate ISession, you will need to make a small adjustment as to how you retrieve the ISession in your own projects.


      
    <Header>
        nHibernate block
        nhblock
        Code snippet for a standard NHibernate session call block
        Mike Cromwell
        
            Expansion
            SurroundsWith
        
     </Header>
    
        
             
        

        <Code>
            
        </Code>
      
    
 
Advertisements