Freigeben über


TSqlModel.AddObjects-Methode (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 (in Microsoft.SqlServer.Dac.Extensions.dll)

Syntax

'Declaration
Public Sub AddObjects ( _
    inputScript As String, _
    options As TSqlObjectOptions _
)
'Usage
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
)

Parameter

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

Ausnahmen

Ausnahme Bedingung
ArgumentNullException

If the supplied inputScript is null.

RemotingException

If communication with the TSqlObjectService fails.

Siehe auch

Verweis

TSqlModel Klasse

AddObjects-Überladung

Microsoft.SqlServer.Dac.Model-Namespace