C# Класс TripsService.AppFiles.Database.SessionFactory

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
connectionString string

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
Init ( ) : void

initializes the session for database

Описание методов

GetNewSession() публичный статический Метод

creates a database connection and opens up a session
public static GetNewSession ( ) : NHibernate.ISession
Результат NHibernate.ISession

GetSessionFactory() публичный статический Метод

checks wheteher the session already exists. if not then creates it
public static GetSessionFactory ( ) : NHibernate.ISessionFactory
Результат NHibernate.ISessionFactory

Описание свойств

connectionString публичное статическое свойство

public static string connectionString
Результат string