DLM Automation 2

New-DlmManualDatabaseSchemaValidation

New-DlmManualDatabaseSchemaValidation

Wraps a project as if validated so that it can be packaged.

Syntax

New-DlmManualDatabaseSchemaValidation [-InputObject] <string> [<CommonParameters>]

Description

The New-DlmManualDatabaseSchemaValidation cmdlet takes a database project and creates an IProject object that represents the validated project.

The cmdlet assumes you have validated the schema by other means and does not attempt to perform its own validation.

Parameters

-InputObject <System.String>

The path to the database project to validate.

Aliases None
Required? true
Position? 0
Default Value None
Accept Pipeline Input true (ByValue)
Accept Wildcard Characters false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see http://technet.microsoft.com/en-us/library/hh847884.aspx.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • System.String

    The path to the database project to validate.

Return values

The output type is the type of the objects that the cmdlet emits.

  • RedGate.DLMAutomation.Compare.Domain.Projects.IProject

Examples

---------- EXAMPLE 1 ----------

$project = "C:\Work\scripts"
$validatedSchema = $project | New-DlmManualDatabaseSchemaValidation

This example shows how to use the New-DlmManualDatabaseSchemaValidation cmdlet to obtain an IProject from a SQL Source Control Project which can be used to create a build artifact.

It is recommended to use Invoke-DlmDatabaseSchemaValidation instead if you are able to - this cmdlet does not guarantee your project is actually valid, and your process may fail unexpectedly later if it is not. Please only use this cmdlet if you are certain that the changes you have made are applicable. This cmdlet will output an instance of a IProject object that can be used as the input for other DLM Automation cmdlets.

---------- EXAMPLE 2 ----------

$project = "C:\Work\project\project.sqlproj"
$validatedProject = $project | New-DlmManualDatabaseSchemaValidation

This example shows how to use the New-DlmManualDatabaseSchemaValidation cmdlet to obtain an IProject from a Redgate Database Project which can be used to create a build artifact.

It is recommended to use Invoke-DlmDatabaseSchemaValidation instead if you are able to - this cmdlet does not guarantee your project is actually valid, and your process may fail unexpectedly later if it is not. Please only use this cmdlet if you are certain that the changes you have made are applicable. This cmdlet will output an instance of a IProject object that can be used as the input for other DLM Automation cmdlets.


Didn't find what you were looking for?