C# 클래스 N2.Edit.Installation.NHInstallationManager

상속: InstallationManager
파일 보기 프로젝트 열기: bherila/n2cms

공개 메소드들

메소드 설명
CheckConnection ( string &stackTrace ) : string
CheckDatabase ( ) : string

Method that will checks the database. If something goes wrong an exception is thrown.

CheckRootItem ( ) : string

Checks the root node in the database. Throws an exception if there is something really wrong with it.

CheckStartPage ( ) : string

Checks the root node in the database. Throws an exception if there is something really wrong with it.

DropDatabaseTables ( ) : void
ExecuteQuery ( string query ) : IEnumerable
ExportSchema ( ) : string
ExportSchema ( TextWriter output ) : void
ExportUpgradeSchema ( ) : string
GenerateCommand ( CommandType type, string sqlString ) : IDbCommand
GetConnection ( ) : IDbConnection
GetResourceString ( string resourceKey ) : string
GetStatus ( ) : DatabaseStatus
Install ( ) : void

Executes sql create database scripts.

NHInstallationManager ( IHost host, DefinitionMap map, ContentActivator activator, Importer importer, IPersister persister, ISessionProvider sessionProvider, IConfigurationBuilder configurationBuilder, IWebContext webContext, ConnectionMonitor connectionContext, DatabaseSection config ) : System
Upgrade ( ) : void

비공개 메소드들

메소드 설명
ClearNHCache ( ) : void
GetDriver ( ) : IDriver
IsSql ( DatabaseStatus status ) : bool
IsTrashed ( ContentItem item ) : bool

Determines if the given item is in the trash or is the trash can itself. There will be problems if the root node or start page is trashed.

UpdateConnection ( DatabaseStatus status ) : bool
UpdateCount ( DatabaseStatus status ) : bool
UpdateItems ( DatabaseStatus status ) : bool
UpdateRecordedValues ( DatabaseStatus status ) : void
UpdateSchema ( DatabaseStatus status ) : bool
UpdateVersion ( DatabaseStatus status ) : bool

메소드 상세

CheckConnection() 공개 메소드

public CheckConnection ( string &stackTrace ) : string
stackTrace string
리턴 string

CheckDatabase() 공개 메소드

Method that will checks the database. If something goes wrong an exception is thrown.
public CheckDatabase ( ) : string
리턴 string

CheckRootItem() 공개 메소드

Checks the root node in the database. Throws an exception if there is something really wrong with it.
public CheckRootItem ( ) : string
리턴 string

CheckStartPage() 공개 메소드

Checks the root node in the database. Throws an exception if there is something really wrong with it.
public CheckStartPage ( ) : string
리턴 string

DropDatabaseTables() 공개 메소드

public DropDatabaseTables ( ) : void
리턴 void

ExecuteQuery() 공개 메소드

public ExecuteQuery ( string query ) : IEnumerable
query string
리턴 IEnumerable

ExportSchema() 공개 메소드

public ExportSchema ( ) : string
리턴 string

ExportSchema() 공개 메소드

public ExportSchema ( TextWriter output ) : void
output TextWriter
리턴 void

ExportUpgradeSchema() 공개 메소드

public ExportUpgradeSchema ( ) : string
리턴 string

GenerateCommand() 공개 메소드

public GenerateCommand ( CommandType type, string sqlString ) : IDbCommand
type CommandType
sqlString string
리턴 IDbCommand

GetConnection() 공개 메소드

public GetConnection ( ) : IDbConnection
리턴 IDbConnection

GetResourceString() 공개 정적인 메소드

public static GetResourceString ( string resourceKey ) : string
resourceKey string
리턴 string

GetStatus() 공개 메소드

public GetStatus ( ) : DatabaseStatus
리턴 DatabaseStatus

Install() 공개 메소드

Executes sql create database scripts.
public Install ( ) : void
리턴 void

NHInstallationManager() 공개 메소드

public NHInstallationManager ( IHost host, DefinitionMap map, ContentActivator activator, Importer importer, IPersister persister, ISessionProvider sessionProvider, IConfigurationBuilder configurationBuilder, IWebContext webContext, ConnectionMonitor connectionContext, DatabaseSection config ) : System
host IHost
map DefinitionMap
activator ContentActivator
importer Importer
persister IPersister
sessionProvider ISessionProvider
configurationBuilder IConfigurationBuilder
webContext IWebContext
connectionContext ConnectionMonitor
config DatabaseSection
리턴 System

Upgrade() 공개 메소드

public Upgrade ( ) : void
리턴 void