C# Class Zetbox.API.Migration.MigrationProgram

Datei anzeigen Open project: daszat/zetbox

Protected Methods

Method Description
ConfigureBuilder ( ContainerBuilder builder ) : void
CreateMasterContainer ( ZetboxConfig config ) : IContainer
CreateMigrationReport ( IEnumerable srcTables, ISchemaProvider srcSchema, ISchemaProvider dstSchema ) : void
CreateOptionSet ( ) : OptionSet
CreateReport ( ) : void
Execute ( ) : void
ExecuteCore ( IZetboxServerContext ctx ) : void
GetConfigFileName ( ) : string
MigrationProgram ( string name, string arguments ) : System
OpenProvider ( ILifetimeScope scope, string provider, string connectionString ) : ISchemaProvider
PrintHelp ( ) : void
PrintHelpAndExit ( ) : void
ReadConfig ( List extraArguments ) : ZetboxConfig
ReloadStaging ( StagingDatabase stage ) : void
ValidateConfig ( ) : void
WriteLog ( string srcTbl, long srcRows, string dstTbl, long dstRows ) : void

Private Methods

Method Description
Initialize ( ) : void

Method Details

ConfigureBuilder() protected method

protected ConfigureBuilder ( ContainerBuilder builder ) : void
builder Autofac.ContainerBuilder
return void

CreateMasterContainer() protected method

protected CreateMasterContainer ( ZetboxConfig config ) : IContainer
config Zetbox.API.Configuration.ZetboxConfig
return IContainer

CreateMigrationReport() protected static method

protected static CreateMigrationReport ( IEnumerable srcTables, ISchemaProvider srcSchema, ISchemaProvider dstSchema ) : void
srcTables IEnumerable
srcSchema ISchemaProvider
dstSchema ISchemaProvider
return void

CreateOptionSet() protected method

protected CreateOptionSet ( ) : OptionSet
return OptionSet

CreateReport() protected abstract method

protected abstract CreateReport ( ) : void
return void

Execute() protected method

protected Execute ( ) : void
return void

ExecuteCore() protected abstract method

protected abstract ExecuteCore ( IZetboxServerContext ctx ) : void
ctx IZetboxServerContext
return void

GetConfigFileName() protected method

protected GetConfigFileName ( ) : string
return string

MigrationProgram() protected method

protected MigrationProgram ( string name, string arguments ) : System
name string
arguments string
return System

OpenProvider() protected static method

protected static OpenProvider ( ILifetimeScope scope, string provider, string connectionString ) : ISchemaProvider
scope ILifetimeScope
provider string
connectionString string
return ISchemaProvider

PrintHelp() protected method

protected PrintHelp ( ) : void
return void

PrintHelpAndExit() protected method

protected PrintHelpAndExit ( ) : void
return void

ReadConfig() protected method

protected ReadConfig ( List extraArguments ) : ZetboxConfig
extraArguments List
return Zetbox.API.Configuration.ZetboxConfig

ReloadStaging() protected method

protected ReloadStaging ( StagingDatabase stage ) : void
stage StagingDatabase
return void

ValidateConfig() protected method

protected ValidateConfig ( ) : void
return void

WriteLog() protected method

protected WriteLog ( string srcTbl, long srcRows, string dstTbl, long dstRows ) : void
srcTbl string
srcRows long
dstTbl string
dstRows long
return void