I’ve found examples for configurate NHibernate in command line but in C# and I need it in vb, but I don’t find how to do it.
So the question is how to write this in vb:
configuration.Proxy(proxy => proxy.ProxyFactoryFactory<ProxyFactoryFactory>());
configuration.DataBaseIntegration(db =>
{
db.Dialect<MsSql2008Dialect>();
db.ConnectionString = Sql.db;
db.BatchSize = 100;
db.LogSqlInConsole = true;
});
Note: I don’t want to do it in XML.
I succeed!!!
I’ve 2 working sollutions:
and Meta-Knight one (with sub instead of function)
Both Are working well but i did have an other problem with the XML files!
i did this in C# and it was working well:
But in VB you HAVE TO add the project name in class definition like this :
Hope this will help other people!
Thanks to every one