Created
October 23, 2013 01:06
-
-
Save MarceloNascimento/7110842 to your computer and use it in GitHub Desktop.
Como criar duas conexões no nhibernate ao mesmo tempo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 ByteFX.Data.dll provider for MySql --> | |
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > | |
<session-factory> | |
<property name="connection.driver_class">NHibernate.Driver.MySqlDataDriver</property> | |
<property name="connection.connection_string"> | |
Database=GEFASU;Data Source=localhost;User Id=root;Password=Q!w2e3 | |
</property> | |
<property name="dialect">NHibernate.Dialect.MySQLDialect</property> | |
<property name="hbm2ddl.auto">UPDATE</property> | |
</session-factory> | |
</hibernate-configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment