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 命名空间