-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathapp.config.transform
31 lines (31 loc) · 1.56 KB
/
app.config.transform
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="hibernate-configuration" type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate" />
</configSections>
<appSettings>
<!--MultiTenancyFramework: Used by NHibernate to locate entities. Add assemblies where your entities reside. -->
<add key="EntityAssemblies" value="" />
</appSettings>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
<!--Defaulting to MySql; but the SQL settings are provided too. Other settings can be found easily on the web-->
<!--<property name="dialect">NHibernate.Dialect.MsSql2005Dialect</property>
<property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>-->
<property name="dialect">NHibernate.Dialect.MySQLDialect</property>
<property name="connection.driver_class">NHibernate.Driver.MySqlDataDriver</property>
<property name="connection.connection_string">
<!--Modify as needed-->
server=YourServer;user id=YourUserName;password=YourPassword;database=YourDb
</property>
<!--Modify as needed-->
<property name="adonet.batch_size">1000</property>
<property name="command_timeout">360</property>
<!--Schema update. Remove in production-->
<property name="hbm2ddl.auto">update</property>
<!-- Specify the assembly name(s) where your mapping files reside -->
<!--<mapping assembly="Assembly1" />
<mapping assembly="Assembly2" />-->
</session-factory>
</hibernate-configuration>
</configuration>