Método TSqlModel.AddObjects (TSqlScript)
Adds objects to the model based on the contents of a TSqlScript 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 _
)
'Uso
Dim instance As TSqlModel
Dim inputScript As TSqlScript
instance.AddObjects(inputScript)
public void AddObjects(
TSqlScript inputScript
)
public:
void AddObjects(
TSqlScript^ inputScript
)
member AddObjects :
inputScript:TSqlScript -> unit
public function AddObjects(
inputScript : TSqlScript
)
Parâmetros
- inputScript
Tipo: Microsoft.SqlServer.TransactSql.ScriptDom.TSqlScript
The TSqlScript to add.
Exceções
Exceção | Condição |
---|---|
ArgumentNullException | If the supplied inputScript is null. |
RemotingException | If communication with the TSqlObjectService fails. |