Freigeben über


TSqlModel-Klasse

Represents a model of a SQL Server database schema.

Vererbungshierarchie

System.Object
  Microsoft.SqlServer.Dac.Model.TSqlModel

Namespace:  Microsoft.SqlServer.Dac.Model
Assembly:  Microsoft.SqlServer.Dac.Extensions (in Microsoft.SqlServer.Dac.Extensions.dll)

Syntax

'Declaration
Public NotInheritable Class TSqlModel _
    Implements IDisposable
'Usage
Dim instance As TSqlModel
public sealed class TSqlModel : IDisposable
public ref class TSqlModel sealed : IDisposable
[<SealedAttribute>]
type TSqlModel =  
    class 
        interface IDisposable 
    end
public final class TSqlModel implements IDisposable

Der TSqlModel-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode TSqlModel(String) Initializes a new instance of the TSqlModel class.
Öffentliche Methode TSqlModel(String, DacSchemaModelStorageType) Initializes a new instance of the TSqlModel class.
Öffentliche Methode TSqlModel(SqlServerVersion, TSqlModelOptions) Initializes a new instance of the TSqlModel class.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft Version Gets the specific SQL Server release targeted by the model.

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode AddObjects(TSqlScript) Adds objects to the model based on the contents of a TSqlScript object. The script should be valid TSql with no parse errors.
Öffentliche Methode AddObjects(String) Adds objects to the model based on the contents of a TSql Script string. The script should consist of valid TSql DDL statements.
Öffentliche Methode AddObjects(TSqlScript, TSqlObjectOptions) Add Objects to the model based on the contents of a TSqlScript object, plus additional metadata defined by a TSqlObjectOptions object The script should be valid TSql with no parse errors.
Öffentliche Methode AddObjects(String, TSqlObjectOptions) Adds Objects to the model based on the contents of a TSql Script string, plus additional metadata defined by a TSqlObjectOptions object The script should consist of valid TSql DDL statements.
Öffentliche Methode Dispose Releases all resources used by the TSqlModel object.
Öffentliche Methode Equals (Geerbt von Object.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche Methode GetObject Returns TSqlObjects of the specified objectType and id. Only top level ModelTypeClass types are supported by this method - the objectType parameter must be in the types returned from the TopLevelTypes method or the call will fail.
Öffentliche Methode GetObjects(DacQueryScopes, array<ModelTypeClass[]) Returns all TSqlObject matching the list of typeFilters. Only top level ModelTypeClass types are supported by this method - all types in the typeFilters parameter must be present in the TopLevelTypes or the call will fail.
Öffentliche Methode GetObjects(ModelTypeClass, ObjectIdentifier, DacQueryScopes) Returns all TSqlObject that match the ModelTypeClass and ObjectIdentifier. Only top level ModelTypeClass types are supported by this method - the objectType parameter must be in the types returned from the TopLevelTypes method or the call will fail.
Öffentliche Methode GetType (Geerbt von Object.)
Öffentliche Methode ToString (Geerbt von Object.)
Öffentliche Methode Validate Validates the model and returns a list of messages with any errors/warnings.

Zum Anfang

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.

Siehe auch

Verweis

Microsoft.SqlServer.Dac.Model-Namespace