mysql - Could not create the driver from NHibernate.Driver.MySqlDataDriver -


i used code in hibernate.cfg.xml configuration:

<?xml version="1.0"?> <hibernate-configuration xmlns= "urn:nhibernate-configuration-2.2">   <session-factory>      <!-- sqlserver: provider --><!--     <property name="connection.provider"> nhibernate.connection.driverconnectionprovider </property>-->        <!-- sqlserver: driver -->     <property name="connection.driver_class"> nhibernate.driver.mysqldatadriver </property>      <!-- sqlserver: dialeto -->     <property name="dialect"> nhibernate.dialect.mysqldialect </property>      <!-- sqlserver: connection string -->     <property name="connection.connection_string"> database=nhibernate;data source=localhost;user id=root;password=xxxx</property>      <!-- classe que serĂ¡ utilizada para proxy        (lazyloading) -->     <property name="proxyfactory.factory_class"> nhibernate.bytecode.linfu.proxyfactoryfactory, nhibernate.bytecode.linfu </property>   </session-factory> </hibernate-configuration> 

i have problem create database.

nhibernate.hibernateexception: not create driver nhibernate.driver.mysqldatadriver. ---> system.reflection.targetinvocationexception: exception has been thrown target of invocation. ---> nhibernate.hibernateexception: idbcommand , idbconnection implementation in assembly mysql.data not found. ...

what should do?

it's simple: add mysql.data.dll project's bin folder.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -