ScriptDomGenerator Class
Provides a base class for implementations that can generate a script Document Object Model (DOM) from one model element; it is used to generate an IScriptFragment from an IModelElement.
Inheritance Hierarchy
System.Object
Microsoft.Data.Schema.SchemaModel.ScriptDomGenerator
Microsoft.Data.Schema.Sql.SchemaModel.SqlScriptDomGenerator
Namespace: Microsoft.Data.Schema.SchemaModel
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Public MustInherit Class ScriptDomGenerator
public abstract class ScriptDomGenerator
public ref class ScriptDomGenerator abstract
[<AbstractClass>]
type ScriptDomGenerator = class end
public abstract class ScriptDomGenerator
The ScriptDomGenerator type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ScriptDomGenerator | Initializes a new instance of the ScriptDomGenerator class. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GenerateScriptDom | Generates an IScriptFragment. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsSupported | Returns a value that indicates whether the provided script operation is supported for the given element type. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryGenerateScriptDom | Generates an IScriptFragment by using the provided model element and operation, and returns a value that indicates whether the script was successfully generated. |
Top
Remarks
Implementations can create "Create", "Alter", or "Drop" versions of statements, based on the incoming model element.
Examples
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.