Compartir a través de


Clase TSqlModel

Represents a model of a SQL Server database schema.

Jerarquía de herencia

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

Espacio de nombres:  Microsoft.SqlServer.Dac.Model
Ensamblado:  Microsoft.SqlServer.Dac.Extensions (en Microsoft.SqlServer.Dac.Extensions.dll)

Sintaxis

'Declaración
Public NotInheritable Class TSqlModel _
    Implements IDisposable
'Uso
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

El tipo TSqlModel expone los siguientes miembros.

Constructores

  Nombre Descripción
Método público TSqlModel(String) Initializes a new instance of the TSqlModel class.
Método público TSqlModel(String, DacSchemaModelStorageType) Initializes a new instance of the TSqlModel class.
Método público TSqlModel(SqlServerVersion, TSqlModelOptions) Initializes a new instance of the TSqlModel class.

Arriba

Propiedades

  Nombre Descripción
Propiedad pública Version Gets the specific SQL Server release targeted by the model.

Arriba

Métodos

  Nombre Descripción
Método público 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étodo público 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étodo público 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étodo público 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étodo público Dispose Releases all resources used by the TSqlModel object.
Método público Equals (Se hereda de Object.)
Método público GetHashCode (Se hereda de Object.)
Método público 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étodo público 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étodo público 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étodo público GetType (Se hereda de Object.)
Método público ToString (Se hereda de Object.)
Método público Validate Validates the model and returns a list of messages with any errors/warnings.

Arriba

Seguridad para subprocesos

Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.

Vea también

Referencia

Espacio de nombres Microsoft.SqlServer.Dac.Model