Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Implementations of ScriptDomGenerator can create "Create", "Alter", or "Drop" versions of statements based on the incoming model element.
Namespace: Microsoft.Data.Schema.Sql.SchemaModel
Assembly: Microsoft.Data.Schema.Sql (in Microsoft.Data.Schema.Sql.dll)
Syntax
'Declaration
Public Overrides Function TryGenerateScriptDom ( _
element As IModelElement, _
operation As ScriptDomOperation, _
<OutAttribute> ByRef fragment As IScriptFragment _
) As Boolean
public override bool TryGenerateScriptDom(
IModelElement element,
ScriptDomOperation operation,
out IScriptFragment fragment
)
public:
virtual bool TryGenerateScriptDom(
IModelElement^ element,
ScriptDomOperation operation,
[OutAttribute] IScriptFragment^% fragment
) override
abstract TryGenerateScriptDom :
element:IModelElement *
operation:ScriptDomOperation *
fragment:IScriptFragment byref -> bool
override TryGenerateScriptDom :
element:IModelElement *
operation:ScriptDomOperation *
fragment:IScriptFragment byref -> bool
public override function TryGenerateScriptDom(
element : IModelElement,
operation : ScriptDomOperation,
fragment : IScriptFragment
) : boolean
Parameters
- element
Type: Microsoft.Data.Schema.SchemaModel.IModelElement
Specifies the element.
- operation
Type: Microsoft.Data.Schema.SchemaModel.ScriptDomOperation
Specifies the ScriptDOM generation operation.
- fragment
Type: Microsoft.Data.Schema.ScriptDom.IScriptFragment%
The created ScriptDOM for the specified element and operation, or null.
Return Value
Type: System.Boolean
true if the operation is supported for the specified element; otherwise, false.
Remarks
If the statement is not supported for the element parameter, null will be returned.
.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.