Поделиться через


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
Protected method ScriptDomGenerator Initializes a new instance of the ScriptDomGenerator class.

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GenerateScriptDom Generates an IScriptFragment.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsSupported Returns a value that indicates whether the provided script operation is supported for the given element type.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method 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

IScriptFragment

IModelElement

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.

See Also

Reference

Microsoft.Data.Schema.SchemaModel Namespace