Interface IApplicationStatusInfo
The Application Status Info, includes information about installation and database version.
Namespace: DotNetNuke.Abstractions.Application
Assembly: DotNetNuke.Abstractions.dll
Syntax
public interface IApplicationStatusInfo
Properties
| Improve this Doc View SourceApplicationMapPath
Gets the application map path.
Declaration
string ApplicationMapPath { get; }
Property Value
Type | Description |
---|---|
System.String | The application map path. |
DatabaseVersion
Gets the database version.
Declaration
Version DatabaseVersion { get; }
Property Value
Type | Description |
---|---|
Version |
Status
Gets the status of application.
Declaration
UpgradeStatus Status { get; }
Property Value
Type | Description |
---|---|
UpgradeStatus |
Methods
| Improve this Doc View SourceGetLastAppliedIteration(Version)
Get the last applied iteration (revision) for a given version.
Declaration
int GetLastAppliedIteration(Version version)
Parameters
Type | Name | Description |
---|---|---|
Version | version | The version to check. |
Returns
Type | Description |
---|---|
System.Int32 | The last applied iteration (revision). |
IncrementalVersionExists(Version)
Checks if incremental sqlDataProvider files exist.
Declaration
bool IncrementalVersionExists(Version version)
Parameters
Type | Name | Description |
---|---|---|
Version | version | The version. |
Returns
Type | Description |
---|---|
System.Boolean | A value indicating whether any incremental sql script file exists. |
Examples
If a 09.08.01.01.sqlDataProvider file exists for a provided version 09.08.01 this method will return true.
| Improve this Doc View SourceIsInstalled()
IsInstalled looks at various file artifacts to determine if DotNetNuke has already been installed.
Declaration
bool IsInstalled()
Returns
Type | Description |
---|---|
System.Boolean | true if installed else false. |
Remarks
If DotNetNuke has been installed, then we should treat database connection errors as real errors. If DotNetNuke has not been installed, then we should expect to have database connection problems since the connection string may not have been configured yet, which can occur during the installation wizard.
SetStatus(UpgradeStatus)
Sets the status.
Declaration
void SetStatus(UpgradeStatus status)
Parameters
Type | Name | Description |
---|---|---|
UpgradeStatus | status | The status. |
UpdateDatabaseVersion(Version)
Updates the database version.
Declaration
void UpdateDatabaseVersion(Version version)
Parameters
Type | Name | Description |
---|---|---|
Version | version | The version. |
UpdateDatabaseVersionIncrement(Version, Int32)
Updates the database version.
Declaration
void UpdateDatabaseVersionIncrement(Version version, int increment)
Parameters
Type | Name | Description |
---|---|---|
Version | version | The version. |
System.Int32 | increment | The increment. |