Esempio n. 1
0
        public static void PublishDacpacFile(this ICakeContext context, String connectionString, String targetDatabaseName, FilePath dacpacFilePath, PublishDacpacSettings settings = null)
        {
            Guard.ArgumentIsNotNull(context, nameof(context));
            Guard.ArgumentIsNotNull(connectionString, nameof(connectionString));
            Guard.ArgumentIsNotNull(dacpacFilePath, nameof(dacpacFilePath));

            SqlDacpacImpl.PublishDacpacFile(context, connectionString, targetDatabaseName, dacpacFilePath.FullPath, settings);
        }
Esempio n. 2
0
        public static void ExtractDacpacFile(this ICakeContext context, String connectionString, String targetDatabaseName, ExtractDacpacSettings settings)
        {
            Guard.ArgumentIsNotNull(context, nameof(context));
            Guard.ArgumentIsNotNull(connectionString, nameof(connectionString));
            Guard.ArgumentIsNotNull(targetDatabaseName, nameof(targetDatabaseName));
            Guard.ArgumentIsNotNull(settings, nameof(settings));

            SqlDacpacImpl.ExtractDacpacFile(context, connectionString, targetDatabaseName, settings);
        }