共用方式為


TSqlModel 類別

Represents a model of a SQL Server database schema.

繼承階層

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

命名空間:  Microsoft.SqlServer.Dac.Model
組件:  Microsoft.SqlServer.Dac.Extensions (在 Microsoft.SqlServer.Dac.Extensions.dll 中)

語法

'宣告
Public NotInheritable Class TSqlModel _
    Implements IDisposable
'用途
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

TSqlModel 型別公開下列成員。

建構函式

  名稱 說明
公用方法 TSqlModel(String) Initializes a new instance of the TSqlModel class.
公用方法 TSqlModel(String, DacSchemaModelStorageType) Initializes a new instance of the TSqlModel class.
公用方法 TSqlModel(SqlServerVersion, TSqlModelOptions) Initializes a new instance of the TSqlModel class.

上層

屬性

  名稱 說明
公用屬性 Version Gets the specific SQL Server release targeted by the model.

上層

方法

  名稱 說明
公用方法 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.
公用方法 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.
公用方法 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.
公用方法 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.
公用方法 Dispose Releases all resources used by the TSqlModel object.
公用方法 Equals (繼承自 Object。)
公用方法 GetHashCode (繼承自 Object。)
公用方法 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.
公用方法 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.
公用方法 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.
公用方法 GetType (繼承自 Object。)
公用方法 ToString (繼承自 Object。)
公用方法 Validate Validates the model and returns a list of messages with any errors/warnings.

上層

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。

請參閱

參考

Microsoft.SqlServer.Dac.Model 命名空間