Share via


SchemaCompareScriptService.GenerateObjectScript Method

Returns a script by using the provided script fragment object.

Namespace:  Microsoft.Data.Schema.Tools.Compare.Schema
Assembly:  Microsoft.Data.Schema.Tools (in Microsoft.Data.Schema.Tools.dll)

Syntax

'Declaration
Public Overridable Function GenerateObjectScript ( _
    fragment As IScriptFragment _
) As String
public virtual string GenerateObjectScript(
    IScriptFragment fragment
)
public:
virtual String^ GenerateObjectScript(
    IScriptFragment^ fragment
)
abstract GenerateObjectScript : 
        fragment:IScriptFragment -> string 
override GenerateObjectScript : 
        fragment:IScriptFragment -> string 
public function GenerateObjectScript(
    fragment : IScriptFragment
) : String

Parameters

Return Value

Type: System.String
A string that contains an executable script.

Remarks

Notes to Inheritors

You can perform one of these three options with the GenerateObjectScript method:

  • Not override this method and thereby accept the default functionality.

  • Override this method, call the base method, and modify the output, if required by the database schema model.

  • Override this method and provide your own script generation functionality.

.NET Framework Security

See Also

Reference

SchemaCompareScriptService Class

Microsoft.Data.Schema.Tools.Compare.Schema Namespace

IScriptFragment

GenerateObjectDefinition