C# Class PiroPiro.DbCleanup.DbCleanupStrategy

Represents a strategy to clean up a database (restore to an original state)
Mostra file Open project: benjamine/PiroPiro Class Usage Examples

Public Methods

Method Description
Execute ( ) : void

Execute this strategy cleaning up the database

FromConfig ( Configuration configuration = null ) : DbCleanupStrategy

Create a strategy based on configuration settings

SetAsDefault ( ) : void

Set this strategy as default

Protected Methods

Method Description
DbCleanupStrategy ( Configuration configuration = null ) : System
DoExecute ( ) : void

Method Details

DbCleanupStrategy() protected method

protected DbCleanupStrategy ( Configuration configuration = null ) : System
configuration Configuration
return System

DoExecute() protected abstract method

protected abstract DoExecute ( ) : void
return void

Execute() public method

Execute this strategy cleaning up the database
public Execute ( ) : void
return void

FromConfig() public static method

Create a strategy based on configuration settings
public static FromConfig ( Configuration configuration = null ) : DbCleanupStrategy
configuration Configuration
return DbCleanupStrategy

SetAsDefault() public method

Set this strategy as default
public SetAsDefault ( ) : void
return void