|
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by Sculpture Code Generation Engine.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// Generated On : 28/08/2008 06:20:10 م
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using NHibernate;
namespace DataAccess
{
/// <summary>
/// Repository Base Class
/// </summary>
public partial class RepositoryBase
{
protected ISession NHibernateSession
{
get
{
return NHibernateSessionManager.Instance.GetSession();
}
}
public void CommitChanges()
{
if (NHibernateSessionManager.Instance.HasOpenTransaction())
NHibernateSessionManager.Instance.CommitTransaction();
else
NHibernateSessionManager.Instance.GetSession().Flush();
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Program Manager in Sculpture project, Interesting in .NET Model driven development.