Hi,
In IPreUpdateEventListener.OnPreUpdate() I'm trying to get a new
session like this:
public bool OnPreUpdate(PreUpdateEvent @event)
{
ISession s = @event.Session.SessionFactory.OpenSession();
Webpage p = new Webpage();
p.Name = "test";
s.Save(p);
s.Flush();
return true;
}
Is this the right way to go about this? I keep getting errors about
missing tables when I try to Save() my new entity.
Thanks for any insight you may have!
--
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.