dimenticavo:
l'errore che mi da è persistent class Aql.BusinessLogicLayer.Utente.UtenteInfo, Aql.BusinessLogicLayer.Utente not found
nel momento in cui faccio cfg.AddXmlFile
////////////////////////file TASK.ASPX
Sub test()
Dim cfg As New NHibernate.Cfg.Configuration
'cfg.AddAssembly("Aql.BusinessLogicLayer")
cfg.AddAssembly(System.Reflection.Assembly.GetExecutingAssembly(),
True)
Dim basePath As String = System.Web.HttpContext.Current.Server.MapPath("~/App_Code/VB/BLL/UtenteNH/NHMappings/")
cfg.AddXmlFile(basePath +
"UtenteInfo.hbm.xml") //// ERROREEEEEEEEE "persistent class Aql.BusinessLogicLayer.Utente.UtenteInfo, Aql.BusinessLogicLayer.Utente not found"
'cfg.AddFile("D:/Projects/ssss/WebSite/App_Code/VB/BLL/UtenteNH/NHMappings/Utente.hbm.xml")
Dim factory As ISessionFactory = cfg.BuildSessionFactory()
Dim session As ISession = factory.OpenSession()
Dim transaction As ITransaction = session.BeginTransaction()
Dim newUser As New UtenteInfo
newUser.UsernameAQL =
"bb.vvv"
newUser.Nome =
"aaaaa"
newUser.Cognome =
"bbbb"
' Comunichiamo ad NHibernate che questo oggetto deve essere salvato
session.Save(newUser)
' Commit dei cambiamenti al database e chiusura della ISession
transaction.Commit()
session.Close()