Método TSqlModel.AddObjects (TSqlScript, TSqlObjectOptions)
Add Objects to the model based on the contents of a TSqlScript object, plus additional metadata defined by a TSqlObjectOptions object The script should be valid TSql with no parse errors.
Namespace: Microsoft.SqlServer.Dac.Model
Assembly: Microsoft.SqlServer.Dac.Extensions (em Microsoft.SqlServer.Dac.Extensions.dll)
Sintaxe
'Declaração
Public Sub AddObjects ( _
inputScript As TSqlScript, _
options As TSqlObjectOptions _
)
'Uso
Dim instance As TSqlModel
Dim inputScript As TSqlScript
Dim options As TSqlObjectOptions
instance.AddObjects(inputScript, options)
public void AddObjects(
TSqlScript inputScript,
TSqlObjectOptions options
)
public:
void AddObjects(
TSqlScript^ inputScript,
TSqlObjectOptions^ options
)
member AddObjects :
inputScript:TSqlScript *
options:TSqlObjectOptions -> unit
public function AddObjects(
inputScript : TSqlScript,
options : TSqlObjectOptions
)
Parâmetros
- inputScript
Tipo: Microsoft.SqlServer.TransactSql.ScriptDom.TSqlScript
The TSqlScript to add.
- options
Tipo: Microsoft.SqlServer.Dac.Model.TSqlObjectOptions
Options defining how to interpret the script.
Exceções
Exceção | Condição |
---|---|
ArgumentNullException | If the supplied inputScript is null. |
RemotingException | If communication with the TSqlObjectService fails. |