I declared in class "lazy='false'" and works!
thanks!
But, now I have this error:
Code:
Could not create the driver from NHibernate.Driver.MySqlDataDriver.
Code:
The IDbCommand and IDbConnection implementation in the assembly MySql.Data could not be found. Ensure that the assembly MySql.Data is located in the application directory or in the Global Assembly Cache. If the assembly is in the GAC, use <qualifyAssembly/> element in the application configuration file to specify the full name of the assembly.
In my Web.confg I put this:
Code:
<add key="hibernate.connection.provider" value="NHibernate.Connection.DriverConnectionProvider" />
<add key="hibernate.dialect" value="NHibernate.Dialect.MySQL5Dialect" />
<add key="hibernate.connection.driver_class" value="NHibernate.Driver.MySqlDataDriver" />
<add key="hibernate.connection.connection_string" value="Database=magicshop;Data Source=localhost;User Id=root;Password=xxxxxxx;" />
And I add Reference the Mysql.Data for .NET