How can I save a collection of objects in NHibernate? I'm migration from SubSonic (I don't like SubSonic 3 version and SubSonic 2 is dead...) and this used to be a simple operation...
There is a way to map a collection(without associations) to complete this task?
My actual code is:
using (ISession session = NHibernateHelper.GetCurrentSession())
{
using (ITransaction transaction = session.BeginTransaction())
{
foreach (var player in players)
{
session.Save(player);
transaction.Commit();
}
}
}
Thanks in advance!