C# Class PhotoGalleryLibrary.DB.SessionFactory

ファイルを表示 Open project: mnarowski/inzynieria

Public Properties

Property Type Description
connectionString string

Public Methods

Method Description
GetNewSession ( ) : NHibernate.ISession

creates a database connection and opens up a session

GetSessionFactory ( ) : NHibernate.ISessionFactory

checks wheteher the session already exists. if not then creates it

Private Methods

Method Description
Init ( ) : void

initializes the session for database

Method Details

GetNewSession() public static method

creates a database connection and opens up a session
public static GetNewSession ( ) : NHibernate.ISession
return NHibernate.ISession

GetSessionFactory() public static method

checks wheteher the session already exists. if not then creates it
public static GetSessionFactory ( ) : NHibernate.ISessionFactory
return NHibernate.ISessionFactory

Property Details

connectionString public_oe static_oe property

public static string connectionString
return string