コード例 #1
0
ファイル: BaselineCommand.cs プロジェクト: RekGRpth/piggy
 public BaselineCommand()
 {
     _databaseFeature         = Enable <DatabaseFeature>();
     _usernamePasswordFeature = Enable <UsernamePasswordFeature>();
     _scriptRootFeature       = Enable <ScriptRootFeature>();
     _loggingFeature          = Enable <LoggingFeature>();
 }
コード例 #2
0
        public UpdateCommand()
        {
            _databaseFeature         = Enable <DatabaseFeature>();
            _usernamePasswordFeature = Enable <UsernamePasswordFeature>();
            _scriptRootFeature       = Enable <ScriptRootFeature>();
            _defineVariablesFeature  = Enable <DefineVariablesFeature>();

            Options.Add("no-create", "If the database does not already exist, do not attempt to create it", v => _createIfMissing = false);

            _loggingFeature = Enable <LoggingFeature>();
        }
コード例 #3
0
ファイル: UpdateCommand.cs プロジェクト: gridl/piggy
        public UpdateCommand()
        {
            _databaseFeature         = Enable <DatabaseFeature>();
            _usernamePasswordFeature = Enable <UsernamePasswordFeature>();

            Options.Add(
                "s=|script-root=",
                "The root directory to search for scripts",
                v => _scriptRoot = v);

            _defineVariablesFeature = Enable <DefineVariablesFeature>();

            Options.Add("no-create", "If the database does not already exist, do not attempt to create it", v => _createIfMissing = false);

            _loggingFeature = Enable <LoggingFeature>();
        }
コード例 #4
0
ファイル: LogCommand.cs プロジェクト: RekGRpth/piggy
 public LogCommand()
 {
     _databaseFeature         = Enable <DatabaseFeature>();
     _usernamePasswordFeature = Enable <UsernamePasswordFeature>();
     _loggingFeature          = Enable <LoggingFeature>();
 }