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
- fragment
Type: Microsoft.Data.Schema.ScriptDom.IScriptFragment
An IScriptFragment object as generated by the GenerateObjectDefinition method.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
SchemaCompareScriptService Class