Exemplo n.º 1
0
        public static void RestoreBacpac(this ICakeContext context, String connectionString, String databaseName, FilePath bacpacFilePath)
        {
            Guard.ArgumentIsNotNull(context, nameof(context));
            Guard.ArgumentIsNotNull(connectionString, nameof(connectionString));
            Guard.ArgumentIsNotNull(bacpacFilePath, nameof(bacpacFilePath));

            SqlBacpacImpl.RestoreBacpac(context, connectionString, databaseName, bacpacFilePath.FullPath);
        }
Exemplo n.º 2
0
        public static void CreateBacpacFile(this ICakeContext context, String connectionString, String databaseName, FilePath resultingFilePath)
        {
            Guard.ArgumentIsNotNull(context, nameof(context));
            Guard.ArgumentIsNotNull(connectionString, nameof(connectionString));
            Guard.ArgumentIsNotNull(resultingFilePath, nameof(resultingFilePath));

            SqlBacpacImpl.CreateBacpacFile(context, connectionString, databaseName, resultingFilePath.FullPath);
        }