Partager via


Classe TSqlModel

Represents a model of a SQL Server database schema.

Hiérarchie d'héritage

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

Espace de noms :  Microsoft.SqlServer.Dac.Model
Assembly :  Microsoft.SqlServer.Dac.Extensions (en Microsoft.SqlServer.Dac.Extensions.dll)

Syntaxe

'Déclaration
Public NotInheritable Class TSqlModel _
    Implements IDisposable
'Utilisation
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

Le type TSqlModel expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique TSqlModel(String) Initializes a new instance of the TSqlModel class.
Méthode publique TSqlModel(String, DacSchemaModelStorageType) Initializes a new instance of the TSqlModel class.
Méthode publique TSqlModel(SqlServerVersion, TSqlModelOptions) Initializes a new instance of the TSqlModel class.

Haut de la page

Propriétés

  Nom Description
Propriété publique Version Gets the specific SQL Server release targeted by the model.

Haut de la page

Méthodes

  Nom Description
Méthode publique 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.
Méthode publique 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.
Méthode publique 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.
Méthode publique 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.
Méthode publique Dispose Releases all resources used by the TSqlModel object.
Méthode publique Equals (hérité de Object.)
Méthode publique GetHashCode (hérité de Object.)
Méthode publique 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.
Méthode publique 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.
Méthode publique 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.
Méthode publique GetType (hérité de Object.)
Méthode publique ToString (hérité de Object.)
Méthode publique Validate Validates the model and returns a list of messages with any errors/warnings.

Haut de la page

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Voir aussi

Référence

Espace de noms Microsoft.SqlServer.Dac.Model