Thanks for your reply.
Here is how we can insert data using IStatelessSession.
using (IStatelessSession statelessSession =
sessionFactory.OpenStatelessSession())
using (ITransaction transaction =
statelessSession.BeginTransaction()) {
foreach (var testObject in testObjects) {
statelessSession.Insert(testObject);
}
transaction.Commit();
}
Now, on the action of a controller how would I use this code.
The SharpArch.Data.NHibernate.NHibernateSession class on the SharpArch
has got all the methods where it creates the Configuration.
It does not seem to have any method that works with IStatelessSession.
Please advice.
Now, if I want to put this in a action, how would I get the
On 24 Nov, 17:38, Asbjørn Ulsberg <
asbjo...@gmail.com> wrote:
> Can you provide code on how you would do this outside of S#arp
> Architecture? If an IStatelessSession is obtainable through vanilla
> NHibernate, it should be so through S#arp as well.
>
> -Asbjørn
>