-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: How to perform insert of more Recrods into Table ?
PostPosted: Tue Feb 13, 2007 10:02 am 
Newbie

Joined: Tue Feb 13, 2007 9:58 am
Posts: 6
Hi, is there some way how to perform an insert of more records ? I'm trying to do it this way:

OFS.ORM.Data.NHibernateSessionManager.Instance.BeginTransaction();
try
{
long id = -1;
foreach (OBAust obj in obAustList)
{
dao.Save(obj);
}
dao.CommitChanges();
OFS.ORM.Data.NHibernateSessionManager.Instance.CommitTransaction();
}
catch (Exception e)
{
log.Error("Error in SaveOBList", e);
}

??? is there a better way how to make this ??


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.