﻿<?xml version="1.0" encoding="utf-8"?>
<!-- 
This template was written to work with NHibernate.Test.
Copy the template to your NHibernate.Test project folder and rename it in hibernate.cfg.xml and change it 
for your own use before compile tests in VisualStudio.
-->
<!-- This is the System.Data.dll provider for SQL Server -->
<hibernate-configuration  xmlns="urn:nhibernate-configuration-2.2" >
	<session-factory name="NHibernate.Test">
    
    <!--<property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
		<property name="connection.connection_string">
      Server=192.168.12.198;Initial Catalog=zktimenet;User Id=sa;Password=123;Persist Security Info=true;
    </property>
		<property name="dialect">NHibernate.Dialect.MsSql2005Dialect</property>
		<property name="show_sql">true</property>
		<property name ="adonet.batch_size">20</property>
		<mapping assembly="ZKTimeNet.DomainModel"/>-->

    <property name="connection.driver_class">NHibernate.Driver.SQLite20Driver</property>
    <property name="connection.connection_string">
      Data Source=ZKTimeNet.db
    </property>
    <property name="dialect">NHibernate.Dialect.SQLiteDialect</property>
    <property name="hbm2ddl.auto">none</property>
    <property name ="adonet.batch_size">1</property>
    <mapping assembly="ZKTimeNet.DomainModel"/>
    <!--
		<property name="connection.driver_class">NHibernate.Driver.MySqlDataDriver</property>
		<property name="connection.connection_string">
      Server=192.168.12.198;Port=3306;Database=zktimenet2;Uid=user;Pwd=123;
    </property>
		<property name="dialect">NHibernate.Dialect.MySQLDialect</property>
		<property name="hbm2ddl.auto">update</property>
		<mapping assembly="ZKTimeNet.DomainModel"/>
     !-->
    <!--<property name="hbm2ddl.auto">create</property>-->
	</session-factory>
</hibernate-configuration>