Partilhar via


Método TSqlModel.AddObjects (String, TSqlObjectOptions)

Adds Objects to the model based on the contents of a TSql Script string, plus additional metadata defined by a TSqlObjectOptions object The script should consist of valid TSql DDL statements.

Namespace:  Microsoft.SqlServer.Dac.Model
Assembly:  Microsoft.SqlServer.Dac.Extensions (em Microsoft.SqlServer.Dac.Extensions.dll)

Sintaxe

'Declaração
Public Sub AddObjects ( _
    inputScript As String, _
    options As TSqlObjectOptions _
)
'Uso
Dim instance As TSqlModel 
Dim inputScript As String 
Dim options As TSqlObjectOptions

instance.AddObjects(inputScript, options)
public void AddObjects(
    string inputScript,
    TSqlObjectOptions options
)
public:
void AddObjects(
    String^ inputScript, 
    TSqlObjectOptions^ options
)
member AddObjects : 
        inputScript:string * 
        options:TSqlObjectOptions -> unit
public function AddObjects(
    inputScript : String, 
    options : TSqlObjectOptions
)

Parâmetros

  • inputScript
    Tipo: System.String
    Script containing TSql DDL statements.

Exceções

Exceção Condição
ArgumentNullException

If the supplied inputScript is null.

RemotingException

If communication with the TSqlObjectService fails.

Consulte também

Referência

TSqlModel Classe

Sobrecarregado AddObjects

Namespace Microsoft.SqlServer.Dac.Model