C# 클래스 Subtext.Installation.SqlInstaller

파일 보기 프로젝트 열기: ayende/Subtext 1 사용 예제들

공개 메소드들

메소드 설명
GetCurrentInstallationVersion ( ) : System.Version

Gets the Version of the current Subtext data store (ie. SQL Server). This is the value stored in the database. If it does not match the actual assembly version, we may need to run an upgrade.

Install ( System.Version assemblyVersion ) : void
ListInstallationScripts ( System.Version minVersionExclusive, System.Version maxVersionInclusive ) : string[]

Returns a collection of installation script names with a version less than or equal to the max version.

NeedsUpgrade ( System.Version installationVersion ) : bool

Gets a value indicating whether the subtext installation needs an upgrade to occur.

SqlInstaller ( string connectionString ) : System
UpdateInstallationVersionNumber ( System.Version newVersion, SqlTransaction transaction ) : void

Updates the value of the current installed version within the subtext_Version table.

Upgrade ( ) : void

Upgrades this instance. Returns true if it was successful.

비공개 메소드들

메소드 설명
CreateParameter ( string name, SqlDbType dbType, int size, object value ) : SqlParameter

메소드 상세

GetCurrentInstallationVersion() 공개 메소드

Gets the Version of the current Subtext data store (ie. SQL Server). This is the value stored in the database. If it does not match the actual assembly version, we may need to run an upgrade.
public GetCurrentInstallationVersion ( ) : System.Version
리턴 System.Version

Install() 공개 메소드

public Install ( System.Version assemblyVersion ) : void
assemblyVersion System.Version
리턴 void

ListInstallationScripts() 공개 메소드

Returns a collection of installation script names with a version less than or equal to the max version.
public ListInstallationScripts ( System.Version minVersionExclusive, System.Version maxVersionInclusive ) : string[]
minVersionExclusive System.Version The min verison exclusive.
maxVersionInclusive System.Version The max version inclusive.
리턴 string[]

NeedsUpgrade() 공개 메소드

Gets a value indicating whether the subtext installation needs an upgrade to occur.
public NeedsUpgrade ( System.Version installationVersion ) : bool
installationVersion System.Version
리턴 bool

SqlInstaller() 공개 메소드

public SqlInstaller ( string connectionString ) : System
connectionString string
리턴 System

UpdateInstallationVersionNumber() 공개 메소드

Updates the value of the current installed version within the subtext_Version table.
public UpdateInstallationVersionNumber ( System.Version newVersion, SqlTransaction transaction ) : void
newVersion System.Version New version.
transaction System.Data.SqlClient.SqlTransaction The transaction to perform this action within.
리턴 void

Upgrade() 공개 메소드

Upgrades this instance. Returns true if it was successful.
public Upgrade ( ) : void
리턴 void