public MsSqlDatabasePublisher(ICmdExecutor cmdExecutor, string sqlPackageDirPath)
        {
            Guard.NotNull(cmdExecutor, "cmdExecutor");

              _cmdExecutor = cmdExecutor;

              _sqlPackageExePath = string.IsNullOrEmpty(sqlPackageDirPath)
            ? SqlPackageExeName
            : Path.Combine(sqlPackageDirPath, SqlPackageExeName);
        }
示例#2
0
        public MsSqlDatabasePublisher(ICmdExecutor cmdExecutor, string sqlPackageDirPath)
        {
            Guard.NotNull(cmdExecutor, "cmdExecutor");

            _cmdExecutor = cmdExecutor;

            _sqlPackageExePath = string.IsNullOrEmpty(sqlPackageDirPath)
        ? SqlPackageExeName
        : Path.Combine(sqlPackageDirPath, SqlPackageExeName);
        }
 public void Execute(ICmdExecutor executor)
 {
     executor.ExecuteCmdPacket(this);
 }
示例#4
0
 protected IInstallCmd GetExecutorsAssociatedCommand(ICmdExecutor executor)
 {
     return(cmdExecutorPairs.Single(x => x.Item2 == executor).Item1);
 }