大家看看,这段代码怎么样?合适着不?性能上各方面都全面评价下
ISession session = NHibernateHelper.GetSession(); try { session.Save(VideoSourceNode); session.Flush(); } finally { session.Close(); }