<?xml version="1.0"?> <configuration> <configSections> <section name="hibernate-configuration" type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate" /> </configSections> <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"> <session-factory> <property name="dialect">NHibernate.Dialect.MsSql2005Dialect</property> <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property> <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property> <property name="connection.connection_string">Data Source=YOUR_DB_SERVER;Database=Northwind;User ID=YOUR_USERNAME;Password=YOUR_PASSWORD;</property> <property name="connection.isolation">ReadCommitted</property> <property name="default_schema">Northwind.dbo</property> <!-- HBM Mapping Files --> <mapping assembly="BasicSample.Core" /> </session-factory> </hibernate-configuration> <!-- Compatible with IIS 6 --> <system.web> <compilation debug="true" /> <httpModules> <add name="NHibernateSessionModule" type="BasicSample.Web.NHibernateSessionModule"/> </httpModules> </system.web> <!-- Compatible with IIS 7 --> <!-- <system.webServer> <modules> <add name="NHibernateSessionModule" type="BasicSample.Web.NHibernateSessionModule" preCondition="managedHandler" /> </modules> <validation validateIntegratedModeConfiguration="false" /> </system.webServer> --> </configuration>
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)