I solved the problem!!!! wohooo

..
Dim dictionary As New Dictionary(Of String, String)
        Dim connectionString As String
        connectionString = "Server=localhost;Database=testnh;User
ID=t1;Password=1234"
        dictionary.Add("dialect", "NHibernate.Dialect.MySQL5Dialect")
        dictionary.Add("connection.provider",
"NHibernate.Connection.DriverConnectionProvider")
        dictionary.Add("connection.driver_class",
"NHibernate.Driver.MySqlDataDriver")
        dictionary.Add("connection.connection_string",
connectionString)
        dictionary.Add("proxyfactory.factory_class",
"NHibernate.ByteCode.LinFu.ProxyFactoryFactory,
NHibernate.ByteCode.LinFu")
        config.AddProperties(dictionary)
        config.AddFile("Dummy.hbm.xml")

        Dim myFactory As ISessionFactory = config.BuildSessionFactory

        Dim mySession As ISession = myFactory.OpenSession

        Dim myTransaction As ITransaction = mySession.BeginTransaction

...

and the property "copy local" of the reference of mysql.data has to be
true!!

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to