Share via


TSqlModel.AddObjects Method (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
)

Parameters

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

Exceptions

Exception Condition
ArgumentNullException

If the supplied inputScript is null.

RemotingException

If communication with the TSqlObjectService fails.

See Also

Reference

TSqlModel Class

AddObjects Overload

Microsoft.SqlServer.Dac.Model Namespace