C# Class PhotoGalleryLibrary.DB.SessionFactory

Afficher le fichier Open project: mnarowski/inzynieria

Méthodes publiques

Свойство Type Description
connectionString string

Méthodes publiques

Méthode 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

Méthode Description
Init ( ) : void

initializes the session for database

Method Details

GetNewSession() public static méthode

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

GetSessionFactory() public static méthode

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

Property Details

connectionString public_oe static_oe property

public static string connectionString
Résultat string