C# Class EnterpriseWebLibrary.InstallationSupportUtility.DatabaseAbstraction.Databases.SqlServer

Inheritance: Database
ファイルを表示 Open project: enduracode/enterprise-web-library

Private Properties

Property Type Description
Database List
Database List
Database int
Database void
Database void
Database void
Database void
deleteAndReCreateFromFile void
executeDbMethodAgainstMaster void
executeDbMethodWithSpecifiedDatabaseInfo void
executeLongRunningCommand void
executeMethodWithDbExceptionHandling void
getLogIdFromFileName int
getStandbyFilePath string

Public Methods

Method Description
ExecuteDbMethod ( Action method ) : void
GetLogFilesOrderedByNewest ( string folderPath, string includeOnlyFilesNewerThanThisLogFileName = "" ) : IEnumerable

Returns the list of file names in the given folder, ordered with the newest log file first (according to ID). The predicate uses the database ID to determine if the file should be included in the results.

GetLogSummary ( string folderPath ) : string
SqlServer ( EnterpriseWebLibrary.DatabaseSpecification.Databases.SqlServerInfo info, string dataLogicalFileName, string logLogicalFileName ) : System

Private Methods

Method Description
Database ( string procedure ) : List
Database ( ) : List
Database ( ) : int
Database ( ) : void
Database ( int value ) : void
Database ( string folderPath ) : void
Database ( string filePath, bool keepDbInStandbyMode ) : void
deleteAndReCreateFromFile ( DBConnection cn, string filePath, bool keepDbInStandbyMode ) : void
executeDbMethodAgainstMaster ( Action method ) : void
executeDbMethodWithSpecifiedDatabaseInfo ( EnterpriseWebLibrary.DatabaseSpecification.Databases.SqlServerInfo info, Action method ) : void
executeLongRunningCommand ( DBConnection cn, string commandText ) : void
executeMethodWithDbExceptionHandling ( System.Action method ) : void
getLogIdFromFileName ( string logFileName ) : int
getStandbyFilePath ( ) : string

Method Details

ExecuteDbMethod() public method

public ExecuteDbMethod ( Action method ) : void
method Action
return void

GetLogFilesOrderedByNewest() public static method

Returns the list of file names in the given folder, ordered with the newest log file first (according to ID). The predicate uses the database ID to determine if the file should be included in the results.
public static GetLogFilesOrderedByNewest ( string folderPath, string includeOnlyFilesNewerThanThisLogFileName = "" ) : IEnumerable
folderPath string
includeOnlyFilesNewerThanThisLogFileName string
return IEnumerable

GetLogSummary() public method

public GetLogSummary ( string folderPath ) : string
folderPath string
return string

SqlServer() public method

public SqlServer ( EnterpriseWebLibrary.DatabaseSpecification.Databases.SqlServerInfo info, string dataLogicalFileName, string logLogicalFileName ) : System
info EnterpriseWebLibrary.DatabaseSpecification.Databases.SqlServerInfo
dataLogicalFileName string
logLogicalFileName string
return System