C# Class PiroPiro.DbCleanup.SqlServer.SqlServerStrategy

Base class for strategies that clean up a SQL database
Inheritance: DbCleanupStrategy
Afficher le fichier Open project: benjamine/PiroPiro

Méthodes publiques

Méthode Description
DbExists ( string databaseName, string serverName, string userName = null, string password = null ) : bool
SqlServerStrategy ( Configuration configuration = null ) : System
SqlServerStrategy_Executed ( object sender, EventArgs e ) : void

Private Methods

Méthode Description
Attach ( string databaseName, string serverName, string userName, string password, string mdfFile ) : void
Detach ( string databaseName, string serverName, string userName = null, string password = null ) : void
GetDatabaseFiles ( string databaseName, string serverName, string &mdfFile, string &logFile, string userName = null, string password = null ) : void
GrantFullControl ( string filename, string user ) : void
LocalPathToUnc ( string serverName, string fullpath ) : string

Method Details

DbExists() public static méthode

public static DbExists ( string databaseName, string serverName, string userName = null, string password = null ) : bool
databaseName string
serverName string
userName string
password string
Résultat bool

SqlServerStrategy() public méthode

public SqlServerStrategy ( Configuration configuration = null ) : System
configuration Configuration
Résultat System

SqlServerStrategy_Executed() public méthode

public SqlServerStrategy_Executed ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void