C# Class Subtext.Installation.Import.DotText095ImportProvider

Imports blog data from a .TEXT 0.95 database.
Inheritance: Subtext.Extensibility.Providers.ImportProvider
Show file Open project: ayende/Subtext

Public Methods

Method Description
GatherImportInformation ( ) : Control

Initializes this import provider.

This method is called by the import engine in order to ask the provider what pieces of information it needs from the user in order to proceed with the import.

This method returns a Control used to gather the required installation information. This control will be returned back to the provider after the user provides the information.

Import ( Control populatedControl ) : void

Provides the import information as provided by the user back into the import provider. The control passed in should be the same as that provided in GatherImportInformation, but with user values supplied within it.

ValidateImportInformation ( Control populatedControl ) : string

Validates the installation information provided by the user. Returns a string with an explanation of why it is incorrect.

Private Methods

Method Description
DoesTableExist ( string tableName, ConnectionString connectionString ) : bool
DoesTableExist ( string tableName, string ownerName, ConnectionString connectionString ) : bool
GetConnectionStringsFromControl ( Control populatedControl, string &dotTextConnectionString ) : void
GetTableCount ( string tableName, ConnectionString connectionString ) : int

Method Details

GatherImportInformation() public method

Initializes this import provider.

This method is called by the import engine in order to ask the provider what pieces of information it needs from the user in order to proceed with the import.

This method returns a Control used to gather the required installation information. This control will be returned back to the provider after the user provides the information.

public GatherImportInformation ( ) : Control
return System.Web.UI.Control

Import() public method

Provides the import information as provided by the user back into the import provider. The control passed in should be the same as that provided in GatherImportInformation, but with user values supplied within it.
public Import ( Control populatedControl ) : void
populatedControl System.Web.UI.Control Populated control.
return void

ValidateImportInformation() public method

Validates the installation information provided by the user. Returns a string with an explanation of why it is incorrect.
public ValidateImportInformation ( Control populatedControl ) : string
populatedControl System.Web.UI.Control control used to provide information.
return string